az spring connection create
此命令群組已隱含取代,因為命令群組 'spring' 已被取代,並將在未來版本中移除。
建立 Spring 應用程式與目標資源之間的連線。
命令
az spring connection create app-insights
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 app-insights 的 Spring 應用程式連線。
az spring connection create app-insights [--app]
[--app-insights]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--resource-group]
[--secret]
[--service]
[--source-id]
[--target-id]
[--target-resource-group --tg]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 app-insights 之間的連線
az spring connection create app-insights
使用資源名稱建立 Spring 應用程式與 app-insights 之間的連線
az spring connection create app-insights -g SpringCloudRG --service MySpringService --app MyApp --tg AppInsightsRG --app-insights MyAppInsights --secret
使用資源標識碼建立 Spring 應用程式與 app-insights 之間的連線
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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
應用程式深入解析的名稱。 如果未指定 『--target-id』,則為必要專案。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, nodejs, none, python |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--app-insights'] ,則為必要專案。
包含應用程式深入解析的資源群組。 如果未指定 『--target-id』,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create appconfig
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 appconfig 的 Spring 應用程式連線。
az spring connection create appconfig [--app]
[--app-config]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {false, true}]
[--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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
應用程式組態的名稱。 如果未指定 『--target-id』,則為必要專案。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group','--app-config'],則為必要專案。
包含應用程式設定的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create cognitiveservices
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與認知服務的 Spring 應用程式連線。
az spring connection create cognitiveservices [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, none, python}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--resource-group]
[--secret]
[--service]
[--service-principal]
[--source-id]
[--system-identity]
[--target-id]
[--target-resource-group --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與認知服務之間的連線
az spring connection create cognitiveservices
使用資源名稱建立 Spring 應用程式與 cognitiveservices 之間的連線
az spring connection create cognitiveservices -g SpringCloudRG --service MySpringService --app MyApp --tg CognitiveServicesRG --account MyAccount --system-identity
使用資源標識碼建立 Spring 應用程式和 cognitiveservices 之間的連線
az spring connection create cognitiveservices --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.CognitiveServices/accounts/{account} --system-identity
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
認知服務帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, none, python |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。
包含認知服務的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create confluent-cloud
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 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
必要參數
Kafka 啟動程式伺服器 URL。
卡夫卡 API-Key(金鑰)。
卡夫卡 API-Key(秘密)。
架構登錄 API-Key(機碼)。
架構登錄 URL。
架構登錄 API-Key(秘密)。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, none, python, springBoot |
連接的名稱。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create cosmos-cassandra
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立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]
[--connstr-props]
[--customized-keys]
[--deployment]
[--key-space]
[--no-recreate {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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
keyspace 的名稱。 如果未指定 『--target-id』,則為必要專案。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--key-space'],則為必要專案。
包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create cosmos-gremlin
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與cosmos-gremlin的 Spring 應用程式連線。
az spring connection create cosmos-gremlin [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, php, python}]
[--connection]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--graph]
[--no-recreate {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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, php, python |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
圖形的名稱。 如果未指定 『--target-id』,則為必要專案。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--database'、'--graph'] ,則為必要專案。
包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create cosmos-mongo
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立cosmos-mongo的 Spring 應用程式連線。
az spring connection create cosmos-mongo [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, go, java, nodejs, none, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, nodejs, none, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--database'] ,則為必要專案。
包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create cosmos-sql
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立cosmos-sql 的 Spring 應用程式連線。
az spring connection create cosmos-sql [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--database'] ,則為必要專案。
包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create cosmos-table
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 cosmos-table 的 Spring 應用程式連線。
az spring connection create cosmos-table [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {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]
[--table]
[--target-id]
[--target-resource-group --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 cosmos-table 之間的連線
az spring connection create cosmos-table
使用資源名稱建立 spring 應用程式與 cosmos-table 之間的連線
az spring connection create cosmos-table -g SpringCloudRG --service MySpringService --app MyApp --tg CosmosRG --account MyAccount --table MyTable --system-identity
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
數據表的名稱。 如果未指定 『--target-id』,則為必要專案。
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--table'] ,則為必要專案。
包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create eventhub
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 eventhub 的 Spring 應用程式連線。
az spring connection create eventhub [--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, go, java, kafka-springBoot, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--namespace]
[--no-recreate {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 --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 eventhub 之間的連線
az spring connection create eventhub
使用資源名稱建立 spring 應用程式和 eventhub 之間的連線
az spring connection create eventhub -g SpringCloudRG --service MySpringService --app MyApp --tg EventhubRG --namespace MyNamespace --system-identity
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, kafka-springBoot, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
eventhub 命名空間的名稱。 如果未指定 『--target-id』,則為必要專案。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--namespace'] ,則為必要專案。
包含 eventhub 的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create fabric-sql
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 fabric-sql 的 Spring 應用程式連線。
az spring connection create fabric-sql [--app]
[--appconfig-id]
[--client-type {dotnet, go, java, none, php, python}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--fabric-sql-db-uuid]
[--fabric-workspace-uuid]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--resource-group]
[--service]
[--source-id]
[--system-identity]
[--target-id]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 fabric-sql 之間的連線
az spring connection create fabric-sql
使用資源名稱建立 spring 應用程式和 fabric-sql 之間的連線
az spring connection create fabric-sql -g SpringCloudRG --service MySpringService --app MyApp --fabric-workspace-uuid TargetFabricWorkspaceUUID --fabric-sql-db-uuid TargetFabricSQLDatabaseUUID --system-identity
使用資源標識碼建立 spring 應用程式和 fabric-sql 之間的連線
az spring connection create fabric-sql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --target-id https://api.fabric.microsoft.com/v1/workspaces/{fabric_workspace_uuid}/SqlDatabases/{fabric_sql_db_uuid} --system-identity
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, go, java, none, php, python |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
目標 Fabric SQL 資料庫的 UUID。 如果未指定 『--target-id』,則為必要專案。
包含目標 SQL 資料庫的 Fabric 工作區 UUID。 如果未指定 『--target-id』,則為必要專案。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--fabric-workspace-uuid',則為必要專案,'--fabric-sql-db-uuid']。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create keyvault
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立keyvault的 Spring 應用程式連線。
az spring connection create keyvault [--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--new {false, true}]
[--no-recreate {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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
指出在建立 Spring 連線時,是否要建立新的 keyvault。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--vault'] ,則為必要專案。
包含keyvault的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
keyvault 的名稱。 如果未指定 『--target-id』,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create mongodb-atlas
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 mongodb-atlas 的 spring 應用程式連線。
az spring connection create mongodb-atlas [--app]
[--appconfig-id]
[--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--resource-group]
[--secret]
[--server]
[--service]
[--source-id]
[--target-resource-group --tg]
[--vault-id]
範例
以互動方式建立 spring app 和 mongodb-atlas 之間的連線
az spring connection create mongodb-atlas
在 spring app 和 mongodb-atlas 之間建立具有資源名稱的連線
az spring connection create mongodb-atlas -g SpringCloudRG --service MySpringService --app MyApp --tg MongoDBAtlasRG --server MongoDBAtlasServer --secret secret=xx
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證的連接字串。
用法:--secret secret=XX
secret :秘密驗證的連接字串。範例:mongodb+srv://myUser:myPassword@cluster0.a12345.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
MongoDB Atlas 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
包含 MongoDB Atlas 的資源群組。 如果未指定 『--target-id』,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create mysql
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 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]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {false, true}]
[--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 --tg]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
mysql 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX
name :必要專案。 密碼驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <secret, secret-uri, secret-name>。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密 URI。
secret-name :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
mysql 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。
包含 mysql 伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create mysql-flexible
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 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]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--private-endpoint {false, true}]
[--resource-group]
[--secret]
[--server]
[--service]
[--service-principal]
[--source-id]
[--system-identity]
[--target-id]
[--target-resource-group --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
mysql 彈性資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX
name :必要專案。 密碼驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <secret, secret-uri, secret-name>。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密 URI。
secret-name :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
mysql 彈性伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
系統指派的身分識別驗證資訊。
使用方式:--system-identity mysql-identity-id=xx
mysql-identity-id :選擇性。 用於 MySQL 彈性伺服器 AAD 驗證的身分識別識別碼。 如果您是伺服器 AAD 系統管理員,請予以忽略。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。
包含 mysql 彈性伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create neon-postgres
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 neon-postgres 的 Spring 應用程式連線。
az spring connection create neon-postgres [--app]
[--appconfig-id]
[--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--resource-group]
[--secret]
[--server]
[--service]
[--source-id]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 neon-postgres 之間的連線
az spring connection create neon-postgres
使用資源名稱建立 Spring 應用程式與 neon-postgres 之間的連線
az spring connection create neon-postgres -g SpringCloudRG --service MySpringService --app MyApp --server MyServer --database MyDB --secret name=XX secret=XX
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
sql 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX
name :必要專案。 密碼驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <secret, secret-uri, secret-name>。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密 URI。
secret-name :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
sql Server 的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create postgres
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 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]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--new {false, true}]
[--no-recreate {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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
postgres 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
指出在建立 Spring 連接時是否要建立新的 postgres。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX
name :必要專案。 密碼驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <secret, secret-uri, secret-name>。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密 URI。
secret-name :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
postgres 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。
包含 postgres 服務的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create postgres-flexible
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 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]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--resource-group]
[--secret]
[--server]
[--service]
[--service-principal]
[--source-id]
[--system-identity]
[--target-id]
[--target-resource-group --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
postgres 彈性資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX
name :必要專案。 密碼驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <secret, secret-uri, secret-name>。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密 URI。
secret-name :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
postgres 彈性伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。
包含彈性 postgres 服務的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create redis
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 redis 的 Spring 應用程式連線。
az spring connection create redis [--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--private-endpoint {false, true}]
[--resource-group]
[--secret]
[--server]
[--service]
[--service-principal]
[--source-id]
[--system-identity]
[--target-id]
[--target-resource-group --tg]
[--user-identity]
[--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 --system-identity
使用資源標識碼建立 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} --system-identity
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
redis 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
redis 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。
包含 redis 伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create redis-enterprise
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 redis-enterprise 的 Spring 應用程式連線。
az spring connection create redis-enterprise [--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {false, true}]
[--no-wait]
[--opt-out {auth, configinfo, publicnetwork}]
[--resource-group]
[--secret]
[--server]
[--service]
[--source-id]
[--target-id]
[--target-resource-group --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
redis 企業資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
redis 企業伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。
包含 redis 伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create servicebus
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 Servicebus 的 Spring 應用程式連線。
az spring connection create servicebus [--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--namespace]
[--no-recreate {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 --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式和 servicebus 之間的連線
az spring connection create servicebus
使用資源名稱建立 Spring 應用程式和 servicebus 之間的連線
az spring connection create servicebus -g SpringCloudRG --service MySpringService --app MyApp --tg ServicebusRG --namespace MyNamespace --system-identity
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
servicebus 命名空間的名稱。 如果未指定 『--target-id』,則為必要專案。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--namespace'] ,則為必要專案。
包含 servicebus 的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create signalr
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 signalr 的 Spring 應用程式連線。
az spring connection create signalr [--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, none}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {false, true}]
[--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 --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與信號器之間的連線
az spring connection create signalr
使用資源名稱建立 spring 應用程式和 signalr 之間的連線
az spring connection create signalr -g SpringCloudRG --service MySpringService --app MyApp --tg SignalrRG --signalr MySignalR --system-identity
使用資源標識碼建立 spring 應用程式和 signalr 之間的連線
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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, none |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
signalr 服務的名稱。 如果未指定 『--target-id』,則為必要專案。
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--signalr'] ,則為必要專案。
包含訊號器的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create sql
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 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]
[--connstr-props]
[--customized-keys]
[--database]
[--deployment]
[--no-recreate {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 --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與 sql 之間的連線
az spring connection create sql
使用資源名稱建立 Spring 應用程式與 sql 之間的連線
az spring connection create sql -g SpringCloudRG --service MySpringService --app MyApp --tg SqlRG --server MyServer --database MyDB --secret name=XX secret=XX
使用資源標識碼建立 Spring 應用程式與 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
sql 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX
name :必要專案。 密碼驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <secret, secret-uri, secret-name>。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密 URI。
secret-name :需要其中一個 <secret, secret-uri, secret-name>。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
sql Server 的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。
包含 sql Server 的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create storage-blob
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立與 storage-blob 的 Spring 應用程式連線。
az spring connection create storage-blob [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--new {false, true}]
[--no-recreate {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 --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與記憶體 Blob 之間的連線
az spring connection create storage-blob
使用資源名稱建立 spring 應用程式和 storage-blob 之間的連線
az spring connection create storage-blob -g SpringCloudRG --service MySpringService --app MyApp --tg StorageRG --account MyAccount --system-identity
使用資源標識碼建立 spring 應用程式和 storage-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
建立新的 storage-blob,並以互動方式將 Spring 應用程式連線至它
az spring connection create storage-blob --new
建立新的 storage-blob,並將 Spring 應用程式連線至它
az spring connection create storage-blob --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.AppPlatform/Spring/{spring}/apps/{app} --new
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
記憶體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
指出在建立 Spring 連線時,是否要建立新的 storage-blob。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。
包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create storage-file
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立記憶體檔案的 Spring 應用程式連線。
az spring connection create storage-file [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, php, python, ruby, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {false, true}]
[--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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
記憶體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, php, python, ruby, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。
包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create storage-queue
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立記憶體佇列的 Spring 應用程式連線。
az spring connection create storage-queue [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {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 --tg]
[--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
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
記憶體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python, springBoot |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。
包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create storage-table
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立記憶體數據表的 Spring 應用程式連線。
az spring connection create storage-table [--account]
[--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {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 --tg]
[--user-identity]
[--vault-id]
範例
以互動方式建立 Spring 應用程式與記憶體數據表之間的連線
az spring connection create storage-table
使用資源名稱建立 spring 應用程式和 storage-table 之間的連線
az spring connection create storage-table -g SpringCloudRG --service MySpringService --app MyApp --tg StorageRG --account MyAccount --system-identity
使用資源標識碼建立 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
記憶體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
依服務端點連接目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。
包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az spring connection create webpubsub
此指令已隱含取代,因為指令群組 'spring' 已被取代,且將在未來版本中移除。
建立 Webpubsub 的 Spring 應用程式連線。
az spring connection create webpubsub [--app]
[--appconfig-id]
[--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
[--connection]
[--connstr-props]
[--customized-keys]
[--deployment]
[--no-recreate {false, true}]
[--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 --tg]
[--user-identity]
[--vault-id]
[--webpubsub]
範例
以互動方式建立 Spring 應用程式與 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
使用資源標識碼建立 spring 應用程式與 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Azure Spring Apps 中應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
要儲存組態的應用程式組態標識碼。
spring 中使用的客戶端類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | dotnet, dotnet-internal, java, nodejs, none, python |
Spring 連接的名稱。
用來建置連接字串的其他連接字串屬性。
用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。
應用程式的部署名稱。
當現有連線沒有更新時,略過執行建立作業。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
| 接受的值: | false, true |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。
| 屬性 | 值 |
|---|---|
| 接受的值: | auth, configinfo, publicnetwork |
依私人端點連線目標服務。 來源虛擬網路中的私人端點必須事先建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | NetworkSolution Arguments |
| 接受的值: | false, true |
資源群組,其中包含 Azure Spring Apps 中的應用程式。 如果未指定 『--source-id』,則為必要專案。沒有。
秘密驗證資訊。
使用方式:--secret。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
Azure Spring Apps 資源的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
服務主體驗證資訊。
使用量:--service-principal client-id=XX secret=XX
client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
spring 的資源標識碼。 如果未指定 ['--resource-group'、'--service'、'--app'] ,則為必要專案。
使用系統指派的身分識別驗證資訊的旗標。 不需要其他參數。
使用方式:--system-identity。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
目標服務的資源標識碼。 如果未指定 ['--target-resource-group','--webpubsub'],則為必要專案。
包含 webpubsub 的資源群組。 如果未指定 『--target-id』,則為必要專案。
使用者指派的身分識別驗證資訊。
使用量:--user-identity client-id=XX subs-id=XX
client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。
| 屬性 | 值 |
|---|---|
| 參數群組: | AuthType Arguments |
要儲存秘密值的金鑰保存庫識別碼。
Webpubsub 服務的名稱。 如果未指定 『--target-id』,則為必要專案。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |