Share via


az spring connection

管理 Spring 應用程式連線的命令。

命令

名稱 Description 類型 狀態
az spring connection create

建立 Spring 應用程式與目標資源之間的連線。

核心 GA
az spring connection create app-insights

建立與 app-insights 的 Spring 應用程式連線。

核心 GA
az spring connection create appconfig

建立與 appconfig 的 Spring 應用程式連線。

核心 GA
az spring connection create cognitiveservices

建立與認知服務的 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的 Spring 應用程式連線。

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

建立與 signalr 的 Spring 應用程式連線。

核心 GA
az spring connection create sql

建立與 sql 的 Spring 應用程式連線。

核心 GA
az spring connection create storage-blob

建立與 storage-blob 的 Spring 應用程式連線。

核心 GA
az spring connection create storage-file

建立記憶體檔案的 Spring 應用程式連線。

核心 GA
az spring connection create storage-queue

建立記憶體佇列的 Spring 應用程式連線。

核心 GA
az spring connection create storage-table

建立記憶體數據表的 Spring 應用程式連線。

核心 GA
az spring connection create webpubsub

建立 Webpubsub 的 Spring 應用程式連線。

核心 GA
az spring connection delete

刪除 Spring 應用程式連線。

核心 GA
az spring connection list

列出 Spring 應用程式的連線。

核心 GA
az spring connection list-configuration

列出 Spring 應用程式連線的來源組態。

核心 GA
az spring connection list-support-types

列出 Spring 應用程式連線支援的用戶端類型和驗證類型。

核心 GA
az spring connection show

取得 Spring 應用程式連線的詳細數據。

核心 GA
az spring connection update

更新 Spring 應用程式連線。

核心 GA
az spring connection update app-insights

將 Spring 應用程式更新為 app-insights 連線。

核心 GA
az spring connection update appconfig

將 Spring 應用程式更新為 appconfig 連線。

核心 GA
az spring connection update cognitiveservices

將 Spring 應用程式更新為認知服務連線。

核心 GA
az spring connection update confluent-cloud

將 Spring 應用程式更新為 confluent-cloud 連線。

核心 GA
az spring connection update cosmos-cassandra

將 Spring 應用程式更新為 cosmos-cassandra 連線。

核心 GA
az spring connection update cosmos-gremlin

將 Spring 應用程式更新為 cosmos-gremlin 連線。

核心 GA
az spring connection update cosmos-mongo

將 Spring 應用程式更新為 cosmos-mongo 連線。

核心 GA
az spring connection update cosmos-sql

將 Spring 應用程式更新為 cosmos-sql 連線。

核心 GA
az spring connection update cosmos-table

將 Spring 應用程式更新為 cosmos-table 連線。

核心 GA
az spring connection update eventhub

將 Spring 應用程式更新為 eventhub 連線。

核心 GA
az spring connection update keyvault

將 Spring 應用程式更新為 keyvault 連線。

核心 GA
az spring connection update mysql

將 Spring 應用程式更新為 mysql 連線。

核心 已淘汰
az spring connection update mysql-flexible

將 Spring 應用程式更新為 mysql 彈性連線。

核心 GA
az spring connection update postgres

將 Spring 應用程式更新為 postgres 連線。

核心 已淘汰
az spring connection update postgres-flexible

將 Spring 應用程式更新為 postgres 彈性連線。

核心 GA
az spring connection update redis

將 Spring 應用程式更新為 redis 連線。

核心 GA
az spring connection update redis-enterprise

將 Spring 應用程式更新為 redis-enterprise 連線。

核心 GA
az spring connection update servicebus

將 Spring 應用程式更新為 servicebus 連線。

核心 GA
az spring connection update signalr

將 Spring 應用程式更新為信號器連線。

核心 GA
az spring connection update sql

將 Spring 應用程式更新為 sql 連線。

核心 GA
az spring connection update storage-blob

將 Spring 應用程式更新為記憶體 Blob 連線。

核心 GA
az spring connection update storage-file

將 Spring 應用程式更新為記憶體檔案連線。

核心 GA
az spring connection update storage-queue

將 Spring 應用程式更新為記憶體佇列連線。

核心 GA
az spring connection update storage-table

將 Spring 應用程式更新為記憶體資料表連線。

核心 GA
az spring connection update webpubsub

將 Spring 應用程式更新為 webpubsub 連線。

核心 GA
az spring connection validate

驗證 Spring 應用程式連線。

核心 GA
az spring connection wait

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

核心 GA

az spring connection delete

刪除 Spring 應用程式連線。

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

範例

以互動方式刪除 Spring 應用程式連線

az spring connection delete

依連線名稱刪除 Spring 應用程式連線

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

依連線標識碼刪除 Spring 應用程式連線

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

選擇性參數

--app

Azure Spring Apps 中應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--connection

Spring 連接的名稱。

--deployment

應用程式的部署名稱。

--id

連接的資源識別碼。 如果未指定 '--id',則需要 [''--resource-group'、'--service'、'--app'、'--connection']。

--no-wait

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

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

資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--id』 ,則為必要項。沒有。

--service

Azure Spring Apps 資源的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--yes -y

不提示確認。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az spring connection list

列出 Spring 應用程式的連線。

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

範例

以互動方式列出 Spring 應用程式連線

az spring connection list

依來源資源名稱列出 Spring 應用程式連線

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

依來源資源標識碼列出 Spring 應用程式連線

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

選擇性參數

--app

Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。

--deployment

應用程式的部署名稱。

--resource-group -g

資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。

--service

Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。

--source-id

spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az spring connection list-configuration

列出 Spring 應用程式連線的來源組態。

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

範例

以互動方式列出連線的來源組態

az spring connection list-configuration

依連線名稱列出連線的來源組態

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

依線上標識碼列出連線的來源組態

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

選擇性參數

--app

Azure Spring Apps 中應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--connection

Spring 連接的名稱。

--deployment

應用程式的部署名稱。

--id

連接的資源識別碼。 如果未指定 '--id',則需要 [''--resource-group'、'--service'、'--app'、'--connection']。

--resource-group -g

資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--id』 ,則為必要項。沒有。

--service

Azure Spring Apps 資源的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az spring connection list-support-types

列出 Spring 應用程式連線支援的用戶端類型和驗證類型。

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

範例

列出所有支援的 Spring 應用程式目標資源類型和驗證類型

az spring connection list-support-types -o table

列出特定目標資源類型支援的 Spring 應用程式驗證類型

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

選擇性參數

--target-type -t

目標資源類型。

接受的值: app-insights, appconfig, cognitiveservices, confluent-cloud, cosmos-cassandra, cosmos-gremlin, cosmos-mongo, cosmos-sql, cosmos-table, eventhub, keyvault, mysql, mysql-flexible, postgres, postgres-flexible, redis, redis-enterprise, servicebus, signalr, sql, storage-blob, storage-file, storage-queue, storage-table, webpubsub
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az spring connection show

取得 Spring 應用程式連線的詳細數據。

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

範例

以互動方式取得連線

az spring connection show

依線上名稱取得連線

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

依線上標識碼取得連線

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

選擇性參數

--app

Azure Spring Apps 中應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--connection

Spring 連接的名稱。

--deployment

應用程式的部署名稱。

--id

連接的資源識別碼。 如果未指定 '--id',則需要 [''--resource-group'、'--service'、'--app'、'--connection']。

--resource-group -g

資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--id』 ,則為必要項。沒有。

--service

Azure Spring Apps 資源的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az spring connection validate

驗證 Spring 應用程式連線。

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

範例

以互動方式驗證連線

az spring connection validate

依線上名稱驗證連線

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

依線上標識碼驗證連線

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

選擇性參數

--app

Azure Spring Apps 中應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--connection

Spring 連接的名稱。

--deployment

應用程式的部署名稱。

--id

連接的資源識別碼。 如果未指定 '--id',則需要 [''--resource-group'、'--service'、'--app'、'--connection']。

--resource-group -g

資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--id』 ,則為必要項。沒有。

--service

Azure Spring Apps 資源的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az spring connection wait

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

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

範例

等到連線成功建立為止。

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

選擇性參數

--app

Azure Spring Apps 中應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--connection

Spring 連接的名稱。

--created

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

預設值: False
--custom

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

--deleted

等到刪除為止。

預設值: False
--deployment

應用程式的部署名稱。

--exists

等候資源存在。

預設值: False
--id

連接的資源識別碼。 如果未指定 '--id',則需要 [''--resource-group'、'--service'、'--app'、'--connection']。

--interval

輪詢間隔以秒為單位。

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

資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--id』 ,則為必要項。沒有。

--service

Azure Spring Apps 資源的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。