az spring private-dns-zone

注意

此參考是 Azure CLI 的 Spring 延伸模組的一部分(2.56.0 版或更高版本)。 擴充功能會在您第一次執行 az spring private-dns-zone 命令時自動安裝。 深入了解擴充功能。

使用 Azure Spring Apps 設定 constumer 私人 DNS 區域的命令。

命令

名稱 Description 類型 狀態
az spring private-dns-zone add

使用 Azure Spring Apps 新增 constumer 私人 DNS 區域的命令。

副檔名 GA
az spring private-dns-zone clean

在 Azure Spring Apps 中清除 constumer 私人 DNS 區域的命令。

副檔名 GA
az spring private-dns-zone update

在 Azure Spring Apps 中更新 constumer 私人 DNS 區域的命令。

副檔名 GA

az spring private-dns-zone add

使用 Azure Spring Apps 新增 constumer 私人 DNS 區域的命令。

az spring private-dns-zone add --resource-group
                               --service
                               --zone-id
                               [--no-wait]

範例

將私人 DNS 區域新增至 Azure Spring Apps。

az spring private-dns-zone add --service MyAzureSpringAppsInstance --resource-group MyResourceGroup --zone-id MyPrivateDNSZoneId

必要參數

--resource-group -g

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

--service -s

Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=來設定預設服務。

--zone-id

您想要使用服務實例設定的私人 DNS 區域資源識別碼。

選擇性參數

--no-wait

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

預設值: False
全域參數
--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 spring private-dns-zone clean

在 Azure Spring Apps 中清除 constumer 私人 DNS 區域的命令。

az spring private-dns-zone clean --resource-group
                                 --service
                                 [--no-wait]

範例

使用 Azure Spring Apps 清除私人 DNS 區域。

az spring private-dns-zone clean --service MyAzureSpringAppsInstance --resource-group MyResourceGroup

必要參數

--resource-group -g

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

--service -s

Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=來設定預設服務。

選擇性參數

--no-wait

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

預設值: False
全域參數
--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 spring private-dns-zone update

在 Azure Spring Apps 中更新 constumer 私人 DNS 區域的命令。

az spring private-dns-zone update --resource-group
                                  --service
                                  --zone-id
                                  [--no-wait]

範例

更新 Azure Spring Apps 中的私人 DNS 區域。

az spring private-dns-zone update --service MyAzureSpringAppsInstance --resource-group MyResourceGroup --zone-id MyPrivateDNSZoneId

必要參數

--resource-group -g

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

--service -s

Azure Spring Apps 實例的名稱,您可以使用 az configure --defaults spring=來設定預設服務。

--zone-id

您想要使用服務實例設定的私人 DNS 區域資源識別碼。

選擇性參數

--no-wait

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

預設值: False
全域參數
--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 來取得完整偵錯記錄。