az webapp connection

注意

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

管理 Webapp 連線的命令。

命令

名稱 Description 類型 狀態
az webapp connection create

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

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

建立與 app-insights 的 Webapp 連線。

核心 GA
az webapp connection create appconfig

建立與 appconfig 的 Webapp 連線。

核心 GA
az webapp connection create confluent-cloud

建立與 confluent-cloud 的 Webapp 連線。

核心 GA
az webapp connection create cosmos-cassandra

建立 cosmos-cassandra 的 Webapp 連線。

核心 GA
az webapp connection create cosmos-gremlin

建立 cosmos-gremlin 的 Webapp 連線。

核心 GA
az webapp connection create cosmos-mongo

建立 cosmos-mongo 的 Webapp 連線。

核心 GA
az webapp connection create cosmos-sql

建立 cosmos-sql 的 Webapp 連線。

核心 GA
az webapp connection create cosmos-table

建立 cosmos-table 的 Webapp 連線。

核心 GA
az webapp connection create eventhub

建立與 eventhub 的 Webapp 連線。

核心 GA
az webapp connection create keyvault

建立 keyvault 的 Webapp 連線。

核心 GA
az webapp connection create mysql

建立 mysql 的 Webapp 連線。

核心 已取代
az webapp connection create mysql-flexible

建立與 mysql 彈性的 Webapp 連線。

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

建立與 mysql 彈性的 Webapp 連線。

副檔名 GA
az webapp connection create postgres

建立 postgres 的 Webapp 連線。

核心 已取代
az webapp connection create postgres (serviceconnector-passwordless 擴充功能)

建立 postgres 的 Webapp 連線。

副檔名 GA
az webapp connection create postgres-flexible

建立與 postgres-flexible 的 Webapp 連線。

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

建立與 postgres-flexible 的 Webapp 連線。

副檔名 GA
az webapp connection create redis

建立 Redis 的 Webapp 連線。

核心 GA
az webapp connection create redis-enterprise

建立與 redis-enterprise 的 Webapp 連線。

核心 GA
az webapp connection create servicebus

建立與 servicebus 的 Webapp 連線。

核心 GA
az webapp connection create signalr

建立與 signalr 的 Webapp 連線。

核心 GA
az webapp connection create sql

建立與 sql 的 Webapp 連線。

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

建立與 sql 的 Webapp 連線。

副檔名 GA
az webapp connection create storage-blob

建立與 storage-blob 的 Webapp 連線。

核心 GA
az webapp connection create storage-file

建立記憶體檔案的 Webapp 連線。

核心 GA
az webapp connection create storage-queue

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

核心 GA
az webapp connection create storage-table

建立與 storage-table 的 Webapp 連線。

核心 GA
az webapp connection create webpubsub

建立 Webapp 連線至 webpubsub。

核心 GA
az webapp connection delete

刪除 Webapp 連線。

核心 GA
az webapp connection list

列出 Webapp 的連線。

核心 GA
az webapp connection list-configuration

列出 Webapp 連線的來源組態。

核心 GA
az webapp connection list-support-types

列出 Webapp 連線支援的用戶端類型和驗證類型。

核心 GA
az webapp connection show

取得 Webapp 連線的詳細數據。

核心 GA
az webapp connection update

更新 Webapp 連線。

核心 GA
az webapp connection update app-insights

將 Webapp 更新為 app-insights 連線。

核心 GA
az webapp connection update appconfig

將 webapp 更新為 appconfig 連線。

核心 GA
az webapp connection update confluent-cloud

將 webapp 更新為 confluent-cloud 連線。

核心 GA
az webapp connection update cosmos-cassandra

將 webapp 更新為 cosmos-cassandra 連線。

核心 GA
az webapp connection update cosmos-gremlin

將 webapp 更新為 cosmos-gremlin 連線。

核心 GA
az webapp connection update cosmos-mongo

將 webapp 更新為 cosmos-mongo 連線。

核心 GA
az webapp connection update cosmos-sql

將 webapp 更新為 cosmos-sql 連線。

核心 GA
az webapp connection update cosmos-table

將 webapp 更新為 cosmos-table 連線。

核心 GA
az webapp connection update eventhub

將 webapp 更新為 eventhub 連線。

核心 GA
az webapp connection update keyvault

將 Webapp 更新為 keyvault 連線。

核心 GA
az webapp connection update mysql

將 webapp 更新為 mysql 連線。

核心 已取代
az webapp connection update mysql-flexible

將 webapp 更新為 mysql 彈性連線。

核心 GA
az webapp connection update postgres

將 webapp 更新為 postgres 連線。

核心 已取代
az webapp connection update postgres-flexible

將 webapp 更新為 postgres 彈性連線。

核心 GA
az webapp connection update redis

將 webapp 更新為 redis 連線。

核心 GA
az webapp connection update redis-enterprise

將 webapp 更新為 redis-enterprise 連線。

核心 GA
az webapp connection update servicebus

將 webapp 更新為 servicebus 連線。

核心 GA
az webapp connection update signalr

將 webapp 更新為 signalr 連線。

核心 GA
az webapp connection update sql

將 webapp 更新為 sql 連線。

核心 GA
az webapp connection update storage-blob

將 Webapp 更新為記憶體 Blob 連線。

核心 GA
az webapp connection update storage-file

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

核心 GA
az webapp connection update storage-queue

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

核心 GA
az webapp connection update storage-table

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

核心 GA
az webapp connection update webpubsub

將 webapp 更新為 webpubsub 連線。

核心 GA
az webapp connection validate

驗證 Webapp 連線。

核心 GA
az webapp connection wait

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

核心 GA

az webapp connection delete

刪除 Webapp 連線。

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

範例

以互動方式刪除 Webapp 連線

az webapp connection delete

依連線名稱刪除 Webapp 連線

az webapp connection delete -g WebAppRG -n MyWebApp --connection MyConnection

依線上標識碼刪除 Webapp 連線

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

選擇性參數

--connection

Webapp 連線的名稱。

--id

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

--name -n

Webapp 的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--no-wait

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

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

包含 webapp 的資源群組。 如果未指定 『--id』 ,則為必要項。沒有。

--slot

位置的名稱。 如果未指定,則預設為生產位置。

--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 webapp connection list

列出 Webapp 的連線。

az webapp connection list [--name]
                          [--resource-group]
                          [--slot]
                          [--source-id]

範例

以互動方式列出 Webapp 連線

az webapp connection list

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

az webapp connection list -g WebAppRG -n MyWebApp

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

az webapp connection list --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site}

選擇性參數

--name -n

Webapp 的名稱。 如果未指定 『--source-id』,則為必要專案。沒有。

--resource-group -g

包含 webapp 的資源群組。 如果未指定 『--source-id』,則為必要專案。沒有。

--slot

位置的名稱。 如果未指定,則預設為生產位置。

--source-id

webapp 的資源標識碼。 如果未指定 ['--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 webapp connection list-configuration

列出 Webapp 連線的來源組態。

az webapp connection list-configuration [--connection]
                                        [--id]
                                        [--name]
                                        [--resource-group]
                                        [--slot]

範例

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

az webapp connection list-configuration

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

az webapp connection list-configuration -g WebAppRG -n MyWebApp --connection MyConnection

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

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

選擇性參數

--connection

Webapp 連線的名稱。

--id

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

--name -n

Webapp 的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--resource-group -g

包含 webapp 的資源群組。 如果未指定 『--id』 ,則為必要項。沒有。

--slot

位置的名稱。 如果未指定,則預設為生產位置。

全域參數
--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 webapp connection list-support-types

列出 Webapp 連線支援的用戶端類型和驗證類型。

az webapp connection list-support-types [--target-type {app-insights, appconfig, 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}]

範例

列出所有 Webapp 支援的目標資源類型和驗證類型

az webapp connection list-support-types -o table

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

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

選擇性參數

--target-type -t

目標資源類型。

接受的值: app-insights, appconfig, 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 webapp connection show

取得 Webapp 連線的詳細數據。

az webapp connection show [--connection]
                          [--id]
                          [--name]
                          [--resource-group]
                          [--slot]

範例

以互動方式取得連線

az webapp connection show

依線上名稱取得連線

az webapp connection show -g WebAppRG -n MyWebApp --connection MyConnection

依線上標識碼取得連線

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

選擇性參數

--connection

Webapp 連線的名稱。

--id

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

--name -n

Webapp 的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--resource-group -g

包含 webapp 的資源群組。 如果未指定 『--id』 ,則為必要項。沒有。

--slot

位置的名稱。 如果未指定,則預設為生產位置。

全域參數
--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 webapp connection validate

驗證 Webapp 連線。

az webapp connection validate [--connection]
                              [--id]
                              [--name]
                              [--resource-group]
                              [--slot]

範例

以互動方式驗證連線

az webapp connection validate

依線上名稱驗證連線

az webapp connection validate -g WebAppRG -n MyWebApp --connection MyConnection

依線上標識碼驗證連線

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

選擇性參數

--connection

Webapp 連線的名稱。

--id

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

--name -n

Webapp 的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--resource-group -g

包含 webapp 的資源群組。 如果未指定 『--id』 ,則為必要項。沒有。

--slot

位置的名稱。 如果未指定,則預設為生產位置。

全域參數
--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 webapp connection wait

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

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

範例

等到連線成功建立為止。

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

選擇性參數

--connection

Webapp 連線的名稱。

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

Webapp 的名稱。 如果未指定 『--id』 ,則為必要項。沒有。

--resource-group -g

包含 webapp 的資源群組。 如果未指定 『--id』 ,則為必要項。沒有。

--slot

位置的名稱。 如果未指定,則預設為生產位置。

--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 來取得完整偵錯記錄。