共用方式為


az networkcloud cloudservicesnetwork

注意

此參考是 Azure CLI networkcloud 擴充功能的一部分(2.67.0 版或更高版本)。 當您第一次執行 az networkcloud cloudservicesnetwork 命令時,擴充功能會自動安裝。 深入瞭解擴充功能

管理雲端服務網路。

命令

名稱 Description 類型 狀態
az networkcloud cloudservicesnetwork create

建立新的雲端服務網路,或更新現有雲端服務網路的屬性。

外延 加語
az networkcloud cloudservicesnetwork delete

刪除提供的雲端服務網路。

外延 加語
az networkcloud cloudservicesnetwork list

列出所提供資源群組或訂用帳戶中的雲端服務網路。

外延 加語
az networkcloud cloudservicesnetwork show

取得所提供雲端服務網路的屬性。

外延 加語
az networkcloud cloudservicesnetwork update

更新所提供雲端服務網路的屬性,或更新與其相關聯的標記。 屬性和標記更新可以獨立完成。

外延 加語
az networkcloud cloudservicesnetwork wait

將 CLI 置於等候狀態,直到符合條件為止。

外延 加語

az networkcloud cloudservicesnetwork create

建立新的雲端服務網路,或更新現有雲端服務網路的屬性。

az networkcloud cloudservicesnetwork create --cloud-services-network-name
                                            --extended-location
                                            --resource-group
                                            [--additional-egress-endpoints]
                                            [--enable-default-egress-endpoints {False, True}]
                                            [--if-match]
                                            [--if-none-match]
                                            [--location]
                                            [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                            [--tags]

範例

建立或更新雲端服務網路

az networkcloud cloudservicesnetwork create --name "cloudServicesNetworkName" --extended-location name="/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" type="CustomLocation" --location "location" --additional-egress-endpoints "[{category:'azure-resource-management',endpoints:[{domainName:'storageaccountex.blob.core.windows.net',port:443}]}]" --enable-default-egress-endpoints "False" --tags key1="myvalue1" key2="myvalue2" --resource-group "resourceGroupName"

必要參數

--cloud-services-network-name --name -n

雲端服務網路的名稱。

--extended-location

與資源相關聯的叢集擴充位置。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--resource-group -g

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

選擇性參數

--additional-egress-endpoints

輸出端點的清單。 這允許從混合式 AKS 叢集連線到指定的端點。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--enable-default-egress-endpoints

輸出流量是否允許平台預設端點的指標。

接受的值: False, True
預設值: True
--if-match

轉換的ETag。 請省略此值以一律覆寫目前的資源。 指定最後看到的 ETag 值,以防止意外覆寫並行變更。

--if-none-match

設定為 『*』 以允許建立新的記錄集,但為了避免更新現有的資源。 其他值會導致伺服器發生錯誤,因為它們不受支援。

--location -l

未指定資源所在的地理位置,將會使用資源群組的位置。

--no-wait

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

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--tags

資源標籤。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

全域參數
--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 networkcloud cloudservicesnetwork delete

刪除提供的雲端服務網路。

az networkcloud cloudservicesnetwork delete [--cloud-services-network-name]
                                            [--ids]
                                            [--if-match]
                                            [--if-none-match]
                                            [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                            [--resource-group]
                                            [--subscription]
                                            [--yes]

範例

刪除雲端服務網路

az networkcloud cloudservicesnetwork delete --name "cloudServicesNetworkName" --resource-group "resourceGroupName"

選擇性參數

--cloud-services-network-name --name -n

雲端服務網路的名稱。

--ids

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

--if-match

轉換的ETag。 請省略此值以一律覆寫目前的資源。 指定最後看到的 ETag 值,以防止意外覆寫並行變更。

--if-none-match

設定為 『*』 以允許建立新的記錄集,但為了避免更新現有的資源。 其他值會導致伺服器發生錯誤,因為它們不受支援。

--no-wait

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

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

--subscription

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

--yes -y

請勿提示確認。

預設值: 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 networkcloud cloudservicesnetwork list

列出所提供資源群組或訂用帳戶中的雲端服務網路。

az networkcloud cloudservicesnetwork list [--max-items]
                                          [--next-token]
                                          [--resource-group]

範例

列出訂用帳戶的雲端服務網路

az networkcloud cloudservicesnetwork list

列出資源群組的雲端服務網路

az networkcloud cloudservicesnetwork list --resource-group "resourceGroupName"

選擇性參數

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。

--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

--resource-group -g

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

全域參數
--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 networkcloud cloudservicesnetwork show

取得所提供雲端服務網路的屬性。

az networkcloud cloudservicesnetwork show [--cloud-services-network-name]
                                          [--ids]
                                          [--resource-group]
                                          [--subscription]

範例

取得雲端服務網路

az networkcloud cloudservicesnetwork show --name "cloudServicesNetworkName" --resource-group "resourceGroupName"

選擇性參數

--cloud-services-network-name --name -n

雲端服務網路的名稱。

--ids

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

--resource-group -g

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

--subscription

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

全域參數
--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 networkcloud cloudservicesnetwork update

更新所提供雲端服務網路的屬性,或更新與其相關聯的標記。 屬性和標記更新可以獨立完成。

az networkcloud cloudservicesnetwork update [--additional-egress-endpoints]
                                            [--cloud-services-network-name]
                                            [--enable-default-egress-endpoints {False, True}]
                                            [--ids]
                                            [--if-match]
                                            [--if-none-match]
                                            [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                            [--resource-group]
                                            [--subscription]
                                            [--tags]

範例

修補雲端服務網路

az networkcloud cloudservicesnetwork update --name "cloudServicesNetworkName" --additional-egress-endpoints "[{category:'azure-resource-management',endpoints:[{domainName:'storageaccountex.blob.core.windows.net',port:443}]}]" --enable-default-egress-endpoints "False" --tags key1="myvalue1" key2="myvalue2" --resource-group "resourceGroupName"

選擇性參數

--additional-egress-endpoints

輸出端點的清單。 這允許從混合式 AKS 叢集連線到指定的端點。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

--cloud-services-network-name --name -n

雲端服務網路的名稱。

--enable-default-egress-endpoints

輸出流量是否允許平台預設端點的指標。

接受的值: False, True
--ids

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

--if-match

轉換的ETag。 請省略此值以一律覆寫目前的資源。 指定最後看到的 ETag 值,以防止意外覆寫並行變更。

--if-none-match

設定為 『*』 以允許建立新的記錄集,但為了避免更新現有的資源。 其他值會導致伺服器發生錯誤,因為它們不受支援。

--no-wait

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

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

--subscription

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

--tags

將取代現有資源的 Azure 資源標籤。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

全域參數
--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 networkcloud cloudservicesnetwork wait

將 CLI 置於等候狀態,直到符合條件為止。

az networkcloud cloudservicesnetwork wait [--cloud-services-network-name]
                                          [--created]
                                          [--custom]
                                          [--deleted]
                                          [--exists]
                                          [--ids]
                                          [--interval]
                                          [--resource-group]
                                          [--subscription]
                                          [--timeout]
                                          [--updated]

選擇性參數

--cloud-services-network-name --name -n

雲端服務網路的名稱。

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

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

--interval

輪詢間隔以秒為單位。

預設值: 30
--resource-group -g

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

--subscription

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

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: 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。