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

az spring connection create

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

命令

名称 说明 类型 状态
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 create app-insights

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

az spring connection create app-insights [--app]
                                         [--app-insights]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python}]
                                         [--connection]
                                         [--customized-keys]
                                         [--deployment]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--resource-group]
                                         [--secret]
                                         [--service]
                                         [--source-id]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--vault-id]

示例

以交互方式在 Spring 应用和 app-insights 之间创建连接

az spring connection create app-insights

使用资源名称在 spring 应用与应用见解之间创建连接

az spring connection create app-insights -g SpringCloudRG --service MySpringService --app MyApp --tg AppInsightsRG --app-insights MyAppInsights --secret

使用资源 ID 在 spring 应用与应用见解之间创建连接

az spring connection create app-insights --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/microsoft.insights/components/{appinsights} --secret

可选参数

--app

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

--app-insights

应用见解的名称。 如果未指定“--target-id”,则为必需。

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--source-id

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

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--app-insights'],则为必需。

--target-resource-group --tg

包含应用见解的资源组。 如果未指定“--target-id”,则为必需。

--vault-id

用于存储机密值的密钥保管库的 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 create appconfig

创建到 appconfig 的 Spring 应用连接。

az spring connection create appconfig [--app]
                                      [--app-config]
                                      [--appconfig-id]
                                      [--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
                                      [--connection]
                                      [--customized-keys]
                                      [--deployment]
                                      [--no-wait]
                                      [--opt-out {auth, configinfo, publicnetwork}]
                                      [--private-endpoint {false, true}]
                                      [--resource-group]
                                      [--secret]
                                      [--service]
                                      [--service-principal]
                                      [--source-id]
                                      [--system-identity]
                                      [--target-id]
                                      [--target-resource-group]
                                      [--user-identity]
                                      [--vault-id]

示例

以交互方式在 Spring 应用和 appconfig 之间创建连接

az spring connection create appconfig

使用资源名称在 spring 应用和 appconfig 之间创建连接

az spring connection create appconfig -g SpringCloudRG --service MySpringService --app MyApp --tg AppconfigRG --app-config MyConfigStore --system-identity

使用资源 ID 在 spring 应用和 appconfig 之间创建连接

az spring connection create appconfig --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.AppConfiguration/configurationStores/{config_store} --system-identity

可选参数

--app

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

--app-config

应用配置的名称。 如果未指定“--target-id”,则为必需。

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--app-config'],则为必需。

--target-resource-group --tg

包含应用配置的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create confluent-cloud

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

az spring connection create confluent-cloud --bootstrap-server
                                            --kafka-key
                                            --kafka-secret
                                            --schema-key
                                            --schema-registry
                                            --schema-secret
                                            [--app]
                                            [--appconfig-id]
                                            [--client-type {dotnet, dotnet-internal, go, java, none, python, springBoot}]
                                            [--connection]
                                            [--customized-keys]
                                            [--deployment]
                                            [--no-wait]
                                            [--opt-out {auth, configinfo, publicnetwork}]
                                            [--resource-group]
                                            [--service]
                                            [--source-id]
                                            [--vault-id]

示例

在 Spring 应用和 confluent-cloud 之间创建连接

az spring connection create confluent-cloud -g SpringCloudRG --service MySpringService --app MyApp --bootstrap-server xxx.eastus.azure.confluent.cloud:9092 --kafka-key Name --kafka-secret Secret --schema-registry https://xxx.eastus.azure.confluent.cloud --schema-key Name --schema-secret Secret

必需参数

--bootstrap-server

Kafka bootstrap 服务器 URL。

--kafka-key

Kafka API-Key(密钥)。

--kafka-secret

Kafka API-Key(机密)。

--schema-key

架构注册表 API 密钥(密钥)。

--schema-registry

架构注册表 URL。

--schema-secret

架构注册表 API 密钥(机密)。

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, none, python, springBoot
--connection

连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--service

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

--source-id

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

--vault-id

用于存储机密值的密钥保管库的 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 create cosmos-cassandra

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

az spring connection create cosmos-cassandra [--account]
                                             [--app]
                                             [--appconfig-id]
                                             [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                             [--connection]
                                             [--customized-keys]
                                             [--deployment]
                                             [--key-space]
                                             [--no-wait]
                                             [--opt-out {auth, configinfo, publicnetwork}]
                                             [--private-endpoint {false, true}]
                                             [--resource-group]
                                             [--secret]
                                             [--service]
                                             [--service-endpoint {false, true}]
                                             [--service-principal]
                                             [--source-id]
                                             [--system-identity]
                                             [--target-id]
                                             [--target-resource-group]
                                             [--user-identity]
                                             [--vault-id]

示例

以交互方式在 spring 应用和 cosmos-cassandra 之间创建连接

az spring connection create cosmos-cassandra

使用资源名称在 spring 应用和 cosmos-cassandra 之间创建连接

az spring connection create cosmos-cassandra -g SpringCloudRG --service MySpringService --app MyApp --tg CosmosRG --account MyAccount --key-space MyKeySpace --system-identity

使用资源 ID 在 spring 应用和 cosmos-cassandra 之间创建连接

az spring connection create cosmos-cassandra --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/cassandraKeyspaces/{key_space} --system-identity

可选参数

--account

cosmos 数据库帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--key-space

密钥空间的名称。 如果未指定“--target-id”,则为必需。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、 '--account'、 '--key-space',则为必需。

--target-resource-group --tg

包含 cosmos 数据库帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create cosmos-gremlin

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

az spring connection create cosmos-gremlin [--account]
                                           [--app]
                                           [--appconfig-id]
                                           [--client-type {dotnet, dotnet-internal, java, nodejs, none, php, python}]
                                           [--connection]
                                           [--customized-keys]
                                           [--database]
                                           [--deployment]
                                           [--graph]
                                           [--no-wait]
                                           [--opt-out {auth, configinfo, publicnetwork}]
                                           [--private-endpoint {false, true}]
                                           [--resource-group]
                                           [--secret]
                                           [--service]
                                           [--service-endpoint {false, true}]
                                           [--service-principal]
                                           [--source-id]
                                           [--system-identity]
                                           [--target-id]
                                           [--target-resource-group]
                                           [--user-identity]
                                           [--vault-id]

示例

以交互方式在 spring 应用和 cosmos-gremlin 之间创建连接

az spring connection create cosmos-gremlin

使用资源名称在 spring 应用和 cosmos-gremlin 之间创建连接

az spring connection create cosmos-gremlin -g SpringCloudRG --service MySpringService --app MyApp --tg CosmosRG --account MyAccount --database MyDB --graph MyGraph --system-identity

使用资源 ID 在 spring 应用和 cosmos-gremlin 之间创建连接

az spring connection create cosmos-gremlin --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/gremlinDatabases/{database}/graphs/{graph} --system-identity

可选参数

--account

cosmos 数据库帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, php, python
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--graph

图的名称。 如果未指定“--target-id”,则为必需。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--account', '--database', '--graph'] ,则是必需的。

--target-resource-group --tg

包含 cosmos 数据库帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create cosmos-mongo

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

az spring connection create cosmos-mongo [--account]
                                         [--app]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--database]
                                         [--deployment]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service]
                                         [--service-endpoint {false, true}]
                                         [--service-principal]
                                         [--source-id]
                                         [--system-identity]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--user-identity]
                                         [--vault-id]

示例

以交互方式在 Spring 应用和 cosmos-mongo 之间创建连接

az spring connection create cosmos-mongo

使用资源名称在 spring 应用与 cosmos-mongo 之间创建连接

az spring connection create cosmos-mongo -g SpringCloudRG --service MySpringService --app MyApp --tg CosmosRG --account MyAccount --database MyDB --system-identity

使用资源 ID 在 spring 应用与 cosmos-mongo 之间创建连接

az spring connection create cosmos-mongo --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/mongodbDatabases/{database} --system-identity

可选参数

--account

cosmos 数据库帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、 '--account'、 '--database',则为必需。

--target-resource-group --tg

包含 cosmos 数据库帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create cosmos-sql

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

az spring connection create cosmos-sql [--account]
                                       [--app]
                                       [--appconfig-id]
                                       [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                       [--connection]
                                       [--customized-keys]
                                       [--database]
                                       [--deployment]
                                       [--no-wait]
                                       [--opt-out {auth, configinfo, publicnetwork}]
                                       [--private-endpoint {false, true}]
                                       [--resource-group]
                                       [--secret]
                                       [--service]
                                       [--service-endpoint {false, true}]
                                       [--service-principal]
                                       [--source-id]
                                       [--system-identity]
                                       [--target-id]
                                       [--target-resource-group]
                                       [--user-identity]
                                       [--vault-id]

示例

以交互方式在 spring 应用和 cosmos-sql 之间创建连接

az spring connection create cosmos-sql

使用资源名称在 spring 应用和 cosmos-sql 之间创建连接

az spring connection create cosmos-sql -g SpringCloudRG --service MySpringService --app MyApp --tg CosmosRG --account MyAccount --database MyDB --system-identity

使用资源 ID 在 spring 应用和 cosmos-sql 之间创建连接

az spring connection create cosmos-sql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/sqlDatabases/{database} --system-identity

可选参数

--account

cosmos 数据库帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、 '--account'、 '--database',则为必需。

--target-resource-group --tg

包含 cosmos 数据库帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create cosmos-table

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

az spring connection create cosmos-table [--account]
                                         [--app]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--deployment]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service]
                                         [--service-endpoint {false, true}]
                                         [--service-principal]
                                         [--source-id]
                                         [--system-identity]
                                         [--table]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--user-identity]
                                         [--vault-id]

示例

以交互方式在 spring app 和 cosmos-table 之间创建连接

az spring connection create cosmos-table

使用资源名称在 spring app 和 cosmos-table 之间创建连接

az spring connection create cosmos-table -g SpringCloudRG --service MySpringService --app MyApp --tg CosmosRG --account MyAccount --table MyTable --system-identity

使用资源 ID 在 spring 应用和 cosmos-table 之间创建连接

az spring connection create cosmos-table --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/tables/{table} --system-identity

可选参数

--account

cosmos 数据库帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--table

表的名称。 如果未指定“--target-id”,则为必需。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、 '--account'、 '--table',则为必需。

--target-resource-group --tg

包含 cosmos 数据库帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create eventhub

创建到 eventhub 的 Spring 应用连接。

az spring connection create eventhub [--app]
                                     [--appconfig-id]
                                     [--client-type {dotnet, dotnet-internal, go, java, kafka-springBoot, nodejs, none, python, springBoot}]
                                     [--connection]
                                     [--customized-keys]
                                     [--deployment]
                                     [--namespace]
                                     [--no-wait]
                                     [--opt-out {auth, configinfo, publicnetwork}]
                                     [--private-endpoint {false, true}]
                                     [--resource-group]
                                     [--secret]
                                     [--service]
                                     [--service-endpoint {false, true}]
                                     [--service-principal]
                                     [--source-id]
                                     [--system-identity]
                                     [--target-id]
                                     [--target-resource-group]
                                     [--user-identity]
                                     [--vault-id]

示例

以交互方式在 Spring App 和 eventhub 之间创建连接

az spring connection create eventhub

使用资源名称在 spring app 和 eventhub 之间创建连接

az spring connection create eventhub -g SpringCloudRG --service MySpringService --app MyApp --tg EventhubRG --namespace MyNamespace --system-identity

使用资源 ID 在 spring 应用和 eventhub 之间创建连接

az spring connection create eventhub --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.EventHub/namespaces/{namespace} --system-identity

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, kafka-springBoot, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--namespace

事件中心命名空间的名称。 如果未指定“--target-id”,则为必需。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--namespace'] ,则为必需。

--target-resource-group --tg

包含 eventhub 的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create keyvault

创建到 keyvault 的 Spring 应用连接。

az spring connection create keyvault [--app]
                                     [--appconfig-id]
                                     [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                     [--connection]
                                     [--customized-keys]
                                     [--deployment]
                                     [--new {false, true}]
                                     [--no-wait]
                                     [--opt-out {auth, configinfo, publicnetwork}]
                                     [--private-endpoint {false, true}]
                                     [--resource-group]
                                     [--service]
                                     [--service-endpoint {false, true}]
                                     [--service-principal]
                                     [--source-id]
                                     [--system-identity]
                                     [--target-id]
                                     [--target-resource-group]
                                     [--user-identity]
                                     [--vault]
                                     [--vault-id]

示例

以交互方式在 Spring 应用和 keyvault 之间创建连接

az spring connection create keyvault

使用资源名称在 spring 应用和 keyvault 之间创建连接

az spring connection create keyvault -g SpringCloudRG --service MySpringService --app MyApp --tg KeyvaultRG --vault MyVault --system-identity

使用资源 ID 在 spring 应用与 keyvault 之间创建连接

az spring connection create keyvault --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.KeyVault/vaults/{vault} --system-identity

创建新的 keyvault 并以交互方式将 Spring 应用连接到它

az spring connection create keyvault --new

创建新的 keyvault 并将 Spring 应用连接到它

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

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--new

指示在创建 spring 连接时是否创建新的 keyvault。

接受的值: false, true
默认值: False
--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--vault'] ,则为必需。

--target-resource-group --tg

包含 keyvault 的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault

keyvault 的名称。 如果未指定“--target-id”,则为必需。

--vault-id

用于存储机密值的密钥保管库的 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 create mysql

已放弃

此命令已弃用,将在将来的版本中删除。

创建与 mysql 的 Spring 应用连接。

az spring connection create mysql [--app]
                                  [--appconfig-id]
                                  [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                  [--connection]
                                  [--customized-keys]
                                  [--database]
                                  [--deployment]
                                  [--no-wait]
                                  [--opt-out {auth, configinfo, publicnetwork}]
                                  [--private-endpoint {false, true}]
                                  [--resource-group]
                                  [--secret]
                                  [--server]
                                  [--service]
                                  [--service-endpoint {false, true}]
                                  [--source-id]
                                  [--target-id]
                                  [--target-resource-group]
                                  [--vault-id]

示例

以交互方式在 spring app 和 mysql 之间创建连接

az spring connection create mysql

使用资源名称在 spring 应用和 mysql 之间创建连接

az spring connection create mysql -g SpringCloudRG --service MySpringService --app MyApp --tg MysqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用资源 ID 在 spring 应用和 mysql 之间创建连接

az spring connection create mysql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBForMySQL/servers/{server}/databases/{database} --secret name=XX secret=XX

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

mysql 数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必需。 机密身份验证的用户名或帐户名称。机密:需要机密、机密 URI、机密名称>之一<。 机密身份验证的密码或帐户密钥。secret-uri:需要机密、机密 URI、机密名称>之一<。 用于存储密码的 Keyvault 机密 URI。 secret-name:需要机密、secret-uri、secret-name> 之一<。 存储密码的 Keyvault 机密名称。 仅适用于 AKS。

--server

mysql 服务器的名称。 如果未指定“--target-id”,则为必需。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--source-id

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

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、'--server'、'--database'],则为必需。

--target-resource-group --tg

包含 mysql 服务器的资源组。 如果未指定“--target-id”,则为必需。

--vault-id

用于存储机密值的密钥保管库的 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 create mysql-flexible

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

az spring connection create mysql-flexible [--app]
                                           [--appconfig-id]
                                           [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                           [--connection]
                                           [--customized-keys]
                                           [--database]
                                           [--deployment]
                                           [--no-wait]
                                           [--opt-out {auth, configinfo, publicnetwork}]
                                           [--resource-group]
                                           [--secret]
                                           [--server]
                                           [--service]
                                           [--service-principal]
                                           [--source-id]
                                           [--system-identity]
                                           [--target-id]
                                           [--target-resource-group]
                                           [--user-identity]
                                           [--vault-id]

示例

以交互方式在 spring app 和 mysql 灵活之间创建连接

az spring connection create mysql-flexible

使用资源名称在 spring 应用与 mysql 灵活之间创建连接

az spring connection create mysql-flexible -g SpringCloudRG --service MySpringService --app MyApp --tg MysqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用资源 ID 在 spring 应用与 mysql 灵活之间创建连接

az spring connection create mysql-flexible --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforMySQL/flexibleServers/{server}/databases/{database} --secret name=XX secret=XX

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

mysql 灵活数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必需。 机密身份验证的用户名或帐户名称。机密:需要机密、机密 URI、机密名称>之一<。 机密身份验证的密码或帐户密钥。secret-uri:需要机密、机密 URI、机密名称>之一<。 用于存储密码的 Keyvault 机密 URI。 secret-name:需要机密、secret-uri、secret-name> 之一<。 存储密码的 Keyvault 机密名称。 仅适用于 AKS。

--server

mysql 灵活服务器的名称。 如果未指定“--target-id”,则为必需。

--service

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

--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity mysql-identity-id=xx

mysql-identity-id :可选。 用于 MySQL 灵活服务器 AAD 身份验证的标识 ID。 如果你是服务器 AAD 管理员,请将其忽略。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、'--server'、'--database'],则为必需。

--target-resource-group --tg

包含 mysql 灵活服务器的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create postgres

已放弃

此命令已弃用,将在将来的版本中删除。

创建到 postgres 的 Spring 应用连接。

az spring connection create postgres [--app]
                                     [--appconfig-id]
                                     [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                     [--connection]
                                     [--customized-keys]
                                     [--database]
                                     [--deployment]
                                     [--new {false, true}]
                                     [--no-wait]
                                     [--opt-out {auth, configinfo, publicnetwork}]
                                     [--private-endpoint {false, true}]
                                     [--resource-group]
                                     [--secret]
                                     [--server]
                                     [--service]
                                     [--service-endpoint {false, true}]
                                     [--service-principal]
                                     [--source-id]
                                     [--system-identity]
                                     [--target-id]
                                     [--target-resource-group]
                                     [--user-identity]
                                     [--vault-id]

示例

以交互方式在 Spring 应用和 postgres 之间创建连接

az spring connection create postgres

使用资源名称在 Spring 应用和 postgres 之间创建连接

az spring connection create postgres -g SpringCloudRG --service MySpringService --app MyApp --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用资源 ID 在 spring 应用和 postgres 之间创建连接

az spring connection create postgres --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforPostgreSQL/servers/{server}/databases/{database} --secret name=XX secret=XX

创建新的 postgres 并以交互方式将 Spring 应用连接到它

az spring connection create postgres --new

创建新的 postgres 并将 Spring 应用连接到它

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

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

postgres 数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--new

指示在创建 spring 连接时是否创建新的 postgres。

接受的值: false, true
默认值: False
--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必需。 机密身份验证的用户名或帐户名称。机密:需要机密、机密 URI、机密名称>之一<。 机密身份验证的密码或帐户密钥。secret-uri:需要机密、机密 URI、机密名称>之一<。 用于存储密码的 Keyvault 机密 URI。 secret-name:需要机密、secret-uri、secret-name> 之一<。 存储密码的 Keyvault 机密名称。 仅适用于 AKS。

--server

postgres 服务器的名称。 如果未指定“--target-id”,则为必需。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、'--server'、'--database'],则为必需。

--target-resource-group --tg

包含 postgres 服务的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create postgres-flexible

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

az spring connection create postgres-flexible [--app]
                                              [--appconfig-id]
                                              [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                              [--connection]
                                              [--customized-keys]
                                              [--database]
                                              [--deployment]
                                              [--no-wait]
                                              [--opt-out {auth, configinfo, publicnetwork}]
                                              [--resource-group]
                                              [--secret]
                                              [--server]
                                              [--service]
                                              [--service-principal]
                                              [--source-id]
                                              [--system-identity]
                                              [--target-id]
                                              [--target-resource-group]
                                              [--user-identity]
                                              [--vault-id]

示例

以交互方式在 Spring 应用和 postgres 灵活之间创建连接

az spring connection create postgres-flexible

使用资源名称在 spring 应用与 postgres 灵活之间创建连接

az spring connection create postgres-flexible -g SpringCloudRG --service MySpringService --app MyApp --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用资源 ID 在 spring 应用与 postgres 灵活之间创建连接

az spring connection create postgres-flexible --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server}/databases/{database} --secret name=XX secret=XX

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

postgres 灵活数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必需。 机密身份验证的用户名或帐户名称。机密:需要机密、机密 URI、机密名称>之一<。 机密身份验证的密码或帐户密钥。secret-uri:需要机密、机密 URI、机密名称>之一<。 用于存储密码的 Keyvault 机密 URI。 secret-name:需要机密、secret-uri、secret-name> 之一<。 存储密码的 Keyvault 机密名称。 仅适用于 AKS。

--server

postgres 灵活服务器的名称。 如果未指定“--target-id”,则为必需。

--service

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

--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、'--server'、'--database'],则为必需。

--target-resource-group --tg

包含灵活 postgres 服务的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create redis

创建与 redis 的 Spring 应用连接。

az spring connection create redis [--app]
                                  [--appconfig-id]
                                  [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                  [--connection]
                                  [--customized-keys]
                                  [--database]
                                  [--deployment]
                                  [--no-wait]
                                  [--opt-out {auth, configinfo, publicnetwork}]
                                  [--private-endpoint {false, true}]
                                  [--resource-group]
                                  [--secret]
                                  [--server]
                                  [--service]
                                  [--source-id]
                                  [--target-id]
                                  [--target-resource-group]
                                  [--vault-id]

示例

以交互方式在 Spring 应用和 redis 之间创建连接

az spring connection create redis

使用资源名称在 spring 应用与 redis 之间创建连接

az spring connection create redis -g SpringCloudRG --service MySpringService --app MyApp --tg RedisRG --server MyServer --database MyDB --secret

使用资源 ID 在 spring 应用与 redis 之间创建连接

az spring connection create redis --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Cache/redis/{server}/databases/{database} --secret

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

redis 数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--server

redis 服务器的名称。 如果未指定“--target-id”,则为必需。

--service

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

--source-id

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

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、'--server'、'--database'],则为必需。

--target-resource-group --tg

包含 redis 服务器的资源组。 如果未指定“--target-id”,则为必需。

--vault-id

用于存储机密值的密钥保管库的 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 create redis-enterprise

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

az spring connection create redis-enterprise [--app]
                                             [--appconfig-id]
                                             [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                             [--connection]
                                             [--customized-keys]
                                             [--database]
                                             [--deployment]
                                             [--no-wait]
                                             [--opt-out {auth, configinfo, publicnetwork}]
                                             [--resource-group]
                                             [--secret]
                                             [--server]
                                             [--service]
                                             [--source-id]
                                             [--target-id]
                                             [--target-resource-group]
                                             [--vault-id]

示例

以交互方式在 Spring 应用与 redis-enterprise 之间创建连接

az spring connection create redis-enterprise

使用资源名称在 spring 应用与 redis-enterprise 之间创建连接

az spring connection create redis-enterprise -g SpringCloudRG --service MySpringService --app MyApp --tg RedisRG --server MyServer --database MyDB --secret

使用资源 ID 在 spring 应用与 redis-enterprise 之间创建连接

az spring connection create redis-enterprise --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Cache/redisEnterprise/{server}/databases/{database} --secret

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

redis 企业数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--server

redis 企业服务器的名称。 如果未指定“--target-id”,则为必需。

--service

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

--source-id

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

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、'--server'、'--database'],则为必需。

--target-resource-group --tg

包含 redis 服务器的资源组。 如果未指定“--target-id”,则为必需。

--vault-id

用于存储机密值的密钥保管库的 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 create servicebus

创建与 servicebus 的 Spring 应用连接。

az spring connection create servicebus [--app]
                                       [--appconfig-id]
                                       [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                       [--connection]
                                       [--customized-keys]
                                       [--deployment]
                                       [--namespace]
                                       [--no-wait]
                                       [--opt-out {auth, configinfo, publicnetwork}]
                                       [--private-endpoint {false, true}]
                                       [--resource-group]
                                       [--secret]
                                       [--service]
                                       [--service-endpoint {false, true}]
                                       [--service-principal]
                                       [--source-id]
                                       [--system-identity]
                                       [--target-id]
                                       [--target-resource-group]
                                       [--user-identity]
                                       [--vault-id]

示例

以交互方式在 Spring 应用与 Servicebus 之间创建连接

az spring connection create servicebus

使用资源名称在 spring 应用和服务总线之间创建连接

az spring connection create servicebus -g SpringCloudRG --service MySpringService --app MyApp --tg ServicebusRG --namespace MyNamespace --system-identity

使用资源 ID 在 spring 应用与 servicebus 之间创建连接

az spring connection create servicebus --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.ServiceBus/namespaces/{namespace} --system-identity

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--namespace

servicebus 命名空间的名称。 如果未指定“--target-id”,则为必需。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--namespace'] ,则为必需。

--target-resource-group --tg

包含 servicebus 的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create signalr

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

az spring connection create signalr [--app]
                                    [--appconfig-id]
                                    [--client-type {dotnet, dotnet-internal, none}]
                                    [--connection]
                                    [--customized-keys]
                                    [--deployment]
                                    [--no-wait]
                                    [--opt-out {auth, configinfo, publicnetwork}]
                                    [--private-endpoint {false, true}]
                                    [--resource-group]
                                    [--secret]
                                    [--service]
                                    [--service-principal]
                                    [--signalr]
                                    [--source-id]
                                    [--system-identity]
                                    [--target-id]
                                    [--target-resource-group]
                                    [--user-identity]
                                    [--vault-id]

示例

以交互方式在 Spring 应用和信号器之间创建连接

az spring connection create signalr

使用资源名称在 spring 应用和信号器之间创建连接

az spring connection create signalr -g SpringCloudRG --service MySpringService --app MyApp --tg SignalrRG --signalr MySignalR --system-identity

使用资源 ID 在 spring 应用和信号器之间创建连接

az spring connection create signalr --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.SignalRService/SignalR/{signalr} --system-identity

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, none
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--signalr

信号器服务的名称。 如果未指定“--target-id”,则为必需。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--signalr'] ,则为必需。

--target-resource-group --tg

包含信号器的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create sql

创建与 sql 的 Spring 应用连接。

az spring connection create sql [--app]
                                [--appconfig-id]
                                [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                [--connection]
                                [--customized-keys]
                                [--database]
                                [--deployment]
                                [--no-wait]
                                [--opt-out {auth, configinfo, publicnetwork}]
                                [--private-endpoint {false, true}]
                                [--resource-group]
                                [--secret]
                                [--server]
                                [--service]
                                [--service-endpoint {false, true}]
                                [--service-principal]
                                [--source-id]
                                [--system-identity]
                                [--target-id]
                                [--target-resource-group]
                                [--user-identity]
                                [--vault-id]

示例

以交互方式在 Spring App 和 sql 之间创建连接

az spring connection create sql

使用资源名称在 spring app 和 sql 之间创建连接

az spring connection create sql -g SpringCloudRG --service MySpringService --app MyApp --tg SqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用资源 ID 在 spring app 和 sql 之间创建连接

az spring connection create sql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Sql/servers/{server}/databases/{database} --secret name=XX secret=XX

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--database

sql 数据库的名称。 如果未指定“--target-id”,则为必需。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必需。 机密身份验证的用户名或帐户名称。机密:需要机密、机密 URI、机密名称>之一<。 机密身份验证的密码或帐户密钥。secret-uri:需要机密、机密 URI、机密名称>之一<。 用于存储密码的 Keyvault 机密 URI。 secret-name:需要机密、secret-uri、secret-name> 之一<。 存储密码的 Keyvault 机密名称。 仅适用于 AKS。

--server

SQL Server 的名称。 如果未指定“--target-id”,则为必需。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group'、'--server'、'--database'],则为必需。

--target-resource-group --tg

包含 sql Server 的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create storage-blob

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

az spring connection create storage-blob [--account]
                                         [--app]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--deployment]
                                         [--new {false, true}]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service]
                                         [--service-endpoint {false, true}]
                                         [--service-principal]
                                         [--source-id]
                                         [--system-identity]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--user-identity]
                                         [--vault-id]

示例

以交互方式在 Spring 应用和存储 Blob 之间创建连接

az spring connection create storage-blob

使用资源名称在 spring 应用和存储 blob 之间创建连接

az spring connection create storage-blob -g SpringCloudRG --service MySpringService --app MyApp --tg StorageRG --account MyAccount --system-identity

使用资源 ID 在 spring 应用和存储 blob 之间创建连接

az spring connection create storage-blob --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/blobServices/default --system-identity

创建新的存储 Blob 并将 Spring 应用以交互方式连接到它

az spring connection create storage-blob --new

创建新的存储 Blob 并将 Spring 应用连接到它

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

可选参数

--account

存储帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--new

指示在创建 spring 连接时是否创建新的存储 Blob。

接受的值: false, true
默认值: False
--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--account',则为必需。

--target-resource-group --tg

包含存储帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create storage-file

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

az spring connection create storage-file [--account]
                                         [--app]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, java, nodejs, none, php, python, ruby, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--deployment]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service]
                                         [--service-endpoint {false, true}]
                                         [--source-id]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--vault-id]

示例

以交互方式在 Spring 应用和存储文件之间创建连接

az spring connection create storage-file

使用资源名称在 spring 应用和存储文件之间创建连接

az spring connection create storage-file -g SpringCloudRG --service MySpringService --app MyApp --tg StorageRG --account MyAccount --secret

使用资源 ID 在 spring 应用和存储文件之间创建连接

az spring connection create storage-file --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/fileServices/default --secret

可选参数

--account

存储帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, php, python, ruby, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--source-id

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

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--account',则为必需。

--target-resource-group --tg

包含存储帐户的资源组。 如果未指定“--target-id”,则为必需。

--vault-id

用于存储机密值的密钥保管库的 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 create storage-queue

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

az spring connection create storage-queue [--account]
                                          [--app]
                                          [--appconfig-id]
                                          [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                          [--connection]
                                          [--customized-keys]
                                          [--deployment]
                                          [--no-wait]
                                          [--opt-out {auth, configinfo, publicnetwork}]
                                          [--private-endpoint {false, true}]
                                          [--resource-group]
                                          [--secret]
                                          [--service]
                                          [--service-endpoint {false, true}]
                                          [--service-principal]
                                          [--source-id]
                                          [--system-identity]
                                          [--target-id]
                                          [--target-resource-group]
                                          [--user-identity]
                                          [--vault-id]

示例

以交互方式在 Spring 应用和存储队列之间创建连接

az spring connection create storage-queue

使用资源名称在 spring 应用和存储队列之间创建连接

az spring connection create storage-queue -g SpringCloudRG --service MySpringService --app MyApp --tg StorageRG --account MyAccount --system-identity

使用资源 ID 在 spring 应用和存储队列之间创建连接

az spring connection create storage-queue --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/queueServices/default --system-identity

可选参数

--account

存储帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--account',则为必需。

--target-resource-group --tg

包含存储帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create storage-table

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

az spring connection create storage-table [--account]
                                          [--app]
                                          [--appconfig-id]
                                          [--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
                                          [--connection]
                                          [--customized-keys]
                                          [--deployment]
                                          [--no-wait]
                                          [--opt-out {auth, configinfo, publicnetwork}]
                                          [--private-endpoint {false, true}]
                                          [--resource-group]
                                          [--secret]
                                          [--service]
                                          [--service-endpoint {false, true}]
                                          [--service-principal]
                                          [--source-id]
                                          [--system-identity]
                                          [--target-id]
                                          [--target-resource-group]
                                          [--user-identity]
                                          [--vault-id]

示例

以交互方式在 Spring 应用和存储表之间创建连接

az spring connection create storage-table

使用资源名称在 spring 应用和存储表之间创建连接

az spring connection create storage-table -g SpringCloudRG --service MySpringService --app MyApp --tg StorageRG --account MyAccount --system-identity

使用资源 ID 在 spring 应用和存储表之间创建连接

az spring connection create storage-table --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/tableServices/default --system-identity

可选参数

--account

存储帐户的名称。 如果未指定“--target-id”,则为必需。

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-endpoint

按服务终结点连接目标服务。 源资源必须位于 VNet 中,目标 SKU 必须支持服务终结点功能。

接受的值: false, true
--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--account',则为必需。

--target-resource-group --tg

包含存储帐户的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 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 create webpubsub

创建与 Webpubsub 的 Spring 应用连接。

az spring connection create webpubsub [--app]
                                      [--appconfig-id]
                                      [--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
                                      [--connection]
                                      [--customized-keys]
                                      [--deployment]
                                      [--no-wait]
                                      [--opt-out {auth, configinfo, publicnetwork}]
                                      [--private-endpoint {false, true}]
                                      [--resource-group]
                                      [--secret]
                                      [--service]
                                      [--service-principal]
                                      [--source-id]
                                      [--system-identity]
                                      [--target-id]
                                      [--target-resource-group]
                                      [--user-identity]
                                      [--vault-id]
                                      [--webpubsub]

示例

以交互方式在 spring app 和 webpubsub 之间创建连接

az spring connection create webpubsub

使用资源名称在 spring 应用和 Webpubsub 之间创建连接

az spring connection create webpubsub -g SpringCloudRG --service MySpringService --app MyApp --tg WebpubsubRG --webpubsub MyWebPubSub --system-identity

使用资源 ID 在 spring app 和 webpubsub 之间创建连接

az spring connection create webpubsub --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.SignalRService/WebPubSub/{webpubsub} --system-identity

可选参数

--app

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

--appconfig-id

要存储配置的应用配置 ID。

--client-type

在春季使用的客户端类型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python
--connection

Spring 连接的名称。

--customized-keys

用于更改默认配置名称的自定义密钥。 键是原始名称,值为自定义名称。

--deployment

应用的部署名称。

--no-wait

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

默认值: False
--opt-out

是否禁用某些配置步骤。 使用 configinfo 取消源上的配置信息更改。 使用 publicnetwork 禁用公用网络访问配置。使用身份验证跳过身份验证配置,例如启用托管标识和授予 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

按专用终结点连接目标服务。 源虚拟网络中的专用终结点必须提前创建。

接受的值: false, true
--resource-group -g

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

--secret

机密身份验证信息。

用法:--secret。

--service

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

--service-principal

服务主体身份验证信息。

用法:--service-principal client-id=XX secret=XX

client-id :必需。 服务主体的客户端 ID。 object-id :可选。 服务主体的对象 ID(企业应用程序)。 secret :必需。 服务主体的机密。

--source-id

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

--system-identity

系统分配的标识身份验证信息。

用法:--system-identity。

--target-id

目标服务的资源 ID。 如果未指定 ['--target-resource-group', '--webpubsub'],则为必需。

--target-resource-group --tg

包含 webpubsub 的资源组。 如果未指定“--target-id”,则为必需。

--user-identity

用户分配的标识身份验证信息。

用法:--user-identity client-id=XX subs-id=XX

client-id :必需。 用户分配标识的客户端 ID。 subs-id:必需。 用户分配的标识的订阅 ID。

--vault-id

用于存储机密值的密钥保管库的 ID。

--webpubsub

Webpubsub 服务的名称。 如果未指定“--target-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 获取完整的调试日志。