共用方式為


az arcgateway settings

Note

此參考是 Azure CLI 的 arcgateway 延伸模組的一部分(2.57.0 版或更高版本)。 當您第一次執行 az arcgateway settings 命令時,擴充功能會自動安裝。 深入了解擴充功能。

管理 Azure Arc-Enabled 伺服器的設定。

命令

名稱 Description 類型 狀態
az arcgateway settings update

更新目標資源的基底設定。

Extension GA

az arcgateway settings update

更新目標資源的基底設定。

az arcgateway settings update [--add]
                              [--base-provider]
                              [--base-resource-name]
                              [--base-resource-type]
                              [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                              [--gateway-resource-id]
                              [--ids]
                              [--remove]
                              [--resource-group]
                              [--set]
                              [--subscription]

範例

設定更新的範例命令

az az arcgateway settings update --resource-group myResourceGroup --subscription mySubscription --base-provider Microsoft.HybridCompute --base-resource-type machines --base-resource-name workloadServer --gateway-resource-id myResourceId

選擇性參數

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

--add

藉由指定路徑和索引鍵值組,將物件加入物件清單。 範例: --add property.listProperty <key=value, string or JSON string>.

屬性
參數群組: Generic Update Arguments
--base-provider

基底資源提供者的名稱。

屬性
參數群組: Resource Id Arguments
--base-resource-name

基底資源的名稱。

屬性
參數群組: Resource Id Arguments
--base-resource-type

基底資源類型的名稱。

屬性
參數群組: Resource Id Arguments
--force-string

使用 'set' 或 'add' 時,請保留字串常值,而不是嘗試轉換成 JSON。

屬性
參數群組: Generic Update Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--gateway-resource-id

相關聯的網關資源標識碼。

屬性
參數群組: GatewayProperties Arguments
--ids

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

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

從清單中移除屬性或專案。 範例: --remove property.list <indexToRemove>--remove propertyToRemove

屬性
參數群組: Generic Update Arguments
--resource-group -g

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

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

指定要設定的屬性路徑和值,以更新物件。 範例: --set property1.property2=<value>.

屬性
參數群組: Generic Update 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