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 來取得完整偵錯記錄。