az spring-cloud

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

命令群組已被取代,將於 2022 年 11 月移除。 建議您安裝 'spring' 擴充功能,以升級至新的 'spring' 命令群組:執行 az extension add -n spring。 如需詳細資訊,請造訪: https://aka.ms/azure-spring-cloud-rename

管理 Azure Spring Cloud 的命令。

命令

名稱 Description 類型 狀態
az spring-cloud api-portal

(僅限企業層)在 Azure Spring Cloud 中管理 API 入口網站的命令。

副檔名 預覽和已淘汰
az spring-cloud api-portal clear

清除 API 入口網站的所有設定。

副檔名 預覽和已淘汰
az spring-cloud api-portal custom-domain

用來管理 API 入口網站的自定義網域的命令。

副檔名 預覽和已淘汰
az spring-cloud api-portal custom-domain bind

使用 API 入口網站系結自定義網域。

副檔名 預覽和已淘汰
az spring-cloud api-portal custom-domain list

列出 API 入口網站的所有自訂網域。

副檔名 預覽和已淘汰
az spring-cloud api-portal custom-domain show

顯示自訂網域的詳細數據。

副檔名 預覽和已淘汰
az spring-cloud api-portal custom-domain unbind

解除系結 API 入口網站的自定義網域。

副檔名 預覽和已淘汰
az spring-cloud api-portal custom-domain update

更新 API 入口網站的自訂網域。

副檔名 預覽和已淘汰
az spring-cloud api-portal show

顯示 API 入口網站的設定、布建狀態和運行時間狀態。

副檔名 預覽和已淘汰
az spring-cloud api-portal update

更新現有的 API 入口網站屬性。

副檔名 預覽和已淘汰
az spring-cloud app

在 Azure Spring Cloud 中管理應用程式的命令。

副檔名 已取代
az spring-cloud app-insights

在 Azure Spring Cloud 中管理 Application Insights 的命令。

副檔名 已取代
az spring-cloud app-insights show

顯示 Application Insights 設定。

副檔名 已取代
az spring-cloud app-insights update

更新 Application Insights 設定。

副檔名 已取代
az spring-cloud app append-loaded-public-certificate

將新載入的公用憑證附加至 Azure Spring Cloud 中的應用程式。

副檔名 已取代
az spring-cloud app append-persistent-storage

將新的永續性記憶體附加至 Azure Spring Cloud 中的應用程式。

副檔名 已取代
az spring-cloud app binding

使用 Azure Data Services 管理系結的命令,您必須手動重新啟動應用程式,讓設定生效。

副檔名 已取代
az spring-cloud app binding cosmos

管理 Azure Cosmos DB 系結的命令。

副檔名 已取代
az spring-cloud app binding cosmos add

將 Azure Cosmos DB 與應用程式系結。

副檔名 已取代
az spring-cloud app binding cosmos update

更新應用程式的 Azure Cosmos DB 服務系結。

副檔名 已取代
az spring-cloud app binding list

列出應用程式中的所有服務系結。

副檔名 已取代
az spring-cloud app binding mysql

管理 適用於 MySQL 的 Azure 資料庫 系結的命令。

副檔名 已取代
az spring-cloud app binding mysql add

將 適用於 MySQL 的 Azure 資料庫 與應用程式系結。

副檔名 已取代
az spring-cloud app binding mysql update

更新應用程式的 適用於 MySQL 的 Azure 資料庫 服務系結。

副檔名 已取代
az spring-cloud app binding redis

管理 Azure Cache for Redis 系結的命令。

副檔名 已取代
az spring-cloud app binding redis add

將 Azure Cache for Redis 與應用程式系結。

副檔名 已取代
az spring-cloud app binding redis update

更新應用程式的 Azure Cache for Redis 服務系結。

副檔名 已取代
az spring-cloud app binding remove

拿掉應用程式的服務系結。

副檔名 已取代
az spring-cloud app binding show

顯示服務系結的詳細數據。

副檔名 已取代
az spring-cloud app create

在 Azure Spring Cloud 中建立具有預設部署的新應用程式。

副檔名 已取代
az spring-cloud app custom-domain

管理自訂網域的命令。

副檔名 已取代
az spring-cloud app custom-domain bind

使用應用程式系結自定義網域。

副檔名 已取代
az spring-cloud app custom-domain list

列出應用程式的所有自定義網域。

副檔名 已取代
az spring-cloud app custom-domain show

顯示自訂網域的詳細數據。

副檔名 已取代
az spring-cloud app custom-domain unbind

解除系結應用程式的自定義網域。

副檔名 已取代
az spring-cloud app custom-domain update

更新應用程式的自定義網域。

副檔名 已取代
az spring-cloud app delete

刪除 Azure Spring Cloud 中的應用程式。

副檔名 已取代
az spring-cloud app deploy

將原始碼或預先建置的二進位檔部署到應用程式,並更新相關的組態。

副檔名 已取代
az spring-cloud app deployment

在 Azure Spring Cloud 中管理應用程式部署生命週期的命令。 您可以使用 參數 --deployment,在應用層級上執行更多部署作業。 例如 az spring-cloud app deploy --deployment 。

副檔名 已取代
az spring-cloud app deployment create

建立應用程式的預備部署。 若要將程式代碼或更新設定部署至現有的部署,請使用 az spring-cloud app deploy/update --deployment <staging deployment>

副檔名 已取代
az spring-cloud app deployment delete

刪除應用程式的部署。

副檔名 已取代
az spring-cloud app deployment generate-heap-dump

產生目標應用程式實例的堆積傾印至指定的檔案路徑。

副檔名 已取代
az spring-cloud app deployment generate-thread-dump

產生目標應用程式實例的線程傾印至指定的檔案路徑。

副檔名 已取代
az spring-cloud app deployment list

列出應用程式中的所有部署。

副檔名 已取代
az spring-cloud app deployment show

顯示部署的詳細數據。

副檔名 已取代
az spring-cloud app deployment start-jfr

在您的目標應用程式實例上啟動 JFR,以指定檔案路徑。

副檔名 已取代
az spring-cloud app identity

管理應用程式的受控識別。

副檔名 已取代
az spring-cloud app identity assign

啟用系統指派的受控識別,或將使用者指派的受控識別指派給應用程式。

副檔名 已取代
az spring-cloud app identity force-set

強制在應用程式上設定受控識別。

副檔名 預覽和已淘汰
az spring-cloud app identity remove

從應用程式移除受控識別。

副檔名 已取代
az spring-cloud app identity show

顯示應用程式的受控識別資訊。

副檔名 已取代
az spring-cloud app list

列出 Azure Spring Cloud 中的所有應用程式。

副檔名 已取代
az spring-cloud app log

使用多個選項結尾應用程式實例記錄的命令。 如果應用程式只有一個實例,則實例名稱是選擇性的。

副檔名 已取代
az spring-cloud app log tail

顯示應用程式實例的記錄,記錄會在設定 『-f/--follow』 時串流處理。

副檔名 已取代
az spring-cloud app logs

顯示應用程式實例的記錄,記錄會在設定 『-f/--follow』 時串流處理。

副檔名 已取代
az spring-cloud app restart

重新啟動應用程式的實例,預設為生產部署。

副檔名 已取代
az spring-cloud app scale

手動調整應用程式或其部署。

副檔名 已取代
az spring-cloud app set-deployment

設定應用程式的生產部署。

副檔名 已取代
az spring-cloud app show

在 Azure Spring Cloud 中顯示應用程式的詳細數據。

副檔名 已取代
az spring-cloud app show-deploy-log

顯示上次部署的組建記錄,僅適用於原始程式碼部署,預設為生產部署。

副檔名 已取代
az spring-cloud app start

啟動應用程式的實例,預設為生產部署。

副檔名 已取代
az spring-cloud app stop

停止應用程式的實例,預設為生產部署。

副檔名 已取代
az spring-cloud app unset-deployment

取消設定應用程式的生產部署。

副檔名 已取代
az spring-cloud app update

更新應用程式的組態。

副檔名 已取代
az spring-cloud application-configuration-service

(僅限企業層)在 Azure Spring Cloud 中管理應用程式組態服務的命令。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service bind

將應用程式系結至應用程式組態服務。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service clear

重設所有應用程式組態服務設定。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service git

在 Azure Spring Cloud 中管理應用程式組態服務 git 屬性的命令。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service git repo

在 Azure Spring Cloud 中管理應用程式組態服務 Git 存放庫的命令。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service git repo add

將 Git 屬性新增至應用程式組態服務設定。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service git repo list

列出應用程式組態服務的所有 Git 設定。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service git repo remove

從應用程式組態服務設定中刪除現有的 Git 屬性。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service git repo update

在應用程式組態服務設定中更新現有的 Git 屬性。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service show

顯示應用程式組態服務的布建狀態、運行時間狀態和設定。

副檔名 預覽和已淘汰
az spring-cloud application-configuration-service unbind

從應用程式組態服務解除系結應用程式。

副檔名 預覽和已淘汰
az spring-cloud build-service

(僅限企業層)在 Azure Spring Cloud 中管理建置服務的命令。

副檔名 預覽和已淘汰
az spring-cloud build-service builder

(僅限企業層)管理建置服務建立器的命令。

副檔名 預覽和已淘汰
az spring-cloud build-service builder buildpack-binding

(僅限企業層)管理產生器的 buildpack-binding 命令。

副檔名 預覽和已淘汰
az spring-cloud build-service builder buildpack-binding create

(僅限企業層)建立 buildpack 系結。

副檔名 預覽和已淘汰
az spring-cloud build-service builder buildpack-binding delete

(僅限企業層)刪除 buildpack 系結。

副檔名 預覽和已淘汰
az spring-cloud build-service builder buildpack-binding list

(僅限企業層)列出產生器中的所有buildpack系結。 秘密將會遮罩。

副檔名 預覽和已淘汰
az spring-cloud build-service builder buildpack-binding set

(僅限企業層)設定 buildpack 系結。

副檔名 預覽和已淘汰
az spring-cloud build-service builder buildpack-binding show

(僅限企業層)顯示 buildpack 系結。 秘密將會遮罩。

副檔名 預覽和已淘汰
az spring-cloud build-service builder create

建立建立器。

副檔名 預覽和已淘汰
az spring-cloud build-service builder delete

刪除產生器。

副檔名 預覽和已淘汰
az spring-cloud build-service builder show

顯示建置者。

副檔名 預覽和已淘汰
az spring-cloud build-service builder update

更新產生器。

副檔名 預覽和已淘汰
az spring-cloud certificate

管理憑證的命令。

副檔名 已取代
az spring-cloud certificate add

在 Azure Spring Cloud 中新增憑證。

副檔名 已取代
az spring-cloud certificate list

列出 Azure Spring Cloud 中的所有憑證。

副檔名 已取代
az spring-cloud certificate list-reference-app

列出所有應用程式參考 Azure Spring Cloud 中的現有憑證。

副檔名 已取代
az spring-cloud certificate remove

拿掉 Azure Spring Cloud 中的憑證。

副檔名 已取代
az spring-cloud certificate show

在 Azure Spring Cloud 中顯示憑證。

副檔名 已取代
az spring-cloud config-server

(支援標準層和基本層)在 Azure Spring Cloud 中管理組態伺服器的命令。

副檔名 已取代
az spring-cloud config-server clear

清除 Config Server 中的所有設定。

副檔名 已取代
az spring-cloud config-server git

在 Azure Spring Cloud 中管理 Config Server git 屬性的命令。

副檔名 已取代
az spring-cloud config-server git repo

在 Azure Spring Cloud 中管理 Config Server Git 存放庫的命令。

副檔名 已取代
az spring-cloud config-server git repo add

新增 Config Server Git 屬性的新存放庫。

副檔名 已取代
az spring-cloud config-server git repo list

列出 Config Server 之 git 屬性的所有存放庫。

副檔名 已取代
az spring-cloud config-server git repo remove

拿掉 Config Server 之 git 屬性的現有存放庫。

副檔名 已取代
az spring-cloud config-server git repo update

覆寫 Config Server 之 git 屬性的現有存放庫,將會完全覆寫舊的存放庫。

副檔名 已取代
az spring-cloud config-server git set

設定 Config Server 的 git 屬性,將會完全覆寫舊的。

副檔名 已取代
az spring-cloud config-server set

從 yaml 檔案設定組態伺服器。

副檔名 已取代
az spring-cloud config-server show

顯示組態伺服器。

副檔名 已取代
az spring-cloud connection

管理 spring-cloud 連線的命令。

核心 已取代
az spring-cloud connection create

建立 spring-cloud 與目標資源之間的連線。

核心 已取代
az spring-cloud connection create app-insights

建立與 app-insights 的 Spring-cloud 連線。

核心 已取代
az spring-cloud connection create appconfig

建立 appconfig 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create confluent-cloud

建立與 confluent-cloud 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create cosmos-cassandra

建立 cosmos-cassandra 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create cosmos-gremlin

建立與cosmos-gremlin的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create cosmos-mongo

建立 cosmos-mongo 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create cosmos-sql

建立 cosmos-sql 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create cosmos-table

建立 cosmos-table 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create eventhub

建立與 eventhub 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create keyvault

建立 keyvault 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create mysql

建立 mysql 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create mysql-flexible

建立 mysql 彈性的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create postgres

建立 postgres 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create postgres-flexible

建立 postgres 彈性的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create redis

建立 redis 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create redis-enterprise

建立 redis-enterprise 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create servicebus

建立與 servicebus 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create signalr

建立與 signalr 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create sql

建立與 sql 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create storage-blob

建立與 storage-blob 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create storage-file

建立記憶體檔案的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create storage-queue

建立記憶體佇列的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create storage-table

建立儲存數據表的 spring-cloud 連線。

核心 已取代
az spring-cloud connection create webpubsub

建立 webpubsub 的 spring-cloud 連線。

核心 已取代
az spring-cloud connection delete

刪除 spring-cloud 連線。

核心 已取代
az spring-cloud connection list

列出 spring-cloud 的連線。

核心 已取代
az spring-cloud connection list-configuration

列出 spring-cloud 連線的來源組態。

核心 已取代
az spring-cloud connection list-support-types

列出 spring-cloud 連線支援的用戶端類型和驗證類型。

核心 已取代
az spring-cloud connection show

取得 Spring-cloud 連線的詳細數據。

核心 已取代
az spring-cloud connection update

更新 spring-cloud 連線。

核心 已取代
az spring-cloud connection update app-insights

將 spring-cloud 更新為 app-insights 連線。

核心 已取代
az spring-cloud connection update appconfig

將 spring-cloud 更新為 appconfig 連線。

核心 已取代
az spring-cloud connection update confluent-cloud

將 spring-cloud 更新為 confluent-cloud 連線。

核心 已取代
az spring-cloud connection update cosmos-cassandra

將 spring-cloud 更新為 cosmos-cassandra 連線。

核心 已取代
az spring-cloud connection update cosmos-gremlin

將 spring-cloud 更新為 cosmos-gremlin 連線。

核心 已取代
az spring-cloud connection update cosmos-mongo

將 spring-cloud 更新為 cosmos-mongo 連線。

核心 已取代
az spring-cloud connection update cosmos-sql

將 spring-cloud 更新為 cosmos-sql 連線。

核心 已取代
az spring-cloud connection update cosmos-table

將 spring-cloud 更新為 cosmos-table 連線。

核心 已取代
az spring-cloud connection update eventhub

將 spring-cloud 更新為 eventhub 連線。

核心 已取代
az spring-cloud connection update keyvault

將 spring-cloud 更新為 keyvault 連線。

核心 已取代
az spring-cloud connection update mysql

將 spring-cloud 更新為 mysql 連線。

核心 已取代
az spring-cloud connection update mysql-flexible

將 spring-cloud 更新為 mysql 彈性連線。

核心 已取代
az spring-cloud connection update postgres

將 spring-cloud 更新為 postgres 連線。

核心 已取代
az spring-cloud connection update postgres-flexible

將 spring-cloud 更新為 postgres 彈性連線。

核心 已取代
az spring-cloud connection update redis

將 spring-cloud 更新為 redis 連線。

核心 已取代
az spring-cloud connection update redis-enterprise

將 spring-cloud 更新為 redis-enterprise 連線。

核心 已取代
az spring-cloud connection update servicebus

將 spring-cloud 更新為 servicebus 連線。

核心 已取代
az spring-cloud connection update signalr

將 spring-cloud 更新為 signalr 連線。

核心 已取代
az spring-cloud connection update sql

將 spring-cloud 更新為 sql 連線。

核心 已取代
az spring-cloud connection update storage-blob

將 spring-cloud 更新為 storage-blob 連線。

核心 已取代
az spring-cloud connection update storage-file

將 spring-cloud 更新為記憶體檔案連線。

核心 已取代
az spring-cloud connection update storage-queue

將 spring-cloud 更新為記憶體佇列連線。

核心 已取代
az spring-cloud connection update storage-table

將 spring-cloud 更新為記憶體數據表連線。

核心 已取代
az spring-cloud connection update webpubsub

將 spring-cloud 更新為 webpubsub 連線。

核心 已取代
az spring-cloud connection validate

驗證 spring-cloud 連線。

核心 已取代
az spring-cloud connection wait

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

核心 已取代
az spring-cloud create

建立 Azure Spring Cloud。

副檔名 已取代
az spring-cloud delete

刪除 Azure Spring Cloud。

副檔名 已取代
az spring-cloud gateway

(僅限企業層)在 Azure Spring Cloud 中管理閘道的命令。

副檔名 預覽和已淘汰
az spring-cloud gateway clear

清除閘道的所有設定。

副檔名 預覽和已淘汰
az spring-cloud gateway custom-domain

用來管理閘道自定義網域的命令。

副檔名 預覽和已淘汰
az spring-cloud gateway custom-domain bind

使用網關係結自定義網域。

副檔名 預覽和已淘汰
az spring-cloud gateway custom-domain list

列出閘道的所有自訂網域。

副檔名 預覽和已淘汰
az spring-cloud gateway custom-domain show

顯示自訂網域的詳細數據。

副檔名 預覽和已淘汰
az spring-cloud gateway custom-domain unbind

解除系結閘道的自定義網域。

副檔名 預覽和已淘汰
az spring-cloud gateway custom-domain update

更新閘道的自定義網域。

副檔名 預覽和已淘汰
az spring-cloud gateway route-config

在 Azure Spring Cloud 中管理閘道路由設定的命令。

副檔名 預覽和已淘汰
az spring-cloud gateway route-config create

使用 Json 陣組格式的路由規則建立閘道路由設定。

副檔名 預覽和已淘汰
az spring-cloud gateway route-config list

列出所有現有的閘道路由設定。

副檔名 預覽和已淘汰
az spring-cloud gateway route-config remove

刪除現有的閘道路由設定。

副檔名 預覽和已淘汰
az spring-cloud gateway route-config show

取得現有的閘道路由設定。

副檔名 預覽和已淘汰
az spring-cloud gateway route-config update

使用 Json 陣組格式的路由規則更新現有的閘道路由設定。

副檔名 預覽和已淘汰
az spring-cloud gateway show

顯示閘道的設定、布建狀態和運行時間狀態。

副檔名 預覽和已淘汰
az spring-cloud gateway update

更新現有的閘道屬性。

副檔名 預覽和已淘汰
az spring-cloud list

列出指定資源群組中的所有 Azure Spring Cloud,否則會列出訂用帳戶的 。

副檔名 已取代
az spring-cloud service-registry

(僅限企業層)在 Azure Spring Cloud 中管理服務登錄的命令。

副檔名 預覽和已淘汰
az spring-cloud service-registry bind

將應用程式系結至 Service Registry。

副檔名 預覽和已淘汰
az spring-cloud service-registry show

顯示服務登錄的布建狀態和運行時間狀態。

副檔名 預覽和已淘汰
az spring-cloud service-registry unbind

從 Service Registry 解除系結應用程式。

副檔名 預覽和已淘汰
az spring-cloud show

顯示 Azure Spring Cloud 的詳細數據。

副檔名 已取代
az spring-cloud start

啟動 Azure Spring Cloud。

副檔名 已取代
az spring-cloud stop

停止 Azure Spring Cloud。

副檔名 已取代
az spring-cloud storage

在 Azure Spring Cloud 中管理 儲存體 的命令。

副檔名 已取代
az spring-cloud storage add

在 Azure Spring Cloud 中建立新的記憶體。

副檔名 已取代
az spring-cloud storage list

列出 Azure Spring Cloud 中的所有現有記憶體。

副檔名 已取代
az spring-cloud storage list-persistent-storage

列出與 Azure Spring Cloud 中現有記憶體相關的所有永續性記憶體。

副檔名 已取代
az spring-cloud storage remove

拿掉 Azure Spring Cloud 中的現有記憶體。

副檔名 已取代
az spring-cloud storage show

在 Azure Spring Cloud 中取得現有的記憶體。

副檔名 已取代
az spring-cloud storage update

更新 Azure Spring Cloud 中的現有記憶體。

副檔名 已取代
az spring-cloud test-endpoint

在 Azure Spring Cloud 中管理測試端點的命令。

副檔名 已取代
az spring-cloud test-endpoint disable

停用 Azure Spring Cloud 的測試端點。

副檔名 已取代
az spring-cloud test-endpoint enable

啟用 Azure Spring Cloud 的測試端點。

副檔名 已取代
az spring-cloud test-endpoint list

列出 Azure Spring Cloud 的測試端點密鑰。

副檔名 已取代
az spring-cloud test-endpoint renew-key

重新產生 Azure Spring Cloud 的測試端點密鑰。

副檔名 已取代
az spring-cloud update

更新 Azure Spring Cloud。

副檔名 已取代

az spring-cloud create

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud' 已被取代,未來版本將會移除。 請改用 『spring』。

建立 Azure Spring Cloud。

az spring-cloud create --name
                       --resource-group
                       [--ap-instance]
                       [--app-insights]
                       [--app-insights-key]
                       [--app-network-resource-group]
                       [--app-subnet]
                       [--build-pool-size {S1, S2, S3, S4, S5}]
                       [--disable-app-insights {false, true}]
                       [--enable-acs]
                       [--enable-api-portal]
                       [--enable-gateway]
                       [--enable-service-registry]
                       [--gateway-instance-count]
                       [--location]
                       [--no-wait]
                       [--reserved-cidr-range]
                       [--sampling-rate]
                       [--service-runtime-network-resource-group]
                       [--service-runtime-subnet]
                       [--sku {Basic, Enterprise, Standard}]
                       [--tags]
                       [--vnet]
                       [--zone-redundant {false, true}]

範例

在 westus 中建立新的 Azure Spring Cloud。

az spring-cloud create -n MyService -g MyResourceGroup -l westus

使用 連線 ion 字串(建議)或檢測密鑰,在 westus 中建立新的 Azure Spring Cloud 與現有的 Application Insights。

az spring-cloud create -n MyService -g MyResourceGroup -l westus --app-insights-key "MyConnectionString"

使用現有的 Application Insights 在 westus 中建立新的 Azure Spring Cloud。

az spring-cloud create -n MyService -g MyResourceGroup -l westus --app-insights appInsightsName

使用現有的 Application Insights 在 westus 中建立新的 Azure Spring Cloud,並指定取樣率。

az spring-cloud create -n MyService -g MyResourceGroup -l westus --app-insights appInsightsName --sampling-rate 10

建立已停用 Application Insights 的新 Azure Spring Cloud。

az spring-cloud create -n MyService -g MyResourceGroup --disable-app-insights

透過在目前資源群組中提供 VNet 名稱來建立新的 Azure Spring Cloud 並插入 VNet

az spring-cloud create -n MyService -g MyResourceGroup --vnet MyVNet --app-subnet MyAppSubnet --service-runtime-subnet MyServiceRuntimeSubnet

透過提供子網資源標識碼,使用 VNet 插入來建立新的 Azure Spring Cloud

az spring-cloud create -n MyService -g MyResourceGroup --app-subnet /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyVnetRg/providers/Microsoft.Network/VirtualNetworks/test-vnet/subnets/app --service-runtime-subnet /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyVnetRg/providers/Microsoft.Network/VirtualNetworks/test-vnet/subnets/svc --reserved-cidr-range 10.0.0.0/16,10.1.0.0/16,10.2.0.1/16

如果 Azure 訂用帳戶永不裝載 Azure Spring Cloud Enterprise 實例,請建立 Azure Spring Cloud Enterprise 實例

az provider register -n Microsoft.SaaS
az term accept --publisher vmware-inc --product azure-spring-cloud-vmware-tanzu-2 --plan tanzu-asc-ent-mtr
az spring-cloud create -n MyService -g MyResourceGroup --sku Enterprise

建立已啟用 Tanzu 元件的 Azure Spring Cloud Enterprise 實例。

az spring-cloud create -n MyService -g MyResourceGroup --sku Enterprise --enable-application-configuration-service --enable-service-registry --enable-gateway --enable-api-portal

必要參數

--name -n

Azure Spring Cloud 的名稱。

--resource-group -g

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

選擇性參數

--ap-instance --api-portal-instance-count
預覽

(僅限企業層)API 入口網站實例的數目。

--app-insights

相同資源群組中現有Application Insights 的名稱。 或不同資源群組中現有ApplicationInsights的資源標識碼。

--app-insights-key

連線 ion 字串 (建議) 或現有 Application Insights 的檢測密鑰。

--app-network-resource-group --app-nrg

將在其中建立應用程式所有網路資源的資源群組。

--app-subnet

要在其中部署 Spring Cloud 應用程式之 「vnet」 中現有子網的名稱或識別碼。 部署至 虛擬網絡 時需要。 支援較小的子網大小,請參閱: https://aka.ms/azure-spring-cloud-smaller-subnet-vnet-docs

--build-pool-size
預覽

(僅限企業層)組建代理程式集區的大小。 如需大小資訊,請參閱 aka.ms/azure-spring-cloud-build-service-docs。

接受的值: S1, S2, S3, S4, S5
--disable-app-insights

停用 Application Insights,如果未停用,且沒有使用 --app-insights-key 或 --app-insights 指定的現有 Application Insights,將會在相同的資源群組中建立新的 Application Insights 實例。

接受的值: false, true
--enable-acs --enable-application-configuration-service
預覽

(僅限企業層)啟用應用程式組態服務。

預設值: False
--enable-api-portal
預覽

(僅限企業層)啟用 API 入口網站。

預設值: False
--enable-gateway
預覽

(僅限企業層)啟用 Spring Cloud Gateway。

預設值: False
--enable-service-registry --enable-sr
預覽

(僅限企業層)啟用服務登錄。

預設值: False
--gateway-instance-count
預覽

(僅限企業層)Spring Cloud Gateway 實例的數目。

--location -l

位置。​​ 來自的值: az account list-locations。 您可以使用 az configure --defaults location=<location> 設定預設位置。

--no-wait

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

預設值: False
--reserved-cidr-range

以 CIDR 格式分隔的 IP 位址範圍逗號分隔清單。 IP 範圍會保留給裝載基礎 Azure Spring Cloud 基礎結構,此基礎結構至少應為 3 /16 未使用的 IP 範圍,不得與任何子網 IP 範圍重疊。

--sampling-rate

Application Insights 的取樣率。 最小值為 0,最大值為 100。

--service-runtime-network-resource-group --svc-nrg

將在其中建立 Azure Spring Cloud 服務運行時間之所有網路資源的資源群組。

--service-runtime-subnet --svc-subnet

要在其中部署 Spring Cloud 服務運行時間之 「vnet」 中現有子網的名稱或識別碼。 部署至 虛擬網絡 時需要。

--sku

SKU 的名稱。 企業仍處於預覽狀態。

接受的值: Basic, Enterprise, Standard
預設值: Standard
--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。

--vnet

要在其中部署 Spring Cloud 實例之現有 虛擬網絡 的名稱或標識碼。

--zone-redundant
預覽

在 Azure 可用性區域中建立您的 Azure Spring Cloud 服務,目前只能在數個區域中支援此服務。

接受的值: false, true
預設值: 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-cloud delete

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud' 已被取代,未來版本將會移除。 請改用 『spring』。

刪除 Azure Spring Cloud。

az spring-cloud delete --name
                       --resource-group
                       [--no-wait]

必要參數

--name -n

Azure Spring Cloud 的名稱。

--resource-group -g

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

選擇性參數

--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-cloud list

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud' 已被取代,未來版本將會移除。 請改用 『spring』。

列出指定資源群組中的所有 Azure Spring Cloud,否則會列出訂用帳戶的 。

az spring-cloud list [--resource-group]

選擇性參數

--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 spring-cloud show

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud' 已被取代,未來版本將會移除。 請改用 『spring』。

顯示 Azure Spring Cloud 的詳細數據。

az spring-cloud show --name
                     --resource-group

必要參數

--name -n

Azure Spring Cloud 的名稱。

--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 spring-cloud start

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud' 已被取代,未來版本將會移除。 請改用 『spring』。

啟動 Azure Spring Cloud。

az spring-cloud start --name
                      --resource-group
                      [--no-wait]

必要參數

--name -n

Azure Spring Cloud 的名稱。

--resource-group -g

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

選擇性參數

--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-cloud stop

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud' 已被取代,未來版本將會移除。 請改用 『spring』。

停止 Azure Spring Cloud。

az spring-cloud stop --name
                     --resource-group
                     [--no-wait]

必要參數

--name -n

Azure Spring Cloud 的名稱。

--resource-group -g

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

選擇性參數

--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-cloud update

已被取代

此命令已隱含取代,因為命令群組 'spring-cloud' 已被取代,未來版本將會移除。 請改用 『spring』。

更新 Azure Spring Cloud。

az spring-cloud update --name
                       --resource-group
                       [--build-pool-size {S1, S2, S3, S4, S5}]
                       [--no-wait]
                       [--sku {Basic, Enterprise, Standard}]
                       [--tags]

範例

更新定價層。

az spring-cloud update -n MyService --sku Standard -g MyResourceGroup

更新現有 Azure Spring Cloud 的標記。

az spring-cloud update -n MyService -g MyResourceGroup --tags key1=value1 key2=value2

必要參數

--name -n

Azure Spring Cloud 的名稱。

--resource-group -g

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

選擇性參數

--build-pool-size
預覽

(僅限企業層)組建代理程式集區的大小。 如需大小資訊,請參閱 aka.ms/azure-spring-cloud-build-service-docs。

接受的值: S1, S2, S3, S4, S5
--no-wait

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

預設值: False
--sku

SKU 的名稱。 企業仍處於預覽狀態。

接受的值: Basic, Enterprise, Standard
--tags

以空格分隔的標記:key[=value] [key[=value] ...]。使用 「清除現有的標記」。

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