az webapp connection create

注意

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

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

命令

名稱 Description 類型 狀態
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 create app-insights

建立與 app-insights 的 Webapp 連線。

az webapp connection create app-insights [--app-insights]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python}]
                                         [--connection]
                                         [--customized-keys]
                                         [--name]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--resource-group]
                                         [--secret]
                                         [--slot]
                                         [--source-id]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--vault-id]

範例

以互動方式建立 Webapp 與 app-insights 之間的連線

az webapp connection create app-insights

使用資源名稱建立 webapp 與 app-insights 之間的連線

az webapp connection create app-insights -g WebAppRG -n MyWebApp --tg AppInsightsRG --app-insights MyAppInsights --secret

使用資源名稱建立 Webapp 位置與 app-insights 之間的連線

az webapp connection create app-insights -g WebAppRG -n MyWebApp --slot MySlot --tg AppInsightsRG --app-insights MyAppInsights --secret

使用資源標識碼建立 webapp 與 app-insights 之間的連線

az webapp connection create app-insights --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/microsoft.insights/components/{appinsights} --secret

選擇性參數

--app-insights

應用程式深入解析的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--slot

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

--source-id

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

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--app-insights'] ,則為必要專案。

--target-resource-group --tg

包含應用程式深入解析的資源群組。 如果未指定 『--target-id』,則為必要專案。

--vault-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 webapp connection create appconfig

建立與 appconfig 的 Webapp 連線。

az webapp connection create appconfig [--app-config]
                                      [--appconfig-id]
                                      [--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
                                      [--connection]
                                      [--customized-keys]
                                      [--name]
                                      [--no-wait]
                                      [--opt-out {auth, configinfo, publicnetwork}]
                                      [--private-endpoint {false, true}]
                                      [--resource-group]
                                      [--secret]
                                      [--service-principal]
                                      [--slot]
                                      [--source-id]
                                      [--system-identity]
                                      [--target-id]
                                      [--target-resource-group]
                                      [--user-identity]
                                      [--vault-id]

範例

以互動方式建立 Webapp 與 appconfig 之間的連線

az webapp connection create appconfig

使用資源名稱建立 webapp 與 appconfig 之間的連線

az webapp connection create appconfig -g WebAppRG -n MyWebApp --tg AppconfigRG --app-config MyConfigStore --system-identity

使用資源名稱建立 Webapp 位置與 appconfig 之間的連線

az webapp connection create appconfig -g WebAppRG -n MyWebApp --slot MySlot --tg AppconfigRG --app-config MyConfigStore --system-identity

使用資源標識碼建立 webapp 與 appconfig 之間的連線

az webapp connection create appconfig --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.AppConfiguration/configurationStores/{config_store} --system-identity

選擇性參數

--app-config

應用程式組態的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group','--app-config'],則為必要專案。

--target-resource-group --tg

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

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create confluent-cloud

建立與 confluent-cloud 的 Webapp 連線。

az webapp connection create confluent-cloud --bootstrap-server
                                            --kafka-key
                                            --kafka-secret
                                            --schema-key
                                            --schema-registry
                                            --schema-secret
                                            [--appconfig-id]
                                            [--client-type {dotnet, dotnet-internal, go, java, none, python, springBoot}]
                                            [--connection]
                                            [--customized-keys]
                                            [--name]
                                            [--no-wait]
                                            [--opt-out {auth, configinfo, publicnetwork}]
                                            [--resource-group]
                                            [--slot]
                                            [--source-id]
                                            [--vault-id]

範例

建立 webapp 與 confluent-cloud 之間的連線

az webapp connection create confluent-cloud -g WebAppRG -n MyWebApp --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

必要參數

--bootstrap-server

Kafka 啟動程式伺服器 URL。

--kafka-key

Kafka API 金鑰(金鑰)。

--kafka-secret

Kafka API 金鑰(秘密)。

--schema-key

架構登錄 API 金鑰(機碼)。

--schema-registry

架構登錄 URL。

--schema-secret

架構登錄 API 金鑰(秘密)。

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, none, python, springBoot
--connection

連接的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--slot

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

--source-id

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

--vault-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 webapp connection create cosmos-cassandra

建立 cosmos-cassandra 的 Webapp 連線。

az webapp connection create cosmos-cassandra [--account]
                                             [--appconfig-id]
                                             [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                             [--connection]
                                             [--customized-keys]
                                             [--key-space]
                                             [--name]
                                             [--no-wait]
                                             [--opt-out {auth, configinfo, publicnetwork}]
                                             [--private-endpoint {false, true}]
                                             [--resource-group]
                                             [--secret]
                                             [--service-endpoint {false, true}]
                                             [--service-principal]
                                             [--slot]
                                             [--source-id]
                                             [--system-identity]
                                             [--target-id]
                                             [--target-resource-group]
                                             [--user-identity]
                                             [--vault-id]

範例

以互動方式建立 webapp 與 cosmos-cassandra 之間的連線

az webapp connection create cosmos-cassandra

使用資源名稱建立 webapp 與 cosmos-cassandra 之間的連線

az webapp connection create cosmos-cassandra -g WebAppRG -n MyWebApp --tg CosmosRG --account MyAccount --key-space MyKeySpace --system-identity

使用資源名稱建立 webapp 位置與 cosmos-cassandra 之間的連線

az webapp connection create cosmos-cassandra -g WebAppRG -n MyWebApp --slot MySlot --tg CosmosRG --account MyAccount --key-space MyKeySpace --system-identity

使用資源標識碼建立 webapp 與 cosmos-cassandra 之間的連線

az webapp connection create cosmos-cassandra --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/cassandraKeyspaces/{key_space} --system-identity

選擇性參數

--account

cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--key-space

keyspace 的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--key-space'],則為必要專案。

--target-resource-group --tg

包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create cosmos-gremlin

建立 cosmos-gremlin 的 Webapp 連線。

az webapp connection create cosmos-gremlin [--account]
                                           [--appconfig-id]
                                           [--client-type {dotnet, dotnet-internal, java, nodejs, none, php, python}]
                                           [--connection]
                                           [--customized-keys]
                                           [--database]
                                           [--graph]
                                           [--name]
                                           [--no-wait]
                                           [--opt-out {auth, configinfo, publicnetwork}]
                                           [--private-endpoint {false, true}]
                                           [--resource-group]
                                           [--secret]
                                           [--service-endpoint {false, true}]
                                           [--service-principal]
                                           [--slot]
                                           [--source-id]
                                           [--system-identity]
                                           [--target-id]
                                           [--target-resource-group]
                                           [--user-identity]
                                           [--vault-id]

範例

以互動方式建立 webapp 與 cosmos-gremlin 之間的連線

az webapp connection create cosmos-gremlin

使用資源名稱建立 webapp 與 cosmos-gremlin 之間的連線

az webapp connection create cosmos-gremlin -g WebAppRG -n MyWebApp --tg CosmosRG --account MyAccount --database MyDB --graph MyGraph --system-identity

使用資源名稱建立 webapp 位置與 cosmos-gremlin 之間的連線

az webapp connection create cosmos-gremlin -g WebAppRG -n MyWebApp --slot MySlot --tg CosmosRG --account MyAccount --database MyDB --graph MyGraph --system-identity

使用資源標識碼建立 webapp 與 cosmos-gremlin 之間的連線

az webapp connection create cosmos-gremlin --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/gremlinDatabases/{database}/graphs/{graph} --system-identity

選擇性參數

--account

cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, php, python
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--graph

圖形的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--database'、'--graph'] ,則為必要專案。

--target-resource-group --tg

包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create cosmos-mongo

建立 cosmos-mongo 的 Webapp 連線。

az webapp connection create cosmos-mongo [--account]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--database]
                                         [--name]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service-endpoint {false, true}]
                                         [--service-principal]
                                         [--slot]
                                         [--source-id]
                                         [--system-identity]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--user-identity]
                                         [--vault-id]

範例

以互動方式建立 webapp 與 cosmos-mongo 之間的連線

az webapp connection create cosmos-mongo

使用資源名稱建立 webapp 與 cosmos-mongo 之間的連線

az webapp connection create cosmos-mongo -g WebAppRG -n MyWebApp --tg CosmosRG --account MyAccount --database MyDB --system-identity

使用資源名稱建立 webapp 位置與 cosmos-mongo 之間的連線

az webapp connection create cosmos-mongo -g WebAppRG -n MyWebApp --slot MySlot --tg CosmosRG --account MyAccount --database MyDB --system-identity

使用資源標識碼建立 webapp 與 cosmos-mongo 之間的連線

az webapp connection create cosmos-mongo --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/mongodbDatabases/{database} --system-identity

選擇性參數

--account

cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create cosmos-sql

建立 cosmos-sql 的 Webapp 連線。

az webapp connection create cosmos-sql [--account]
                                       [--appconfig-id]
                                       [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                       [--connection]
                                       [--customized-keys]
                                       [--database]
                                       [--name]
                                       [--no-wait]
                                       [--opt-out {auth, configinfo, publicnetwork}]
                                       [--private-endpoint {false, true}]
                                       [--resource-group]
                                       [--secret]
                                       [--service-endpoint {false, true}]
                                       [--service-principal]
                                       [--slot]
                                       [--source-id]
                                       [--system-identity]
                                       [--target-id]
                                       [--target-resource-group]
                                       [--user-identity]
                                       [--vault-id]

範例

以互動方式建立 webapp 與 cosmos-sql 之間的連線

az webapp connection create cosmos-sql

使用資源名稱建立 webapp 與 cosmos-sql 之間的連線

az webapp connection create cosmos-sql -g WebAppRG -n MyWebApp --tg CosmosRG --account MyAccount --database MyDB --system-identity

使用資源名稱建立 webapp 位置與 cosmos-sql 之間的連線

az webapp connection create cosmos-sql -g WebAppRG -n MyWebApp --slot MySlot --tg CosmosRG --account MyAccount --database MyDB --system-identity

使用資源標識碼建立 webapp 與 cosmos-sql 之間的連線

az webapp connection create cosmos-sql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/sqlDatabases/{database} --system-identity

選擇性參數

--account

cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create cosmos-table

建立 cosmos-table 的 Webapp 連線。

az webapp connection create cosmos-table [--account]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--name]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service-endpoint {false, true}]
                                         [--service-principal]
                                         [--slot]
                                         [--source-id]
                                         [--system-identity]
                                         [--table]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--user-identity]
                                         [--vault-id]

範例

以互動方式建立 webapp 與 cosmos-table 之間的連線

az webapp connection create cosmos-table

使用資源名稱建立 webapp 與 cosmos-table 之間的連線

az webapp connection create cosmos-table -g WebAppRG -n MyWebApp --tg CosmosRG --account MyAccount --table MyTable --system-identity

使用資源名稱建立 webapp 位置與 cosmos-table 之間的連線

az webapp connection create cosmos-table -g WebAppRG -n MyWebApp --slot MySlot --tg CosmosRG --account MyAccount --table MyTable --system-identity

使用資源標識碼建立 webapp 與 cosmos-table 之間的連線

az webapp connection create cosmos-table --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DocumentDB/databaseAccounts/{account}/tables/{table} --system-identity

選擇性參數

--account

cosmos 資料庫帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--table

資料表的名稱。 如果未指定 『--target-id』,則為必要專案。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--account'、'--table'] ,則為必要專案。

--target-resource-group --tg

包含 cosmos 資料庫帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create eventhub

建立與 eventhub 的 Webapp 連線。

az webapp connection create eventhub [--appconfig-id]
                                     [--client-type {dotnet, dotnet-internal, go, java, kafka-springBoot, nodejs, none, python, springBoot}]
                                     [--connection]
                                     [--customized-keys]
                                     [--name]
                                     [--namespace]
                                     [--no-wait]
                                     [--opt-out {auth, configinfo, publicnetwork}]
                                     [--private-endpoint {false, true}]
                                     [--resource-group]
                                     [--secret]
                                     [--service-endpoint {false, true}]
                                     [--service-principal]
                                     [--slot]
                                     [--source-id]
                                     [--system-identity]
                                     [--target-id]
                                     [--target-resource-group]
                                     [--user-identity]
                                     [--vault-id]

範例

以互動方式建立 webapp 與 eventhub 之間的連線

az webapp connection create eventhub

使用資源名稱建立 webapp 與 eventhub 之間的連線

az webapp connection create eventhub -g WebAppRG -n MyWebApp --tg EventhubRG --namespace MyNamespace --system-identity

使用資源名稱建立 webapp 位置與 eventhub 之間的連線

az webapp connection create eventhub -g WebAppRG -n MyWebApp --slot MySlot --tg EventhubRG --namespace MyNamespace --system-identity

使用資源標識碼建立 webapp 與 eventhub 之間的連線

az webapp connection create eventhub --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.EventHub/namespaces/{namespace} --system-identity

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, kafka-springBoot, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--namespace

eventhub 命名空間的名稱。 如果未指定 『--target-id』,則為必要專案。

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--namespace'] ,則為必要專案。

--target-resource-group --tg

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

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create keyvault

建立 keyvault 的 Webapp 連線。

az webapp connection create keyvault [--appconfig-id]
                                     [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                     [--connection]
                                     [--customized-keys]
                                     [--name]
                                     [--new {false, true}]
                                     [--no-wait]
                                     [--opt-out {auth, configinfo, publicnetwork}]
                                     [--private-endpoint {false, true}]
                                     [--resource-group]
                                     [--service-endpoint {false, true}]
                                     [--service-principal]
                                     [--slot]
                                     [--source-id]
                                     [--system-identity]
                                     [--target-id]
                                     [--target-resource-group]
                                     [--user-identity]
                                     [--vault]
                                     [--vault-id]

範例

以互動方式建立 webapp 與 keyvault 之間的連線

az webapp connection create keyvault

使用資源名稱建立 webapp 與 keyvault 之間的連線

az webapp connection create keyvault -g WebAppRG -n MyWebApp --tg KeyvaultRG --vault MyVault --system-identity

使用資源名稱建立 webapp 位置與 keyvault 之間的連線

az webapp connection create keyvault -g WebAppRG -n MyWebApp --slot MySlot --tg KeyvaultRG --vault MyVault --system-identity

使用資源標識碼建立 webapp 與 keyvault 之間的連線

az webapp connection create keyvault --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.KeyVault/vaults/{vault} --system-identity

建立新的keyvault,並以互動方式將webapp線上至它

az webapp connection create keyvault --new

建立新的keyvault並將webapp連線到它

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

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--new

指出在建立 Webapp 連線時,是否要建立新的 keyvault。

接受的值: false, true
預設值: False
--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--vault'] ,則為必要專案。

--target-resource-group --tg

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

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault

keyvault 的名稱。 如果未指定 『--target-id』,則為必要專案。

--vault-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 webapp connection create mysql

已被取代

此命令已被取代,並將在未來版本中移除。

建立 mysql 的 Webapp 連線。

az webapp connection create mysql [--appconfig-id]
                                  [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                  [--config-connstr {false, true}]
                                  [--connection]
                                  [--customized-keys]
                                  [--database]
                                  [--name]
                                  [--no-wait]
                                  [--opt-out {auth, configinfo, publicnetwork}]
                                  [--private-endpoint {false, true}]
                                  [--resource-group]
                                  [--secret]
                                  [--server]
                                  [--service-endpoint {false, true}]
                                  [--slot]
                                  [--source-id]
                                  [--target-id]
                                  [--target-resource-group]
                                  [--vault-id]

範例

以互動方式建立 webapp 與 mysql 之間的連線

az webapp connection create mysql

使用資源名稱建立 webapp 與 mysql 之間的連線

az webapp connection create mysql -g WebAppRG -n MyWebApp --tg MysqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源名稱建立 webapp 位置與 mysql 之間的連線

az webapp connection create mysql -g WebAppRG -n MyWebApp --slot MySlot --tg MysqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 mysql 之間的連線

az webapp connection create mysql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBForMySQL/servers/{server}/databases/{database} --secret name=XX secret=XX

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

mysql 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

mysql 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--slot

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

--source-id

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

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 mysql 伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。

--vault-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 webapp connection create mysql-flexible

建立與 mysql 彈性的 Webapp 連線。

az webapp connection create mysql-flexible [--appconfig-id]
                                           [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                           [--config-connstr {false, true}]
                                           [--connection]
                                           [--customized-keys]
                                           [--database]
                                           [--name]
                                           [--no-wait]
                                           [--opt-out {auth, configinfo, publicnetwork}]
                                           [--resource-group]
                                           [--secret]
                                           [--server]
                                           [--service-principal]
                                           [--slot]
                                           [--source-id]
                                           [--system-identity]
                                           [--target-id]
                                           [--target-resource-group]
                                           [--user-identity]
                                           [--vault-id]

範例

以互動方式建立 webapp 與 mysql 彈性的連線

az webapp connection create mysql-flexible

使用資源名稱建立 webapp 與 mysql 彈性之間的連線

az webapp connection create mysql-flexible -g WebAppRG -n MyWebApp --tg MysqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源名稱建立 webapp 位置與 mysql 彈性之間的連線

az webapp connection create mysql-flexible -g WebAppRG -n MyWebApp --slot MySlot --tg MysqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 mysql 彈性之間的連線

az webapp connection create mysql-flexible --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforMySQL/flexibleServers/{server}/databases/{database} --secret name=XX secret=XX

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

mysql 彈性資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

mysql 彈性伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity mysql-identity-id=xx

mysql-identity-id :選擇性。 用於 MySQL 彈性伺服器 AAD 驗證的身分識別識別碼。 如果您是伺服器 AAD 系統管理員,請予以忽略。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 mysql 彈性伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create mysql-flexible (serviceconnector-passwordless 擴充功能)

建立與 mysql 彈性的 Webapp 連線。

az webapp connection create mysql-flexible [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                           [--config-connstr {false, true}]
                                           [--connection]
                                           [--customized-keys]
                                           [--database]
                                           [--name]
                                           [--no-wait]
                                           [--resource-group]
                                           [--secret]
                                           [--server]
                                           [--service-principal]
                                           [--slot]
                                           [--source-id]
                                           [--system-identity]
                                           [--target-id]
                                           [--target-resource-group]
                                           [--user-identity]
                                           [--vault-id]
                                           [--yes]

範例

以互動方式建立 webapp 與 mysql 彈性的連線

az webapp connection create mysql-flexible

使用資源名稱建立 webapp 與 mysql 彈性之間的連線

az webapp connection create mysql-flexible -g WebAppRG -n MyWebApp --tg MysqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 mysql 彈性之間的連線

az webapp connection create mysql-flexible --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforMySQL/flexibleServers/{server}/databases/{database} --secret name=XX secret=XX

選擇性參數

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

mysql 彈性資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

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

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

mysql 彈性伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。 mysql-identity-id :選擇性。 用於 MySQL 彈性伺服器 Microsoft Entra Authentication 的身分識別標識碼。 如果您是 Microsoft Entra 系統管理員的伺服器,請予以忽略。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity mysql-identity-id=xx

mysql-identity-id :選擇性。 用於 MySQL 彈性伺服器 Microsoft Entra Authentication 的身分識別標識碼。 如果您是 Microsoft Entra 系統管理員的伺服器,請予以忽略。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 mysql 彈性伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。 mysql-identity-id :選擇性。 用於 MySQL 彈性伺服器 Microsoft Entra Authentication 的身分識別標識碼。 如果您是 Microsoft Entra 系統管理員的伺服器,請予以忽略。

--vault-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 webapp connection create postgres

已被取代

此命令已被取代,並將在未來版本中移除。

建立 postgres 的 Webapp 連線。

az webapp connection create postgres [--appconfig-id]
                                     [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                     [--config-connstr {false, true}]
                                     [--connection]
                                     [--customized-keys]
                                     [--database]
                                     [--name]
                                     [--new {false, true}]
                                     [--no-wait]
                                     [--opt-out {auth, configinfo, publicnetwork}]
                                     [--private-endpoint {false, true}]
                                     [--resource-group]
                                     [--secret]
                                     [--server]
                                     [--service-endpoint {false, true}]
                                     [--service-principal]
                                     [--slot]
                                     [--source-id]
                                     [--system-identity]
                                     [--target-id]
                                     [--target-resource-group]
                                     [--user-identity]
                                     [--vault-id]

範例

以互動方式建立 webapp 與 postgres 之間的連線

az webapp connection create postgres

使用資源名稱建立 webapp 與 postgres 之間的連線

az webapp connection create postgres -g WebAppRG -n MyWebApp --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源名稱建立 webapp 位置與 postgres 之間的連線

az webapp connection create postgres -g WebAppRG -n MyWebApp --slot MySlot --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 postgres 之間的連線

az webapp connection create postgres --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforPostgreSQL/servers/{server}/databases/{database} --secret name=XX secret=XX

建立新的 postgres,並以互動方式將 webapp 連線至它

az webapp connection create postgres --new

建立新的 postgres 並將 webapp 連線至其中

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

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

postgres 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--new

指出建立 Webapp 連線時是否要建立新的 postgres。

接受的值: false, true
預設值: False
--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

postgres 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 postgres 服務的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create postgres (serviceconnector-passwordless 擴充功能)

建立 postgres 的 Webapp 連線。

az webapp connection create postgres [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                     [--config-connstr {false, true}]
                                     [--connection]
                                     [--customized-keys]
                                     [--database]
                                     [--name]
                                     [--new {false, true}]
                                     [--no-wait]
                                     [--private-endpoint {false, true}]
                                     [--resource-group]
                                     [--secret]
                                     [--server]
                                     [--service-endpoint {false, true}]
                                     [--service-principal]
                                     [--slot]
                                     [--source-id]
                                     [--system-identity]
                                     [--target-id]
                                     [--target-resource-group]
                                     [--user-identity]
                                     [--vault-id]
                                     [--yes]

範例

以互動方式建立 webapp 與 postgres 之間的連線

az webapp connection create postgres

使用資源名稱建立 webapp 與 postgres 之間的連線

az webapp connection create postgres -g WebAppRG -n MyWebApp --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 postgres 之間的連線

az webapp connection create postgres --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforPostgreSQL/servers/{server}/databases/{database} --secret name=XX secret=XX

建立新的 postgres,並以互動方式將 webapp 連線至它

az webapp connection create postgres --new

建立新的 postgres 並將 webapp 連線至其中

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

選擇性參數

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

postgres 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--new

指出建立 Webapp 連線時是否要建立新的 postgres。

接受的值: false, true
預設值: False
--no-wait

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

預設值: False
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

postgres 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 postgres 服務的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create postgres-flexible

建立與 postgres-flexible 的 Webapp 連線。

az webapp connection create postgres-flexible [--appconfig-id]
                                              [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                              [--config-connstr {false, true}]
                                              [--connection]
                                              [--customized-keys]
                                              [--database]
                                              [--name]
                                              [--no-wait]
                                              [--opt-out {auth, configinfo, publicnetwork}]
                                              [--resource-group]
                                              [--secret]
                                              [--server]
                                              [--service-principal]
                                              [--slot]
                                              [--source-id]
                                              [--system-identity]
                                              [--target-id]
                                              [--target-resource-group]
                                              [--user-identity]
                                              [--vault-id]

範例

以互動方式建立 webapp 與 postgres 彈性之間的連線

az webapp connection create postgres-flexible

使用資源名稱建立 webapp 與 postgres 彈性之間的連線

az webapp connection create postgres-flexible -g WebAppRG -n MyWebApp --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源名稱建立 webapp 位置與 postgres 彈性之間的連線

az webapp connection create postgres-flexible -g WebAppRG -n MyWebApp --slot MySlot --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 postgres 彈性之間的連線

az webapp connection create postgres-flexible --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server}/databases/{database} --secret name=XX secret=XX

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

postgres 彈性資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

postgres 彈性伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含彈性 postgres 服務的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create postgres-flexible (serviceconnector-passwordless 擴充功能)

建立與 postgres-flexible 的 Webapp 連線。

az webapp connection create postgres-flexible [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                              [--config-connstr {false, true}]
                                              [--connection]
                                              [--customized-keys]
                                              [--database]
                                              [--name]
                                              [--no-wait]
                                              [--resource-group]
                                              [--secret]
                                              [--server]
                                              [--service-principal]
                                              [--slot]
                                              [--source-id]
                                              [--system-identity]
                                              [--target-id]
                                              [--target-resource-group]
                                              [--user-identity]
                                              [--vault-id]
                                              [--yes]

範例

以互動方式建立 webapp 與 postgres 彈性之間的連線

az webapp connection create postgres-flexible

使用資源名稱建立 webapp 與 postgres 彈性之間的連線

az webapp connection create postgres-flexible -g WebAppRG -n MyWebApp --tg PostgresRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 postgres 彈性之間的連線

az webapp connection create postgres-flexible --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server}/databases/{database} --secret name=XX secret=XX

選擇性參數

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

postgres 彈性資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

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

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

postgres 彈性伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含彈性 postgres 服務的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create redis

建立 Redis 的 Webapp 連線。

az webapp connection create redis [--appconfig-id]
                                  [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                  [--connection]
                                  [--customized-keys]
                                  [--database]
                                  [--name]
                                  [--no-wait]
                                  [--opt-out {auth, configinfo, publicnetwork}]
                                  [--private-endpoint {false, true}]
                                  [--resource-group]
                                  [--secret]
                                  [--server]
                                  [--slot]
                                  [--source-id]
                                  [--target-id]
                                  [--target-resource-group]
                                  [--vault-id]

範例

以互動方式建立 webapp 與 redis 之間的連線

az webapp connection create redis

使用資源名稱建立 webapp 與 redis 之間的連線

az webapp connection create redis -g WebAppRG -n MyWebApp --tg RedisRG --server MyServer --database MyDB --secret

使用資源名稱建立 webapp 位置與 redis 之間的連線

az webapp connection create redis -g WebAppRG -n MyWebApp --slot MySlot --tg RedisRG --server MyServer --database MyDB --secret

使用資源標識碼建立 webapp 與 redis 之間的連線

az webapp connection create redis --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Cache/redis/{server}/databases/{database} --secret

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

redis 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--server

redis 伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--slot

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

--source-id

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

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 redis 伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。

--vault-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 webapp connection create redis-enterprise

建立與 redis-enterprise 的 Webapp 連線。

az webapp connection create redis-enterprise [--appconfig-id]
                                             [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                             [--connection]
                                             [--customized-keys]
                                             [--database]
                                             [--name]
                                             [--no-wait]
                                             [--opt-out {auth, configinfo, publicnetwork}]
                                             [--resource-group]
                                             [--secret]
                                             [--server]
                                             [--slot]
                                             [--source-id]
                                             [--target-id]
                                             [--target-resource-group]
                                             [--vault-id]

範例

以互動方式建立 webapp 與 redis-enterprise 之間的連線

az webapp connection create redis-enterprise

使用資源名稱建立 webapp 與 redis-enterprise 之間的連線

az webapp connection create redis-enterprise -g WebAppRG -n MyWebApp --tg RedisRG --server MyServer --database MyDB --secret

使用資源名稱建立 webapp 位置與 redis-enterprise 之間的連線

az webapp connection create redis-enterprise -g WebAppRG -n MyWebApp --slot MySlot --tg RedisRG --server MyServer --database MyDB --secret

使用資源標識碼建立 webapp 與 redis-enterprise 之間的連線

az webapp connection create redis-enterprise --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Cache/redisEnterprise/{server}/databases/{database} --secret

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

redis 企業資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--server

redis 企業伺服器的名稱。 如果未指定 『--target-id』,則為必要專案。

--slot

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

--source-id

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

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 redis 伺服器的資源群組。 如果未指定 『--target-id』,則為必要專案。

--vault-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 webapp connection create servicebus

建立與 servicebus 的 Webapp 連線。

az webapp connection create servicebus [--appconfig-id]
                                       [--client-type {dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot}]
                                       [--connection]
                                       [--customized-keys]
                                       [--name]
                                       [--namespace]
                                       [--no-wait]
                                       [--opt-out {auth, configinfo, publicnetwork}]
                                       [--private-endpoint {false, true}]
                                       [--resource-group]
                                       [--secret]
                                       [--service-endpoint {false, true}]
                                       [--service-principal]
                                       [--slot]
                                       [--source-id]
                                       [--system-identity]
                                       [--target-id]
                                       [--target-resource-group]
                                       [--user-identity]
                                       [--vault-id]

範例

以互動方式建立 webapp 與 servicebus 之間的連線

az webapp connection create servicebus

使用資源名稱建立 webapp 與 servicebus 之間的連線

az webapp connection create servicebus -g WebAppRG -n MyWebApp --tg ServicebusRG --namespace MyNamespace --system-identity

使用資源名稱建立 webapp 位置與 servicebus 之間的連線

az webapp connection create servicebus -g WebAppRG -n MyWebApp --slot MySlot --tg ServicebusRG --namespace MyNamespace --system-identity

使用資源標識碼建立 webapp 與 servicebus 之間的連線

az webapp connection create servicebus --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.ServiceBus/namespaces/{namespace} --system-identity

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, go, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--namespace

servicebus 命名空間的名稱。 如果未指定 『--target-id』,則為必要專案。

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--namespace'] ,則為必要專案。

--target-resource-group --tg

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

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create signalr

建立與 signalr 的 Webapp 連線。

az webapp connection create signalr [--appconfig-id]
                                    [--client-type {dotnet, dotnet-internal, none}]
                                    [--connection]
                                    [--customized-keys]
                                    [--name]
                                    [--no-wait]
                                    [--opt-out {auth, configinfo, publicnetwork}]
                                    [--private-endpoint {false, true}]
                                    [--resource-group]
                                    [--secret]
                                    [--service-principal]
                                    [--signalr]
                                    [--slot]
                                    [--source-id]
                                    [--system-identity]
                                    [--target-id]
                                    [--target-resource-group]
                                    [--user-identity]
                                    [--vault-id]

範例

以互動方式建立 webapp 與 signalr 之間的連線

az webapp connection create signalr

使用資源名稱建立 webapp 與 signalr 之間的連線

az webapp connection create signalr -g WebAppRG -n MyWebApp --tg SignalrRG --signalr MySignalR --system-identity

使用資源名稱建立 webapp 位置與訊號之間的連線

az webapp connection create signalr -g WebAppRG -n MyWebApp --slot MySlot --tg SignalrRG --signalr MySignalR --system-identity

使用資源標識碼建立 webapp 與 signalr 之間的連線

az webapp connection create signalr --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.SignalRService/SignalR/{signalr} --system-identity

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, none
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--signalr

signalr 服務的名稱。 如果未指定 『--target-id』,則為必要專案。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--signalr'] ,則為必要專案。

--target-resource-group --tg

包含訊號器的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create sql

建立與 sql 的 Webapp 連線。

az webapp connection create sql [--appconfig-id]
                                [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                [--config-connstr {false, true}]
                                [--connection]
                                [--customized-keys]
                                [--database]
                                [--name]
                                [--no-wait]
                                [--opt-out {auth, configinfo, publicnetwork}]
                                [--private-endpoint {false, true}]
                                [--resource-group]
                                [--secret]
                                [--server]
                                [--service-endpoint {false, true}]
                                [--service-principal]
                                [--slot]
                                [--source-id]
                                [--system-identity]
                                [--target-id]
                                [--target-resource-group]
                                [--user-identity]
                                [--vault-id]

範例

以互動方式建立 webapp 與 sql 之間的連線

az webapp connection create sql

使用資源名稱建立 webapp 與 sql 之間的連線

az webapp connection create sql -g WebAppRG -n MyWebApp --tg SqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源名稱建立 webapp 位置與 sql 之間的連線

az webapp connection create sql -g WebAppRG -n MyWebApp --slot MySlot --tg SqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 sql 之間的連線

az webapp connection create sql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Sql/servers/{server}/databases/{database} --secret name=XX secret=XX

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

sql 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

sql Server 的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 sql Server 的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create sql (serviceconnector-passwordless 擴充功能)

建立與 sql 的 Webapp 連線。

az webapp connection create sql [--client-type {django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot}]
                                [--config-connstr {false, true}]
                                [--connection]
                                [--customized-keys]
                                [--database]
                                [--name]
                                [--no-wait]
                                [--private-endpoint {false, true}]
                                [--resource-group]
                                [--secret]
                                [--server]
                                [--service-endpoint {false, true}]
                                [--service-principal]
                                [--slot]
                                [--source-id]
                                [--system-identity]
                                [--target-id]
                                [--target-resource-group]
                                [--user-identity]
                                [--vault-id]
                                [--yes]

範例

以互動方式建立 webapp 與 sql 之間的連線

az webapp connection create sql

使用資源名稱建立 webapp 與 sql 之間的連線

az webapp connection create sql -g WebAppRG -n MyWebApp --tg SqlRG --server MyServer --database MyDB --secret name=XX secret=XX

使用資源標識碼建立 webapp 與 sql 之間的連線

az webapp connection create sql --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Sql/servers/{server}/databases/{database} --secret name=XX secret=XX

選擇性參數

--client-type

Webapp 上使用的客戶端類型。

接受的值: django, dotnet, dotnet-internal, go, java, nodejs, none, php, python, ruby, springBoot
--config-connstr
預覽

將組態儲存到 連接字串 中,只能與 dotnet client_type搭配使用。

接受的值: false, true
預設值: False
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--database

sql 資料庫的名稱。 如果未指定 『--target-id』,則為必要專案。

--name -n

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

--no-wait

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

預設值: False
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用量:--secret name=XX secret=XX --secret name=XX secret-uri=XX --secret name=XX secret-name=XX

name :必要專案。 秘密驗證的使用者名稱或帳戶名稱。秘密:需要其中一個 <秘密、secret-uri、secret-name> 。 秘密驗證的密碼或帳戶密鑰。secret-uri :需要其中一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密 URI。 secret-name:需要一個 <秘密、secret-uri、secret-name> 。 儲存密碼的 Keyvault 秘密名稱。 僅適用於 AKS。

--server

sql Server 的名稱。 如果未指定 『--target-id』,則為必要專案。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group'、'--server'、'--database'] ,則為必要專案。

--target-resource-group --tg

包含 sql Server 的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create storage-blob

建立與 storage-blob 的 Webapp 連線。

az webapp connection create storage-blob [--account]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--name]
                                         [--new {false, true}]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service-endpoint {false, true}]
                                         [--service-principal]
                                         [--slot]
                                         [--source-id]
                                         [--system-identity]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--user-identity]
                                         [--vault-id]

範例

以互動方式建立 Webapp 與 storage-blob 之間的連線

az webapp connection create storage-blob

使用資源名稱建立 webapp 與 storage-blob 之間的連線

az webapp connection create storage-blob -g WebAppRG -n MyWebApp --tg StorageRG --account MyAccount --system-identity

使用資源名稱建立 webapp 位置與記憶體 Blob 之間的連線

az webapp connection create storage-blob -g WebAppRG -n MyWebApp --slot MySlot --tg StorageRG --account MyAccount --system-identity

使用資源標識碼建立 webapp 與 storage-blob 之間的連線

az webapp connection create storage-blob --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/blobServices/default --system-identity

建立新的 storage-blob,並以互動方式將 webapp 連線至它

az webapp connection create storage-blob --new

建立新的 storage-blob 並將 webapp 連線至它

az webapp connection create storage-blob --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --new

選擇性參數

--account

儲存體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--new

指出在建立 Webapp 連線時,是否要建立新的 storage-blob。

接受的值: false, true
預設值: False
--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

依私人端點 連線 目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。

--target-resource-group --tg

包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create storage-file

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

az webapp connection create storage-file [--account]
                                         [--appconfig-id]
                                         [--client-type {dotnet, dotnet-internal, java, nodejs, none, php, python, ruby, springBoot}]
                                         [--connection]
                                         [--customized-keys]
                                         [--name]
                                         [--no-wait]
                                         [--opt-out {auth, configinfo, publicnetwork}]
                                         [--private-endpoint {false, true}]
                                         [--resource-group]
                                         [--secret]
                                         [--service-endpoint {false, true}]
                                         [--slot]
                                         [--source-id]
                                         [--target-id]
                                         [--target-resource-group]
                                         [--vault-id]

範例

以互動方式建立 webapp 與記憶體檔案之間的連線

az webapp connection create storage-file

使用資源名稱建立 webapp 與記憶體檔案之間的連線

az webapp connection create storage-file -g WebAppRG -n MyWebApp --tg StorageRG --account MyAccount --secret

使用資源名稱建立 webapp 位置與記憶體檔案之間的連線

az webapp connection create storage-file -g WebAppRG -n MyWebApp --slot MySlot --tg StorageRG --account MyAccount --secret

使用資源標識碼建立 webapp 與記憶體檔案之間的連線

az webapp connection create storage-file --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/fileServices/default --secret

選擇性參數

--account

儲存體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, php, python, ruby, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--slot

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

--source-id

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

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。

--target-resource-group --tg

包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--vault-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 webapp connection create storage-queue

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

az webapp connection create storage-queue [--account]
                                          [--appconfig-id]
                                          [--client-type {dotnet, dotnet-internal, java, nodejs, none, python, springBoot}]
                                          [--connection]
                                          [--customized-keys]
                                          [--name]
                                          [--no-wait]
                                          [--opt-out {auth, configinfo, publicnetwork}]
                                          [--private-endpoint {false, true}]
                                          [--resource-group]
                                          [--secret]
                                          [--service-endpoint {false, true}]
                                          [--service-principal]
                                          [--slot]
                                          [--source-id]
                                          [--system-identity]
                                          [--target-id]
                                          [--target-resource-group]
                                          [--user-identity]
                                          [--vault-id]

範例

以互動方式建立 webapp 與記憶體佇列之間的連線

az webapp connection create storage-queue

使用資源名稱建立 webapp 與記憶體佇列之間的連線

az webapp connection create storage-queue -g WebAppRG -n MyWebApp --tg StorageRG --account MyAccount --system-identity

使用資源名稱建立 Webapp 位置與記憶體佇列之間的連線

az webapp connection create storage-queue -g WebAppRG -n MyWebApp --slot MySlot --tg StorageRG --account MyAccount --system-identity

使用資源標識碼建立 webapp 與記憶體佇列之間的連線

az webapp connection create storage-queue --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/queueServices/default --system-identity

選擇性參數

--account

儲存體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python, springBoot
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。

--target-resource-group --tg

包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create storage-table

建立與 storage-table 的 Webapp 連線。

az webapp connection create storage-table [--account]
                                          [--appconfig-id]
                                          [--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
                                          [--connection]
                                          [--customized-keys]
                                          [--name]
                                          [--no-wait]
                                          [--opt-out {auth, configinfo, publicnetwork}]
                                          [--private-endpoint {false, true}]
                                          [--resource-group]
                                          [--secret]
                                          [--service-endpoint {false, true}]
                                          [--service-principal]
                                          [--slot]
                                          [--source-id]
                                          [--system-identity]
                                          [--target-id]
                                          [--target-resource-group]
                                          [--user-identity]
                                          [--vault-id]

範例

以互動方式建立 Webapp 與記憶體數據表之間的連線

az webapp connection create storage-table

使用資源名稱建立 webapp 與 storage-table 之間的連線

az webapp connection create storage-table -g WebAppRG -n MyWebApp --tg StorageRG --account MyAccount --system-identity

使用資源名稱建立 webapp 位置與記憶體數據表之間的連線

az webapp connection create storage-table -g WebAppRG -n MyWebApp --slot MySlot --tg StorageRG --account MyAccount --system-identity

使用資源標識碼建立 webapp 與 storage-table 之間的連線

az webapp connection create storage-table --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.Storage/storageAccounts/{account}/tableServices/default --system-identity

選擇性參數

--account

儲存體帳戶的名稱。 如果未指定 『--target-id』,則為必要專案。

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-endpoint

依服務端點 連線 目標服務。 來源資源必須位於 VNet 中,目標 SKU 必須支援服務端點功能。

接受的值: false, true
--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group', '--account'] ,則為必要專案。

--target-resource-group --tg

包含記憶體帳戶的資源群組。 如果未指定 『--target-id』,則為必要專案。

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-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 webapp connection create webpubsub

建立 Webapp 連線至 webpubsub。

az webapp connection create webpubsub [--appconfig-id]
                                      [--client-type {dotnet, dotnet-internal, java, nodejs, none, python}]
                                      [--connection]
                                      [--customized-keys]
                                      [--name]
                                      [--no-wait]
                                      [--opt-out {auth, configinfo, publicnetwork}]
                                      [--private-endpoint {false, true}]
                                      [--resource-group]
                                      [--secret]
                                      [--service-principal]
                                      [--slot]
                                      [--source-id]
                                      [--system-identity]
                                      [--target-id]
                                      [--target-resource-group]
                                      [--user-identity]
                                      [--vault-id]
                                      [--webpubsub]

範例

以互動方式建立 webapp 與 webpubsub 之間的連線

az webapp connection create webpubsub

使用資源名稱建立 webapp 與 webpubsub 之間的連線

az webapp connection create webpubsub -g WebAppRG -n MyWebApp --tg WebpubsubRG --webpubsub MyWebPubSub --system-identity

使用資源名稱建立 webapp 位置與 webpubsub 之間的連線

az webapp connection create webpubsub -g WebAppRG -n MyWebApp --slot MySlot --tg WebpubsubRG --webpubsub MyWebPubSub --system-identity

使用資源標識碼建立 webapp 與 webpubsub 之間的連線

az webapp connection create webpubsub --source-id /subscriptions/{subscription}/resourceGroups/{source_resource_group}/providers/Microsoft.Web/sites/{site} --target-id /subscriptions/{subscription}/resourceGroups/{target_resource_group}/providers/Microsoft.SignalRService/WebPubSub/{webpubsub} --system-identity

選擇性參數

--appconfig-id

要儲存組態的應用程式組態標識碼。

--client-type

Webapp 上使用的客戶端類型。

接受的值: dotnet, dotnet-internal, java, nodejs, none, python
--connection

Webapp 連線的名稱。

--customized-keys

用來變更預設組態名稱的自定義金鑰。 索引鍵是原始名稱,值為自定義名稱。

--name -n

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

--no-wait

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

預設值: False
--opt-out

是否停用某些設定步驟。 使用 configinfo 來解除來源上的組態信息變更。 使用 publicnetwork 來停用公用網路存取設定。使用驗證略過驗證設定,例如啟用受控識別和授與 RBAC 角色。

接受的值: auth, configinfo, publicnetwork
--private-endpoint

連線 私人端點的目標服務。 來源虛擬網路中的私人端點必須事先建立。

接受的值: false, true
--resource-group -g

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

--secret

秘密驗證資訊。

使用方式:--secret。

--service-principal

服務主體驗證資訊。

使用量:--service-principal client-id=XX secret=XX

client-id :必要專案。 服務主體的用戶端標識碼。 object-id :選擇性。 服務主體的物件標識碼(企業應用程式)。 secret :必要專案。 服務主體的秘密。

--slot

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

--source-id

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

--system-identity

系統指派的身分識別驗證資訊。

使用方式:--system-identity。

--target-id

目標服務的資源標識碼。 如果未指定 ['--target-resource-group','--webpubsub'],則為必要專案。

--target-resource-group --tg

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

--user-identity

使用者指派的身分識別驗證資訊。

使用量:--user-identity client-id=XX subs-id=XX

client-id :必要專案。 使用者指派身分識別的用戶端標識碼。 subs-id :必要。 使用者指派身分識別的訂用帳戶標識碼。

--vault-id

要儲存秘密值的金鑰保存庫識別碼。

--webpubsub

Webpubsub 服務的名稱。 如果未指定 『--target-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 來取得完整偵錯記錄。