az postgres flexible-server maintenance-event

管理 PostgreSQL 彈性伺服器的維護事件。

命令

名稱 Description 類型 狀態
az postgres flexible-server maintenance-event apply-now

立即啟動維護事件。

Core GA
az postgres flexible-server maintenance-event list

列出彈性伺服器的維護事件。

Core GA
az postgres flexible-server maintenance-event reschedule

將維護事件重新排定到新的 UTC 日期。

Core GA
az postgres flexible-server maintenance-event show

顯示維修事件的詳細資料。

Core GA

az postgres flexible-server maintenance-event apply-now

立即啟動維護事件。

az postgres flexible-server maintenance-event apply-now [--acquire-policy-token]
                                                        [--change-reference]
                                                        [--ids]
                                                        [--maintenance-event-id]
                                                        [--no-wait]
                                                        [--resource-group]
                                                        [--server-name]
                                                        [--subscription]

範例

現在就套用維護事件。

az postgres flexible-server maintenance-event apply-now --resource-group testgroup --server-name testserver --maintenance-event-id XXXX-111

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--maintenance-event-id

維護事件識別碼。

屬性
參數群組: Resource Id Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性
參數群組: Resource Id Arguments
--server-name -s

伺服器的名稱。

屬性
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az postgres flexible-server maintenance-event list

列出彈性伺服器的維護事件。

az postgres flexible-server maintenance-event list --resource-group
                                                   --server-name
                                                   [--maintenance-status {Past, Upcoming}]

範例

列出伺服器的所有維護事件。

az postgres flexible-server maintenance-event list --resource-group testgroup --server-name testserver

只列出即將舉行的維護活動。

az postgres flexible-server maintenance-event list --resource-group testgroup --server-name testserver --maintenance-status Upcoming

必要參數

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--server-name -s

伺服器的名稱。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--maintenance-status

依狀態篩選維護事件。

屬性
接受的值: Past, Upcoming
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az postgres flexible-server maintenance-event reschedule

將維護事件重新排定到新的 UTC 日期。

az postgres flexible-server maintenance-event reschedule --start-time
                                                         [--acquire-policy-token]
                                                         [--change-reference]
                                                         [--ids]
                                                         [--maintenance-event-id]
                                                         [--no-wait]
                                                         [--resource-group]
                                                         [--server-name]
                                                         [--subscription]

範例

重新安排維修活動。

az postgres flexible-server maintenance-event reschedule --resource-group testgroup --server-name testserver --maintenance-event-id XXXX-111 --start-time 2026-04-10T10:00:00+00:00

必要參數

--start-time -t

新的 UTC 開始時間以目標重新排程維護(ISO8601格式),例如 2026-04-10T10:00:00+00:00。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--maintenance-event-id

維護事件識別碼。

屬性
參數群組: Resource Id Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性
預設值: False
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性
參數群組: Resource Id Arguments
--server-name -s

伺服器的名稱。

屬性
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az postgres flexible-server maintenance-event show

顯示維修事件的詳細資料。

az postgres flexible-server maintenance-event show [--ids]
                                                   [--maintenance-event-id]
                                                   [--resource-group]
                                                   [--server-name]
                                                   [--subscription]

範例

透過ID取得維護事件。

az postgres flexible-server maintenance-event show --resource-group testgroup --server-name testserver --maintenance-event-id XXXX-111

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性
參數群組: Resource Id Arguments
--maintenance-event-id

維護事件識別碼。

屬性
參數群組: Resource Id Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性
參數群組: Resource Id Arguments
--server-name -s

伺服器的名稱。

屬性
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False