az containerapp connection
Note
此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。
管理 containerapp 連線的命令。
命令
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}
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
containerapp 連線的名稱。
連接的資源識別碼。 如果未指定 '--id' ,則需要 [''--resource-group'、'--name'、'--connection']。
容器應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
包含容器應用程式的資源群組。 如果未指定 『--id』 ,則為必要項。沒有。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
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}
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
容器應用程式的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。
包含容器應用程式的資源群組。 如果未指定 『--source-id』,則為必要專案。沒有。
containerapp 的資源標識碼。 如果未指定 ['--resource-group', '--name'] ,則為必要專案。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
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}
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
containerapp 連線的名稱。
連接的資源識別碼。 如果未指定 '--id' ,則需要 [''--resource-group'、'--name'、'--connection']。
容器應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。
包含容器應用程式的資源群組。 如果未指定 『--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 containerapp connection list-support-types
列出容器應用程式連線支援的用戶端類型和驗證類型。
az containerapp connection list-support-types [--target-type {app-insights, appconfig, cognitiveservices, confluent-cloud, containerapp, cosmos-cassandra, cosmos-gremlin, cosmos-mongo, cosmos-sql, cosmos-table, eventhub, fabric-sql, keyvault, mongodb-atlas, mysql, mysql-flexible, neon-postgres, 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
目標資源類型。
| 屬性 | 值 |
|---|---|
| 接受的值: | app-insights, appconfig, cognitiveservices, confluent-cloud, containerapp, cosmos-cassandra, cosmos-gremlin, cosmos-mongo, cosmos-sql, cosmos-table, eventhub, fabric-sql, keyvault, mongodb-atlas, mysql, mysql-flexible, neon-postgres, postgres, postgres-flexible, redis, redis-enterprise, servicebus, signalr, sql, storage-blob, storage-file, storage-queue, storage-table, webpubsub |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
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}
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
containerapp 連線的名稱。
連接的資源識別碼。 如果未指定 '--id' ,則需要 [''--resource-group'、'--name'、'--connection']。
容器應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。
包含容器應用程式的資源群組。 如果未指定 『--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 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}
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
containerapp 連線的名稱。
連接的資源識別碼。 如果未指定 '--id' ,則需要 [''--resource-group'、'--name'、'--connection']。
容器應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。
包含容器應用程式的資源群組。 如果未指定 『--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 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
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
containerapp 連線的名稱。
請等候在 'Succeeded' 使用 'provisioningState' 建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
等到刪除為止。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等候資源存在。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
連接的資源識別碼。 如果未指定 '--id' ,則需要 [''--resource-group'、'--name'、'--connection']。
輪詢間隔以秒為單位。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 30 |
容器應用程式的名稱。 如果未指定 『--id』 ,則為必要項。沒有。
包含容器應用程式的資源群組。 如果未指定 『--id』 ,則為必要項。沒有。
以秒為單位的等候上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 3600 |
等到 provisioningState 更新為 'Succeeded'。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |