共用方式為


az batch account network-profile

管理 Batch 帳戶網路配置檔。

命令

名稱 Description 類型 狀態
az batch account network-profile network-rule

在網路配置檔中管理 Batch 帳戶網路規則。

核心 GA
az batch account network-profile network-rule add

從網路配置檔新增網路規則。

核心 GA
az batch account network-profile network-rule delete

從網路配置檔中刪除網路規則。

核心 GA
az batch account network-profile network-rule list

從網路配置檔列出網路規則。

核心 GA
az batch account network-profile set

設定 Batch 帳戶的網路配置檔。

核心 GA
az batch account network-profile show

取得 Batch 帳戶的網路配置檔相關信息。

核心 GA

az batch account network-profile set

設定 Batch 帳戶的網路配置檔。

az batch account network-profile set --resource-group
                                     [--default-action {Allow, Deny}]
                                     [--name]
                                     [--profile {BatchAccount, NodeManagement}]

範例

將 BatchAccount 網络設定檔設定為 [允許]

az batch account network-profile set -g MyResourceGroup -n MyBatchAccount --profile BatchAccount --default-action Allow

必要參數

--resource-group -g

資源群組的名稱。 如果未指定,則會顯示目前設定的帳戶。

選擇性參數

--default-action

端點存取的預設動作。 只有在啟用 publicNetworkAccess 時才適用。 可能的值包括:『Allow』、『Deny』。

接受的值: Allow, Deny
--name -n

要顯示的批次帳戶名稱。 如果未指定,則會顯示目前設定的帳戶。

--profile

要設定的網路配置檔。

接受的值: BatchAccount, NodeManagement
全域參數
--debug

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

az batch account network-profile show

取得 Batch 帳戶的網路配置檔相關信息。

az batch account network-profile show --resource-group
                                      [--name]

範例

顯示 BatchAccount 和 NodeManagement 的網路配置檔

az batch account network-profile show -g MyResourceGroup -n MyBatchAccount

必要參數

--resource-group -g

資源群組的名稱。 如果未指定,則會顯示目前設定的帳戶。

選擇性參數

--name -n

要顯示的批次帳戶名稱。 如果未指定,則會顯示目前設定的帳戶。

全域參數
--debug

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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