Share via


az containerapp connection

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理 containerapp 連線的命令。

命令

名稱 Description 類型 狀態
az containerapp connection create

建立 containerapp 與目標資源之間的連線。

核心和擴充功能 GA
az containerapp connection create app-insights

建立與 app-insights 的 containerapp 連線。

核心 GA
az containerapp connection create appconfig

建立與 appconfig 的 containerapp 連線。

核心 GA
az containerapp connection create cognitiveservices

建立與 cognitiveservices 的 containerapp 連線。

核心 GA
az containerapp connection create confluent-cloud

建立 confluent-cloud 的 containerapp 連線。

核心 GA
az containerapp connection create cosmos-cassandra

建立 cosmos-cassandra 的 containerapp 連線。

核心 GA
az containerapp connection create cosmos-gremlin

建立 cosmos-gremlin 的 containerapp 連線。

核心 GA
az containerapp connection create cosmos-mongo

建立 cosmos-mongo 的 containerapp 連線。

核心 GA
az containerapp connection create cosmos-sql

建立 cosmos-sql 的 containerapp 連線。

核心 GA
az containerapp connection create cosmos-table

建立 cosmos-table 的 containerapp 連線。

核心 GA
az containerapp connection create eventhub

建立 eventhub 的 containerapp 連線。

核心 GA
az containerapp connection create keyvault

建立keyvault的 containerapp 連線。

核心 GA
az containerapp connection create mysql

建立 mysql 的 containerapp 連線。

核心 已淘汰
az containerapp connection create mysql-flexible

建立與 mysql 彈性的 containerapp 連線。

核心 GA
az containerapp connection create mysql-flexible (serviceconnector-passwordless 擴充功能)

建立與 mysql 彈性的 containerapp 連線。

副檔名 GA
az containerapp connection create postgres

建立與 postgres 的 containerapp 連線。

核心 已淘汰
az containerapp connection create postgres (serviceconnector-passwordless 擴充功能)

建立與 postgres 的 containerapp 連線。

副檔名 GA
az containerapp connection create postgres-flexible

建立與 postgres 彈性的 containerapp 連線。

核心 GA
az containerapp connection create postgres-flexible (serviceconnector-passwordless 擴充功能)

建立與 postgres 彈性的 containerapp 連線。

副檔名 GA
az containerapp connection create redis

建立 redis 的 containerapp 連線。

核心 GA
az containerapp connection create redis-enterprise

建立與 redis-enterprise 的 containerapp 連線。

核心 GA
az containerapp connection create servicebus

建立與 servicebus 的 containerapp 連線。

核心 GA
az containerapp connection create signalr

建立與 signalr 的 containerapp 連線。

核心 GA
az containerapp connection create sql

建立與 sql 的 containerapp 連線。

核心 GA
az containerapp connection create sql (serviceconnector-passwordless 擴充功能)

建立與 sql 的 containerapp 連線。

副檔名 GA
az containerapp connection create storage-blob

建立與 storage-blob 的 containerapp 連線。

核心 GA
az containerapp connection create storage-file

建立 storage-file 的 containerapp 連線。

核心 GA
az containerapp connection create storage-queue

建立與記憶體佇列的 containerapp 連線。

核心 GA
az containerapp connection create storage-table

建立 storage-table 的 containerapp 連線。

核心 GA
az containerapp connection create webpubsub

建立與 webpubsub 的 containerapp 連線。

核心 GA
az containerapp connection delete

刪除 containerapp 連線。

核心 GA
az containerapp connection list

列出 containerapp 的連線。

核心 GA
az containerapp connection list-configuration

列出 containerapp 連線的來源組態。

核心 GA
az containerapp connection list-support-types

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

核心 GA
az containerapp connection show

取得 containerapp 連線的詳細數據。

核心 GA
az containerapp connection update

更新 containerapp 連線。

核心 GA
az containerapp connection update app-insights

將 containerapp 更新為 app-insights 連線。

核心 GA
az containerapp connection update appconfig

將 containerapp 更新為 appconfig 連線。

核心 GA
az containerapp connection update cognitiveservices

將 containerapp 更新為 cognitiveservices 連線。

核心 GA
az containerapp connection update confluent-cloud

將 containerapp 更新為 confluent-cloud 連線。

核心 GA
az containerapp connection update cosmos-cassandra

將 containerapp 更新為 cosmos-cassandra 連線。

核心 GA
az containerapp connection update cosmos-gremlin

將 containerapp 更新為 cosmos-gremlin 連線。

核心 GA
az containerapp connection update cosmos-mongo

將 containerapp 更新為 cosmos-mongo 連線。

核心 GA
az containerapp connection update cosmos-sql

將 containerapp 更新為 cosmos-sql 連線。

核心 GA
az containerapp connection update cosmos-table

將 containerapp 更新為 cosmos-table 連線。

核心 GA
az containerapp connection update eventhub

將 containerapp 更新為 eventhub 連線。

核心 GA
az containerapp connection update keyvault

將 containerapp 更新為keyvault連線。

核心 GA
az containerapp connection update mysql

將 containerapp 更新為 mysql 連線。

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

將 containerapp 更新為 mysql 彈性連線。

核心 GA
az containerapp connection update postgres

將 containerapp 更新為 postgres 連線。

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

將 containerapp 更新為 postgres 彈性連線。

核心 GA
az containerapp connection update redis

將 containerapp 更新為 redis 連線。

核心 GA
az containerapp connection update redis-enterprise

將 containerapp 更新為 redis-enterprise 連線。

核心 GA
az containerapp connection update servicebus

將 containerapp 更新為 servicebus 連線。

核心 GA
az containerapp connection update signalr

將 containerapp 更新為 signalr 連線。

核心 GA
az containerapp connection update sql

將 containerapp 更新為 sql 連線。

核心 GA
az containerapp connection update storage-blob

將 containerapp 更新為 storage-blob 連線。

核心 GA
az containerapp connection update storage-file

將 containerapp 更新為記憶體檔案連線。

核心 GA
az containerapp connection update storage-queue

將 containerapp 更新為記憶體佇列連線。

核心 GA
az containerapp connection update storage-table

將 containerapp 更新為記憶體數據表連線。

核心 GA
az containerapp connection update webpubsub

將 containerapp 更新為 webpubsub 連線。

核心 GA
az containerapp connection validate

驗證 containerapp 連線。

核心 GA
az containerapp connection wait

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

核心 GA

az containerapp connection delete

刪除 containerapp 連線。

az containerapp connection delete [--connection]
                                  [--id]
                                  [--name]
                                  [--no-wait]
                                  [--resource-group]
                                  [--yes]

範例

以互動方式刪除 containerapp 連線

az containerapp connection delete

依連線名稱刪除 containerapp 連線

az containerapp connection delete -g ContainerAppRG -n MyContainerApp --connection MyConnection

依線上標識碼刪除 containerapp 連線

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

選擇性參數

--connection

containerapp 連線的名稱。

--id

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

--name -n

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

--no-wait

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

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

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

--yes -y

不提示確認。

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

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

az containerapp connection list

列出 containerapp 的連線。

az containerapp connection list [--name]
                                [--resource-group]
                                [--source-id]

範例

以互動方式列出 containerapp 連線

az containerapp connection list

依來源資源名稱列出 containerapp 連線

az containerapp connection list -g ContainerAppRG -n MyContainerApp

依來源資源標識碼列出 containerapp 連線

az containerapp connection list --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.App/containerApps/{app}

選擇性參數

--name -n

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

--resource-group -g

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

--source-id

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

全域參數
--debug

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

az containerapp connection list-configuration

列出 containerapp 連線的來源組態。

az containerapp connection list-configuration [--connection]
                                              [--id]
                                              [--name]
                                              [--resource-group]

範例

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

az containerapp connection list-configuration

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

az containerapp connection list-configuration -g ContainerAppRG -n MyContainerApp --connection MyConnection

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

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

選擇性參數

--connection

containerapp 連線的名稱。

--id

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

--name -n

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

--resource-group -g

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

全域參數
--debug

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

az containerapp connection list-support-types

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

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

範例

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

az containerapp connection list-support-types -o table

列出特定目標資源類型支援的 containerapp 驗證類型

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

選擇性參數

--target-type -t

目標資源類型。

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

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

az containerapp connection show

取得 containerapp 連線的詳細數據。

az containerapp connection show [--connection]
                                [--id]
                                [--name]
                                [--resource-group]

範例

以互動方式取得連線

az containerapp connection show

依線上名稱取得連線

az containerapp connection show -g ContainerAppRG -n MyContainerApp --connection MyConnection

依線上標識碼取得連線

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

選擇性參數

--connection

containerapp 連線的名稱。

--id

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

--name -n

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

--resource-group -g

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

全域參數
--debug

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

az containerapp connection validate

驗證 containerapp 連線。

az containerapp connection validate [--connection]
                                    [--id]
                                    [--name]
                                    [--resource-group]

範例

以互動方式驗證連線

az containerapp connection validate

依線上名稱驗證連線

az containerapp connection validate -g ContainerAppRG -n MyContainerApp --connection MyConnection

依線上標識碼驗證連線

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

選擇性參數

--connection

containerapp 連線的名稱。

--id

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

--name -n

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

--resource-group -g

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

全域參數
--debug

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

az containerapp connection wait

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

az containerapp connection wait [--connection]
                                [--created]
                                [--custom]
                                [--deleted]
                                [--exists]
                                [--id]
                                [--interval]
                                [--name]
                                [--resource-group]
                                [--timeout]
                                [--updated]

範例

等到連線成功建立為止。

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

選擇性參數

--connection

containerapp 連線的名稱。

--created

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

預設值: False
--custom

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

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--id

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

--interval

輪詢間隔以秒為單位。

預設值: 30
--name -n

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

--resource-group -g

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

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

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

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

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

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