你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az spring

注意

此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 详细了解扩展。

用于管理 Azure Spring Apps 的命令。

命令

名称 说明 类型 状态
az spring api-portal

(仅限企业层)用于在 Azure Spring Apps 中管理 API 门户的命令。

扩展 GA
az spring api-portal clear

清除 API 门户的所有设置。

扩展 GA
az spring api-portal create

创建 API 门户。

扩展 GA
az spring api-portal custom-domain

用于管理 API 门户自定义域的命令。

扩展 GA
az spring api-portal custom-domain bind

使用 API 门户绑定自定义域。

扩展 GA
az spring api-portal custom-domain list

列出 API 门户的所有自定义域。

扩展 GA
az spring api-portal custom-domain show

显示自定义域的详细信息。

扩展 GA
az spring api-portal custom-domain unbind

取消绑定 API 门户的自定义域。

扩展 GA
az spring api-portal custom-domain update

更新 API 门户的自定义域。

扩展 GA
az spring api-portal delete

删除 API 门户。

扩展 GA
az spring api-portal show

显示 API 门户的设置、预配状态和运行时状态。

扩展 GA
az spring api-portal update

更新现有的 API 门户属性。

扩展 GA
az spring apm

(仅限企业层)用于管理 Azure Spring Apps 中的 APM 的命令。

扩展 GA
az spring apm create

(仅限企业层)创建 APM。

扩展 GA
az spring apm delete

(仅限企业层)删除 APM。

扩展 GA
az spring apm disable-globally

(仅限企业层)全局禁用 APM。

扩展 GA
az spring apm enable-globally

(仅限企业层)全局启用 APM。

扩展 GA
az spring apm list

(仅限企业层)列出 Azure Spring Apps 中的所有 APM。 将省略机密。

扩展 GA
az spring apm list-enabled-globally

(仅限企业层)列出 Azure Spring Apps 中全局启用的所有 APM。

扩展 GA
az spring apm list-support-types

(仅限企业层)列出 Azure Spring Apps 中支持的所有 APM 类型。

扩展 GA
az spring apm show

(仅限企业层)显示 APM。 机密将被屏蔽。

扩展 GA
az spring apm update

(仅限企业层)更新 APM。

扩展 GA
az spring app

用于管理 Azure Spring Apps 中的应用的命令。

扩展 GA
az spring app-insights

用于在 Azure Spring Apps 中管理 Application Insights 的命令。

扩展 GA
az spring app-insights show

显示 Application Insights 设置。

扩展 GA
az spring app-insights update

更新 Application Insights 设置。

扩展 GA
az spring app append-loaded-public-certificate

将新加载的公共证书追加到 Azure Spring Apps 中的应用。

扩展 GA
az spring app append-persistent-storage

将新的持久存储追加到 Azure Spring Apps 中的应用。

扩展 GA
az spring app binding

使用 Azure Data Services 管理绑定的命令需要手动重启应用以使设置生效。

扩展 已放弃
az spring app binding cosmos

用于管理 Azure Cosmos DB 绑定的命令。

扩展 已放弃
az spring app binding cosmos add

将 Azure Cosmos DB 与应用绑定。

扩展 已放弃
az spring app binding cosmos update

更新应用的 Azure Cosmos DB 服务绑定。

扩展 已放弃
az spring app binding list

列出应用中的所有服务绑定。

扩展 已放弃
az spring app binding mysql

用于管理 Azure Database for MySQL 绑定的命令。

扩展 已放弃
az spring app binding mysql add

将 Azure Database for MySQL 与应用绑定。

扩展 已放弃
az spring app binding mysql update

更新应用的 Azure Database for MySQL 服务绑定。

扩展 已放弃
az spring app binding redis

用于管理 Azure Redis 缓存绑定的命令。

扩展 已放弃
az spring app binding redis add

将 Azure Redis 缓存与应用绑定。

扩展 已放弃
az spring app binding redis update

更新应用的 Azure Redis 缓存服务绑定。

扩展 已放弃
az spring app binding remove

删除应用的服务绑定。

扩展 已放弃
az spring app binding show

显示服务绑定的详细信息。

扩展 已放弃
az spring app connect

连接应用实例的交互式 shell 进行故障排除”。

扩展 GA
az spring app create

在 Azure Spring Apps 实例中使用默认部署创建新应用。

扩展 GA
az spring app custom-domain

用于管理自定义域的命令。

扩展 GA
az spring app custom-domain bind

将自定义域与应用绑定。

扩展 GA
az spring app custom-domain list

列出应用的所有自定义域。

扩展 GA
az spring app custom-domain show

显示自定义域的详细信息。

扩展 GA
az spring app custom-domain unbind

取消绑定应用的自定义域。

扩展 GA
az spring app custom-domain update

更新应用的自定义域。

扩展 GA
az spring app delete

删除 Azure Spring Apps 中的应用。

扩展 GA
az spring app deploy

将源代码或预生成的二进制文件部署到应用并更新相关配置。

扩展 GA
az spring app deployment

用于管理 Azure Spring Apps 中应用的部署生命周期的命令。 可以使用参数 --deployment 在应用级别上对部署执行更多操作。 例如 az spring app deploy --deployment.

扩展 GA
az spring app deployment create

为应用创建过渡部署。 若要将代码或更新设置部署到现有部署,请使用 az spring app deploy/update --deployment <staging deployment>

扩展 GA
az spring app deployment delete

删除应用的部署。

扩展 GA
az spring app deployment generate-heap-dump

将目标应用实例的堆转储生成到给定的文件路径。

扩展 GA
az spring app deployment generate-thread-dump

将目标应用实例的线程转储生成到给定的文件路径。

扩展 GA
az spring app deployment list

列出应用中的所有部署。

扩展 GA
az spring app deployment show

显示部署的详细信息。

扩展 GA
az spring app deployment start-jfr

在目标应用实例上启动 JFR 以指定文件路径。

扩展 GA
az spring app disable-remote-debugging

禁用部署的远程调试。

扩展 GA
az spring app enable-remote-debugging

为部署启用远程调试。

扩展 GA
az spring app get-remote-debugging-config

获取部署的远程调试配置。

扩展 GA
az spring app identity

管理应用的托管标识。

扩展 GA
az spring app identity assign

启用系统分配的托管标识或将用户分配的托管标识分配给应用。

扩展 GA
az spring app identity force-set

在应用上强制设置托管标识。

扩展 GA
az spring app identity remove

从应用中删除托管标识。

扩展 GA
az spring app identity show

显示应用的托管标识信息。

扩展 GA
az spring app list

列出 Azure Spring Apps 中的所有应用。

扩展 GA
az spring app log

使用多个选项结尾应用实例日志的命令。 如果应用只有一个实例,则实例名称是可选的。

扩展 已放弃
az spring app log tail

显示应用实例的日志,设置“-f/--follow”时将流式传输日志。

扩展 已放弃
az spring app logs

显示应用实例的日志,设置“-f/--follow”时将流式传输日志。

扩展 GA
az spring app restart

重启应用的实例,默认为生产部署。

扩展 GA
az spring app scale

手动缩放应用或其部署。

扩展 GA
az spring app set-deployment

设置应用的生产部署。

扩展 GA
az spring app show

在 Azure Spring Apps 中显示应用的详细信息。

扩展 GA
az spring app show-deploy-log

显示上次部署的生成日志,仅适用于源代码部署,默认为生产部署。

扩展 GA
az spring app start

启动应用的实例,默认为生产部署。

扩展 GA
az spring app stop

停止应用的实例,默认为生产部署。

扩展 GA
az spring app unset-deployment

取消设置应用的生产部署。

扩展 GA
az spring app update

更新应用的配置。

扩展 GA
az spring application-accelerator

(仅限企业层)用于在 Azure Spring Apps 中管理应用程序加速器的命令。

扩展 GA
az spring application-accelerator create

(仅限企业层)在 Azure Spring Apps 实例中创建应用程序加速器。

扩展 GA
az spring application-accelerator customized-accelerator

(仅限企业层)用于在 Azure Spring Apps 中管理自定义加速器的命令。

扩展 GA
az spring application-accelerator customized-accelerator create

(仅限企业层)创建自定义加速器。

扩展 GA
az spring application-accelerator customized-accelerator delete

(仅限企业层)删除自定义加速器。

扩展 GA
az spring application-accelerator customized-accelerator list

(仅限企业层)列出所有现有的自定义加速器。

扩展 GA
az spring application-accelerator customized-accelerator show

(仅限企业层)显示自定义加速器的设置、预配状态和运行时状态。

扩展 GA
az spring application-accelerator customized-accelerator sync-cert

(仅限企业层)自定义加速器的同步证书。

扩展 GA
az spring application-accelerator customized-accelerator update

(仅限企业层)更新自定义加速器。

扩展 GA
az spring application-accelerator delete

(仅限企业层)从 Azure Spring Apps 实例中删除应用程序加速器。

扩展 GA
az spring application-accelerator predefined-accelerator

(仅限企业层)用于在 Azure Spring Apps 中管理预定义加速器的命令。

扩展 GA
az spring application-accelerator predefined-accelerator disable

(仅限企业层)禁用预定义的加速器。

扩展 GA
az spring application-accelerator predefined-accelerator enable

(仅限企业层)启用预定义的加速器。

扩展 GA
az spring application-accelerator predefined-accelerator list

(仅限企业层)列出所有现有的预定义加速器。

扩展 GA
az spring application-accelerator predefined-accelerator show

(仅限企业层)显示预定义加速器的设置、预配状态和运行时状态。

扩展 GA
az spring application-accelerator show

(仅限企业层)显示应用程序加速器的设置、预配状态和运行时状态。

扩展 GA
az spring application-configuration-service

(仅限企业层)用于在 Azure Spring Apps 中管理应用程序配置服务的命令。

扩展 GA
az spring application-configuration-service bind

将应用绑定到应用程序配置服务。

扩展 GA
az spring application-configuration-service clear

重置所有应用程序配置服务设置。

扩展 GA
az spring application-configuration-service config

用于管理应用程序配置服务从 上游 Git 存储库拉取的配置的命令。

扩展 GA
az spring application-configuration-service config show

用于显示应用程序配置服务从 上游 Git 存储库拉取的配置的命令。

扩展 GA
az spring application-configuration-service create

创建应用程序配置服务。

扩展 GA
az spring application-configuration-service delete

删除应用程序配置服务。

扩展 GA
az spring application-configuration-service git

用于在 Azure Spring Apps 中管理应用程序配置服务 git 属性的命令。

扩展 GA
az spring application-configuration-service git repo

用于在 Azure Spring Apps 中管理应用程序配置服务 git 存储库的命令。

扩展 GA
az spring application-configuration-service git repo add

将 Git 属性添加到应用程序配置服务设置。

扩展 GA
az spring application-configuration-service git repo list

列出应用程序配置服务的所有 Git 设置。

扩展 GA
az spring application-configuration-service git repo remove

从应用程序配置服务设置中删除现有 Git 属性。

扩展 GA
az spring application-configuration-service git repo update

更新应用程序配置服务设置中的现有 Git 属性。

扩展 GA
az spring application-configuration-service show

显示应用程序配置服务的预配状态、运行时状态和设置。

扩展 GA
az spring application-configuration-service unbind

从应用程序配置服务取消绑定应用。

扩展 GA
az spring application-configuration-service update

更新应用程序配置服务。

扩展 GA
az spring application-live-view

(仅限企业层)用于在 Azure Spring Apps 中管理应用程序实时视图的命令。 应用程序实时视图提供应用程序实例指标,并便于开发人员监视应用程序运行时。

扩展 GA
az spring application-live-view create

创建应用程序实时视图。

扩展 GA
az spring application-live-view delete

删除应用程序实时视图。

扩展 GA
az spring application-live-view show

显示应用程序实时视图的预配状态、运行状态和设置。

扩展 GA
az spring build-service

(仅限企业层)用于在 Azure Spring Apps 中管理生成服务的命令。

扩展 GA
az spring build-service build

(仅限企业层)用于管理生成资源的命令。

扩展 GA
az spring build-service build create

创建生成。

扩展 GA
az spring build-service build delete

删除生成。

扩展 GA
az spring build-service build list

列出内部版本。

扩展 GA
az spring build-service build result

(仅限企业层)用于查看生成结果资源的命令。

扩展 GA
az spring build-service build result list

列出生成结果。

扩展 GA
az spring build-service build result show

显示生成结果。

扩展 GA
az spring build-service build show

显示生成。

扩展 GA
az spring build-service build update

更新生成。

扩展 GA
az spring build-service builder

(仅限企业层)用于管理生成服务的生成器的命令。

扩展 GA
az spring build-service builder buildpack-binding

(仅限企业层)用于管理生成器生成包绑定的命令。

扩展 GA
az spring build-service builder buildpack-binding create

(仅限企业层)创建生成包绑定。

扩展 GA
az spring build-service builder buildpack-binding delete

(仅限企业层)删除 buildpack 绑定。

扩展 GA
az spring build-service builder buildpack-binding list

(仅限企业层)列出生成器中的所有生成包绑定。 机密将被屏蔽。

扩展 GA
az spring build-service builder buildpack-binding set

(仅限企业层)设置 buildpack 绑定。

扩展 GA
az spring build-service builder buildpack-binding show

(仅限企业层)显示生成包绑定。 机密将被屏蔽。

扩展 GA
az spring build-service builder create

创建生成器。

扩展 GA
az spring build-service builder delete

删除生成器。

扩展 GA
az spring build-service builder show

显示生成器。

扩展 GA
az spring build-service builder show-deployments

显示部署。

扩展 GA
az spring build-service builder update

更新生成器。

扩展 GA
az spring build-service show

显示生成服务。

扩展 GA
az spring build-service update

更新生成服务。

扩展 GA
az spring certificate

用于管理证书的命令。

扩展 GA
az spring certificate add

在 Azure Spring Apps 中添加证书。

扩展 GA
az spring certificate list

列出 Azure Spring Apps 中的所有证书。

扩展 GA
az spring certificate list-reference-app

列出所有应用引用 Azure Spring Apps 中的现有证书。

扩展 GA
az spring certificate remove

删除 Azure Spring Apps 中的证书。

扩展 GA
az spring certificate show

在 Azure Spring Apps 中显示证书。

扩展 GA
az spring certificate update

更新 Azure Spring Apps 中的证书。

扩展 GA
az spring component

(仅限企业层)用于处理托管组件的命令。

扩展 GA
az spring component instance

(仅限企业层)用于处理托管组件的实例的命令。

扩展 GA
az spring component instance list

(仅限企业层)列出 Azure Spring Apps 实例中特定托管组件的所有可用实例。

扩展 GA
az spring component list

(仅限企业层)列出托管组件。

扩展 GA
az spring component logs

(仅限企业层)显示托管组件的日志。 设置“-f/--follow”时,将流式传输日志。 目前,仅支持 (a) 应用程序配置服务 (b) Spring Cloud 网关的子组件。

扩展 GA
az spring config-server

(支持标准层和基本层)用于在 Azure Spring Apps 中管理配置服务器的命令。

扩展 GA
az spring config-server clear

清除配置服务器中的所有设置。

扩展 GA
az spring config-server disable

(支持标准消耗层)禁用配置服务器。

扩展 GA
az spring config-server enable

(支持标准消耗层)启用配置服务器。

扩展 GA
az spring config-server git

用于在 Azure Spring Apps 中管理配置服务器 git 属性的命令。

扩展 GA
az spring config-server git repo

用于管理 Azure Spring Apps 中的配置服务器 git 存储库的命令。

扩展 GA
az spring config-server git repo add

添加 Config Server 的 git 属性的新存储库。

扩展 GA
az spring config-server git repo list

列出 Config Server 的 git 属性的所有存储库。

扩展 GA
az spring config-server git repo remove

删除 Config Server 的 git 属性的现有存储库。

扩展 GA
az spring config-server git repo update

重写 Config Server 的 git 属性的现有存储库,将完全替代旧存储库。

扩展 GA
az spring config-server git set

设置 Config Server 的 git 属性,将完全替代旧属性。

扩展 GA
az spring config-server set

从 yaml 文件设置配置服务器。

扩展 GA
az spring config-server show

显示配置服务器。

扩展 GA
az spring connection

用于管理 Spring App 连接的命令。

核心 GA
az spring connection create

在 Spring 应用和目标资源之间创建连接。

核心 GA
az spring connection create app-insights

创建与 app-insights 的春季应用连接。

核心 GA
az spring connection create appconfig

创建到 appconfig 的 Spring 应用连接。

核心 GA
az spring connection create confluent-cloud

创建与 confluent-cloud 的 Spring 应用连接。

核心 GA
az spring connection create cosmos-cassandra

创建与 cosmos-cassandra 的 Spring 应用连接。

核心 GA
az spring connection create cosmos-gremlin

创建与 cosmos-gremlin 的春季应用连接。

核心 GA
az spring connection create cosmos-mongo

创建与 cosmos-mongo 的 Spring 应用连接。

核心 GA
az spring connection create cosmos-sql

创建与 cosmos-sql 的 Spring 应用连接。

核心 GA
az spring connection create cosmos-table

创建与 cosmos-table 的 Spring 应用连接。

核心 GA
az spring connection create eventhub

创建到 eventhub 的 Spring 应用连接。

核心 GA
az spring connection create keyvault

创建到 keyvault 的 Spring 应用连接。

核心 GA
az spring connection create mysql

创建与 mysql 的 Spring 应用连接。

核心 已放弃
az spring connection create mysql-flexible

创建与 mysql 灵活连接的 Spring 应用连接。

核心 GA
az spring connection create postgres

创建到 postgres 的 Spring 应用连接。

核心 已放弃
az spring connection create postgres-flexible

创建与 postgres 灵活连接的 Spring 应用连接。

核心 GA
az spring connection create redis

创建与 redis 的 Spring 应用连接。

核心 GA
az spring connection create redis-enterprise

创建与 redis-enterprise 的 Spring 应用连接。

核心 GA
az spring connection create servicebus

创建与 servicebus 的 Spring 应用连接。

核心 GA
az spring connection create signalr

创建与信号器的春季应用连接。

核心 GA
az spring connection create sql

创建与 sql 的 Spring 应用连接。

核心 GA
az spring connection create storage-blob

创建到 storage-blob 的 Spring 应用连接。

核心 GA
az spring connection create storage-file

创建与存储文件的 Spring 应用连接。

核心 GA
az spring connection create storage-queue

创建与存储队列的 Spring 应用连接。

核心 GA
az spring connection create storage-table

创建与存储表的 Spring 应用连接。

核心 GA
az spring connection create webpubsub

创建与 Webpubsub 的 Spring 应用连接。

核心 GA
az spring connection delete

删除 Spring 应用连接。

核心 GA
az spring connection list

列出 Spring 应用的连接。

核心 GA
az spring connection list-configuration

列出 Spring 应用连接的源配置。

核心 GA
az spring connection list-support-types

列出 Spring 应用连接支持的客户端类型和身份验证类型。

核心 GA
az spring connection show

获取 Spring 应用连接的详细信息。

核心 GA
az spring connection update

更新 Spring 应用连接。

核心 GA
az spring connection update app-insights

将 Spring 应用更新为 app-insights 连接。

核心 GA
az spring connection update appconfig

将 Spring 应用更新为 appconfig 连接。

核心 GA
az spring connection update confluent-cloud

将 Spring 应用更新为 confluent-cloud 连接。

核心 GA
az spring connection update cosmos-cassandra

将 spring 应用更新为 cosmos-cassandra 连接。

核心 GA
az spring connection update cosmos-gremlin

将 Spring 应用更新为 cosmos-gremlin 连接。

核心 GA
az spring connection update cosmos-mongo

将 spring 应用更新为 cosmos-mongo 连接。

核心 GA
az spring connection update cosmos-sql

将 spring 应用更新为 cosmos-sql 连接。

核心 GA
az spring connection update cosmos-table

将 spring 应用更新为 cosmos-table 连接。

核心 GA
az spring connection update eventhub

将 Spring 应用更新到 eventhub 连接。

核心 GA
az spring connection update keyvault

将 Spring 应用更新为 keyvault 连接。

核心 GA
az spring connection update mysql

将 spring 应用更新到 mysql 连接。

核心 已放弃
az spring connection update mysql-flexible

将 spring 应用更新为 mysql 灵活连接。

核心 GA
az spring connection update postgres

将 Spring 应用更新为 postgres 连接。

核心 已放弃
az spring connection update postgres-flexible

将 Spring 应用更新为灵活连接。

核心 GA
az spring connection update redis

将 Spring 应用更新为 redis 连接。

核心 GA
az spring connection update redis-enterprise

将 Spring 应用更新为 redis-enterprise 连接。

核心 GA
az spring connection update servicebus

将 Spring 应用更新为 servicebus 连接。

核心 GA
az spring connection update signalr

将 Spring 应用更新为信号器连接。

核心 GA
az spring connection update sql

将 spring 应用更新为 sql 连接。

核心 GA
az spring connection update storage-blob

将 Spring 应用更新为 storage-blob 连接。

核心 GA
az spring connection update storage-file

将 Spring 应用更新为存储文件连接。

核心 GA
az spring connection update storage-queue

将 Spring 应用更新为存储队列连接。

核心 GA
az spring connection update storage-table

将 Spring 应用更新为存储表连接。

核心 GA
az spring connection update webpubsub

将 Spring 应用更新为 webpubsub 连接。

核心 GA
az spring connection validate

验证 Spring 应用连接。

核心 GA
az spring connection wait

将 CLI 置于等待状态,直到满足连接条件。

核心 GA
az spring container-registry

(仅限企业层)用于管理容器注册表资源的命令。

扩展 GA
az spring container-registry create

创建容器注册表。

扩展 GA
az spring container-registry delete

删除容器注册表。

扩展 GA
az spring container-registry list

列出所有容器注册表。

扩展 GA
az spring container-registry show

显示容器注册表。

扩展 GA
az spring container-registry update

更新容器注册表。

扩展 GA
az spring create

创建 Azure Spring Apps 实例。

扩展 GA
az spring delete

删除 Azure Spring Apps。

扩展 GA
az spring dev-tool

(仅限企业层)用于在 Azure Spring Apps 中管理开发工具的命令。 开发人员工具门户是托管开发人员工具的基础应用程序。

扩展 GA
az spring dev-tool create

创建开发工具门户。

扩展 GA
az spring dev-tool delete

删除开发工具门户。

扩展 GA
az spring dev-tool show

显示开发工具门户的预配状态、运行状态和设置。

扩展 GA
az spring dev-tool update

更新开发工具门户。

扩展 GA
az spring eureka-server

(支持标准消耗层)用于在 Azure Spring Apps 中管理 Eureka Server 的命令。

扩展 GA
az spring eureka-server disable

(支持标准消耗层)禁用 Eureka 服务器。

扩展 GA
az spring eureka-server enable

(支持标准消耗层)启用 Eureka 服务器。

扩展 GA
az spring eureka-server show

(支持标准消耗层)显示 Eureka 服务器。

扩展 GA
az spring flush-virtualnetwork-dns-settings

(仅限标准和企业层)刷新 Azure Spring Apps 的虚拟网络 DNS 设置。

扩展 预览
az spring gateway

(仅限企业层)用于管理 Azure Spring Apps 中的网关的命令。

扩展 GA
az spring gateway clear

清除网关的所有设置。

扩展 GA
az spring gateway create

创建 Spring Cloud Gateway。

扩展 GA
az spring gateway custom-domain

用于管理网关自定义域的命令。

扩展 GA
az spring gateway custom-domain bind

将自定义域与网关绑定。

扩展 GA
az spring gateway custom-domain list

列出网关的所有自定义域。

扩展 GA
az spring gateway custom-domain show

显示自定义域的详细信息。

扩展 GA
az spring gateway custom-domain unbind

取消绑定网关的自定义域。

扩展 GA
az spring gateway custom-domain update

更新网关的自定义域。

扩展 GA
az spring gateway delete

删除 Spring Cloud Gateway。

扩展 GA
az spring gateway restart

重启 Spring Cloud 网关。

扩展 GA
az spring gateway route-config

用于管理 Azure Spring Apps 中的网关路由配置的命令。

扩展 GA
az spring gateway route-config create

使用 Json 数组格式的路由规则创建网关路由配置。

扩展 GA
az spring gateway route-config list

列出所有现有网关路由配置。

扩展 GA
az spring gateway route-config remove

删除现有的网关路由配置。

扩展 GA
az spring gateway route-config show

获取现有的网关路由配置。

扩展 GA
az spring gateway route-config update

使用 Json 数组格式的路由规则更新现有网关路由配置。

扩展 GA
az spring gateway show

显示网关的设置、预配状态和运行时状态。

扩展 GA
az spring gateway sync-cert

同步网关证书。

扩展 GA
az spring gateway update

更新现有网关属性。

扩展 GA
az spring list

列出给定资源组中的所有 Azure Spring Apps,否则列出订阅。

扩展 GA
az spring list-marketplace-plan

(仅限企业层)列出要购买的市场计划。

扩展 预览
az spring list-support-server-versions

(仅限标准和基本层)列出受支持的服务器版本。

扩展 预览
az spring service-registry

(仅限企业层)用于在 Azure Spring Apps 中管理服务注册表的命令。

扩展 GA
az spring service-registry bind

将应用绑定到服务注册表。

扩展 GA
az spring service-registry create

创建服务注册表。

扩展 GA
az spring service-registry delete

删除服务注册表。

扩展 GA
az spring service-registry show

显示服务注册表的预配状态和运行时状态。

扩展 GA
az spring service-registry unbind

从服务注册表取消绑定应用。

扩展 GA
az spring show

显示 Azure Spring Apps 的详细信息。

扩展 GA
az spring start

启动 Azure Spring Apps。

扩展 GA
az spring stop

停止 Azure Spring Apps。

扩展 GA
az spring storage

用于在 Azure Spring Apps 中管理存储的命令。

扩展 GA
az spring storage add

在 Azure Spring Apps 中创建新的存储。

扩展 GA
az spring storage list

列出 Azure Spring Apps 中的所有现有存储。

扩展 GA
az spring storage list-persistent-storage

列出与 Azure Spring Apps 中的现有存储相关的所有永久性存储。

扩展 GA
az spring storage remove

删除 Azure Spring Apps 中的现有存储。

扩展 GA
az spring storage show

获取 Azure Spring Apps 中的现有存储。

扩展 GA
az spring storage update

更新 Azure Spring Apps 中的现有存储。

扩展 GA
az spring test-endpoint

用于管理 Azure Spring Apps 中的测试终结点的命令。

扩展 GA
az spring test-endpoint disable

禁用 Azure Spring Apps 的测试终结点。

扩展 GA
az spring test-endpoint enable

启用 Azure Spring Apps 的测试终结点。

扩展 GA
az spring test-endpoint list

列出 Azure Spring Apps 的测试终结点密钥。

扩展 GA
az spring test-endpoint renew-key

重新生成 Azure Spring Apps 的测试终结点密钥。

扩展 GA
az spring update

更新 Azure Spring Apps。

扩展 GA

az spring create

创建 Azure Spring Apps 实例。

az spring create --name
                 --resource-group
                 [--acs-gen {Gen1, Gen2}]
                 [--ap-instance]
                 [--app-insights]
                 [--app-insights-key]
                 [--app-network-resource-group]
                 [--app-subnet]
                 [--build-pool-size {S1, S2, S3, S4, S5, S6, S7, S8, S9}]
                 [--disable-app-insights {false, true}]
                 [--disable-build-service {false, true}]
                 [--enable-acs]
                 [--enable-alv]
                 [--enable-api-portal]
                 [--enable-app-acc]
                 [--enable-dataplane-public-endpoint {false, true}]
                 [--enable-gateway]
                 [--enable-service-registry]
                 [--gateway-instance-count]
                 [--infra-resource-group]
                 [--ingress-read-timeout]
                 [--location]
                 [--managed-environment]
                 [--marketplace-plan-id]
                 [--no-wait]
                 [--outbound-type]
                 [--registry-password]
                 [--registry-server]
                 [--registry-username]
                 [--reserved-cidr-range]
                 [--sampling-rate]
                 [--service-runtime-network-resource-group]
                 [--service-runtime-subnet]
                 [--sku {Basic, Enterprise, Standard, StandardGen2}]
                 [--tags]
                 [--vnet]
                 [--zone-redundant {false, true}]

示例

在 westus 中创建新的 Azure Spring Apps。

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

使用 连接ion 字符串(建议)或检测密钥,在 westus 中使用现有的 Application Insights 创建新的 Azure Spring Apps。

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

使用现有的 Application Insights 在 westus 中创建新的 Azure Spring Apps。

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

使用现有的 Application Insights 在 westus 中创建新的 Azure Spring Apps 并指定采样率。

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

使用 Application Insights 禁用创建新的 Azure Spring Apps。

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

通过为当前资源组中的 VNet 名称注入 VNet 创建新的 Azure Spring Apps

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

通过为子网资源 ID 注入 VNet 创建新的 Azure Spring Apps

az spring 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 Apps Enterprise 实例,则创建 Azure Spring Apps Enterprise 实例

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

创建启用了 Tanzu 组件的 Azure Spring Apps Enterprise 实例。

az provider register -n Microsoft.SaaS
az term accept --publisher vmware-inc --product azure-spring-cloud-vmware-tanzu-2 --plan asa-ent-hr-mtr
az spring create -n MyService -g MyResourceGroup --sku Enterprise --enable-application-configuration-service --enable-service-registry --enable-gateway --enable-api-portal --enable-application-live-view  --enable-application-accelerator

必需参数

--name -n

Azure Spring Apps 实例的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

可选参数

--acs-gen --application-configuration-service-generation

(仅限企业层)要启用的应用程序配置服务生成。

接受的值: Gen1, Gen2
--ap-instance --api-portal-instance-count

(仅限企业层)API 门户实例数。

--app-insights

同一资源组中现有 Application Insights 的名称。 或不同资源组中现有 Application Insights 的资源 ID。

--app-insights-key

连接字符串(建议)或现有 Application Insights 的检测密钥。

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

将在其中创建应用的所有网络资源的资源组。

--app-subnet

要在其中部署 Spring Apps 应用的“vnet”中现有子网的名称或 ID。 部署到虚拟网络时是必需的。 支持较小的子网大小,请参阅: https://aka.ms/azure-spring-cloud-smaller-subnet-vnet-docs

--build-pool-size

(仅限企业层)生成代理池的大小。 请参阅 https://aka.ms/azure-spring-cloud-build-service-docs 大小信息。

接受的值: S1, S2, S3, S4, S5, S6, S7, S8, S9
--disable-app-insights

禁用 Application Insights(如果未禁用)且未使用 --app-insights-key 或 --app-insights 指定的现有 Application Insights,则会在同一资源组中创建新的 Application Insights 实例。

接受的值: false, true
--disable-build-service

(仅限企业层)禁用生成服务。

接受的值: false, true
默认值: False
--enable-acs --enable-application-configuration-service

(仅限企业层)启用应用程序配置服务。

默认值: False
--enable-alv --enable-application-live-view

(仅限企业层)启用应用程序实时视图。

默认值: False
--enable-api-portal

(仅限企业层)启用 API 门户。

默认值: False
--enable-app-acc --enable-application-accelerator

(仅限企业层)启用应用程序加速器。

默认值: False
--enable-dataplane-public-endpoint --enable-dppa

如果为 true,请为日志流式处理、远程调试分配公共终结点,在可从虚拟网络访问的 vnet 注入实例中连接应用。

接受的值: false, true
--enable-gateway

(仅限企业层)启用 Spring Cloud Gateway。

默认值: False
--enable-service-registry --enable-sr

(仅限企业层)启用服务注册表。

默认值: False
--gateway-instance-count

(仅限企业层)Spring Cloud Gateway 实例数。

--infra-resource-group

包含基础结构资源的资源组的名称。

--ingress-read-timeout

入口读取超时值(以秒为单位)。 默认值 300,最小值为 1,最大值为 1800。

--location -l

位置。 az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--managed-environment

Spring Apps 实例所基于的容器应用环境的资源 ID。

--marketplace-plan-id
预览

(仅限企业层)指定要使用 Spring 实例购买的其他市场计划。 通过运行 az spring list-marketplace-plan -o table列出所有计划。

--no-wait

不等待长时间运行的操作完成。

默认值: False
--outbound-type

Azure Spring Apps VNet 实例的出站类型。

默认值: loadBalancer
--registry-password

(仅限企业层)生成服务中使用的容器注册表密码。

--registry-server

(仅限企业层)生成服务中使用的容器注册表服务器。

--registry-username

(仅限企业层)生成服务中使用的容器注册表用户名。

--reserved-cidr-range

CIDR 格式的 IP 地址范围的逗号分隔列表。 IP 范围保留为托管基础 Azure Spring Apps 基础结构(至少为 3 个未使用的 IP 范围)不得与任何子网 IP 范围重叠。

--sampling-rate

Application Insights 的采样率。 最小值为 0,最大值为 100。

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

将在其中创建 Azure Spring Apps 服务运行时的所有网络资源的资源组。

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

要在其中部署 Spring Apps 服务运行时的“vnet”中现有子网的名称或 ID。 部署到虚拟网络时是必需的。

--sku

SKU 的名称。

接受的值: Basic, Enterprise, Standard, StandardGen2
默认值: Standard
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

--vnet

要在其中部署 Spring Apps 实例的现有虚拟网络的名称或 ID。

--zone-redundant
预览

在 Azure 可用性区域中创建 Azure Spring Apps 服务,目前只能在多个区域支持此功能。

接受的值: 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring delete

删除 Azure Spring Apps。

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

必需参数

--name -n

Azure Spring Apps 实例的名称。

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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring flush-virtualnetwork-dns-settings

预览

此命令处于预览阶段,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

(仅限标准和企业层)刷新 Azure Spring Apps 的虚拟网络 DNS 设置。

az spring flush-virtualnetwork-dns-settings --name
                                            --resource-group
                                            [--no-wait]

必需参数

--name -n

Azure Spring Apps 实例的名称。

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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring list

列出给定资源组中的所有 Azure Spring Apps,否则列出订阅。

az spring 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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring list-marketplace-plan

预览

此命令处于预览阶段,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

(仅限企业层)列出要购买的市场计划。

az spring list-marketplace-plan

示例

列出所有计划。

az spring list-marketplace-plan -o table
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring list-support-server-versions

预览

此命令处于预览阶段,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

(仅限标准和基本层)列出受支持的服务器版本。

az spring list-support-server-versions --resource-group
                                       --service

示例

列出受支持的服务器版本。

az spring list-support-server-versions -o table -s MyService -g MyResourceGroup

必需参数

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--service -s

Azure Spring Apps 实例的名称,可以使用 az configure --defaults spring=配置默认服务。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring show

显示 Azure Spring Apps 的详细信息。

az spring show --name
               --resource-group

必需参数

--name -n

Azure Spring Apps 实例的名称。

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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring start

启动 Azure Spring Apps。

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

必需参数

--name -n

Azure Spring Apps 实例的名称。

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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring stop

停止 Azure Spring Apps。

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

必需参数

--name -n

Azure Spring Apps 实例的名称。

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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az spring update

更新 Azure Spring Apps。

az spring update --name
                 --resource-group
                 [--build-pool-size {S1, S2, S3, S4, S5, S6, S7, S8, S9}]
                 [--enable-dataplane-public-endpoint {false, true}]
                 [--enable-planned-maintenance]
                 [--ingress-read-timeout]
                 [--no-wait]
                 [--planned-maintenance-day {Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}]
                 [--planned-maintenance-start-hour]
                 [--sku {Basic, Enterprise, Standard, StandardGen2}]
                 [--tags]

示例

更新定价层。

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

更新现有 Azure Spring Apps 的标记。

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

配置计划内维护

az spring update -n MyService -g MyResourceGroup --enable-planned-maintenance --planned-maintenance-day Friday --planned-maintenance-start-hour 10

必需参数

--name -n

Azure Spring Apps 实例的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

可选参数

--build-pool-size

(仅限企业层)生成代理池的大小。 请参阅 https://aka.ms/azure-spring-cloud-build-service-docs 大小信息。

接受的值: S1, S2, S3, S4, S5, S6, S7, S8, S9
--enable-dataplane-public-endpoint --enable-dppa

如果为 true,请为日志流式处理、远程调试分配公共终结点,在可从虚拟网络访问的 vnet 注入实例中连接应用。

接受的值: false, true
--enable-planned-maintenance --enable-pm
预览

如果已设置,请为实例启用计划内维护。

默认值: False
--ingress-read-timeout

入口读取超时值(以秒为单位)。 最小值为 1,最大值为 1800。

--no-wait

不等待长时间运行的操作完成。

默认值: False
--planned-maintenance-day --pm-day
预览

计划内维护的一周中的一天。

接受的值: Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday
--planned-maintenance-start-hour --pm-start-hour
预览

计划内维护时段的开始时间(UTC)。 必须介于 0 和 23 之间。

--sku

SKU 的名称。

接受的值: Basic, Enterprise, Standard, StandardGen2
--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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。