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

az spring connection

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

命令

名称 说明 类型 状态
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 connection delete

删除 Spring 应用连接。

az spring connection delete [--app]
                            [--connection]
                            [--deployment]
                            [--id]
                            [--no-wait]
                            [--resource-group]
                            [--service]
                            [--yes]

示例

以交互方式删除 Spring 应用连接

az spring connection delete

按连接名称删除 Spring 应用连接

az spring connection delete -g SpringCloudRG --service MySpringService --app MyApp --connection MyConnection

按连接 ID 删除 Spring 应用连接

az spring connection delete --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}

可选参数

--app

Azure Spring Apps 中的应用的名称。 如果未指定“--id”,则为必需。没有。

--connection

Spring 连接的名称。

--deployment

应用的部署名称。

--id

连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--service'、'--app'、'--connection']。

--no-wait

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

默认值: False
--resource-group -g

包含 Azure Spring Apps 中的应用的资源组。 如果未指定“--id”,则为必需。没有。

--service

Azure Spring Apps 资源的名称。 如果未指定“--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

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

--verbose

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

az spring connection list

列出 Spring 应用的连接。

az spring connection list [--app]
                          [--deployment]
                          [--resource-group]
                          [--service]
                          [--source-id]

示例

以交互方式列出 Spring 应用连接

az spring connection list

按源资源名称列出 Spring 应用连接

az spring connection list -g SpringCloudRG --service MySpringService --app MyApp

按源资源 ID 列出 Spring 应用连接

az spring connection list --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app}

可选参数

--app

Azure Spring Apps 中的应用的名称。 如果未指定“--source-id”,则为必需。没有。

--deployment

应用的部署名称。

--resource-group -g

包含 Azure Spring Apps 中的应用的资源组。 如果未指定“--source-id”,则为必需。没有。

--service

Azure Spring Apps 资源的名称。 如果未指定“--source-id”,则为必需。没有。

--source-id

spring 的资源 ID。 如果未指定 ['--resource-group'、'--service'、'--app'],则为必需。

全局参数
--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 connection list-configuration

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

az spring connection list-configuration [--app]
                                        [--connection]
                                        [--deployment]
                                        [--id]
                                        [--resource-group]
                                        [--service]

示例

以交互方式列出连接的源配置

az spring connection list-configuration

按连接名称列出连接的源配置

az spring connection list-configuration -g SpringCloudRG --service MySpringService --app MyApp --connection MyConnection

按连接 ID 列出连接的源配置

az spring connection list-configuration --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}

可选参数

--app

Azure Spring Apps 中的应用的名称。 如果未指定“--id”,则为必需。没有。

--connection

Spring 连接的名称。

--deployment

应用的部署名称。

--id

连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--service'、'--app'、'--connection']。

--resource-group -g

包含 Azure Spring Apps 中的应用的资源组。 如果未指定“--id”,则为必需。没有。

--service

Azure Spring Apps 资源的名称。 如果未指定“--id”,则为必需。没有。

全局参数
--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 connection list-support-types

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

az spring connection list-support-types [--target-type {app-insights, appconfig, confluent-cloud, cosmos-cassandra, cosmos-gremlin, cosmos-mongo, cosmos-sql, cosmos-table, eventhub, keyvault, mysql, mysql-flexible, postgres, postgres-flexible, redis, redis-enterprise, servicebus, signalr, sql, storage-blob, storage-file, storage-queue, storage-table, webpubsub}]

示例

列出支持的所有 Spring 应用目标资源类型和身份验证类型

az spring connection list-support-types -o table

列出特定目标资源类型支持的 Spring 应用身份验证类型

az spring connection list-support-types --target-type storage-blob -o table

可选参数

--target-type -t

目标资源类型。

接受的值: app-insights, appconfig, confluent-cloud, cosmos-cassandra, cosmos-gremlin, cosmos-mongo, cosmos-sql, cosmos-table, eventhub, keyvault, mysql, mysql-flexible, postgres, postgres-flexible, redis, redis-enterprise, servicebus, signalr, sql, storage-blob, storage-file, storage-queue, storage-table, webpubsub
全局参数
--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 connection show

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

az spring connection show [--app]
                          [--connection]
                          [--deployment]
                          [--id]
                          [--resource-group]
                          [--service]

示例

以交互方式获取连接

az spring connection show

按连接名称获取连接

az spring connection show -g SpringCloudRG --service MySpringService --app MyApp --connection MyConnection

按连接 ID 获取连接

az spring connection show --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}

可选参数

--app

Azure Spring Apps 中的应用的名称。 如果未指定“--id”,则为必需。没有。

--connection

Spring 连接的名称。

--deployment

应用的部署名称。

--id

连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--service'、'--app'、'--connection']。

--resource-group -g

包含 Azure Spring Apps 中的应用的资源组。 如果未指定“--id”,则为必需。没有。

--service

Azure Spring Apps 资源的名称。 如果未指定“--id”,则为必需。没有。

全局参数
--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 connection validate

验证 Spring 应用连接。

az spring connection validate [--app]
                              [--connection]
                              [--deployment]
                              [--id]
                              [--resource-group]
                              [--service]

示例

以交互方式验证连接

az spring connection validate

按连接名称验证连接

az spring connection validate -g SpringCloudRG --service MySpringService --app MyApp --connection MyConnection

按连接 ID 验证连接

az spring connection validate --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker}

可选参数

--app

Azure Spring Apps 中的应用的名称。 如果未指定“--id”,则为必需。没有。

--connection

Spring 连接的名称。

--deployment

应用的部署名称。

--id

连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--service'、'--app'、'--connection']。

--resource-group -g

包含 Azure Spring Apps 中的应用的资源组。 如果未指定“--id”,则为必需。没有。

--service

Azure Spring Apps 资源的名称。 如果未指定“--id”,则为必需。没有。

全局参数
--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 connection wait

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

az spring connection wait [--app]
                          [--connection]
                          [--created]
                          [--custom]
                          [--deleted]
                          [--deployment]
                          [--exists]
                          [--id]
                          [--interval]
                          [--resource-group]
                          [--service]
                          [--timeout]
                          [--updated]

示例

等待连接成功创建。

az spring connection wait --id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}/providers/Microsoft.ServiceLinker/linkers/{linker} --created

可选参数

--app

Azure Spring Apps 中的应用的名称。 如果未指定“--id”,则为必需。没有。

--connection

Spring 连接的名称。

--created

等待在“Succeeded”中使用“provisioningState”创建。

默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到删除为止。

默认值: False
--deployment

应用的部署名称。

--exists

等待资源存在。

默认值: False
--id

连接的资源 ID。 如果未指定“--id”,则需要 ['--resource-group'、'--service'、'--app'、'--connection']。

--interval

轮询间隔(以秒为单位)。

默认值: 30
--resource-group -g

包含 Azure Spring Apps 中的应用的资源组。 如果未指定“--id”,则为必需。没有。

--service

Azure Spring Apps 资源的名称。 如果未指定“--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

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

--verbose

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