az webapp config storage-account

管理 Web 應用程式的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

命令

名稱 Description 類型 狀態
az webapp config storage-account add

將 Azure 儲存體帳戶組態新增至 Web 應用程式。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

核心 GA
az webapp config storage-account delete

刪除 Web 應用程式的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

核心 GA
az webapp config storage-account list

取得 Web 應用程式的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

核心 GA
az webapp config storage-account update

更新 Web 應用程式上現有的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

核心 GA

az webapp config storage-account add

將 Azure 儲存體帳戶組態新增至 Web 應用程式。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

請注意,儲存體帳戶存取金鑰現在會在結果中修訂。 請使用 az webapp config storage-account list 命令來檢視金鑰。

az webapp config storage-account add --access-key
                                     --account-name
                                     --custom-id
                                     --share-name
                                     --storage-type {AzureBlob, AzureFiles}
                                     [--ids]
                                     [--mount-path]
                                     [--name]
                                     [--resource-group]
                                     [--slot]
                                     [--slot-setting]
                                     [--subscription]

範例

在名為 My儲存體Account 的儲存體帳戶中,新增名為 MyShare Azure 檔案儲存體檔案共用的連線。

az webapp config storage-account add -g MyResourceGroup -n MyUniqueApp \
  --custom-id CustomId \
  --storage-type AzureFiles \
  --account-name MyStorageAccount \
  --share-name MyShare \
  --access-key MyAccessKey \
  --mount-path /path/to/mount

必要參數

--access-key -k

儲存體帳戶存取金鑰。

--account-name -a

儲存體帳戶名稱。

--custom-id -i

在 Web 應用程式內設定的共用名稱稱。

--share-name --sn

儲存體帳戶中所指定之檔案共用的名稱。

--storage-type -t

儲存體類型。

接受的值: AzureBlob, AzureFiles

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--mount-path -m

Web 應用程式用來讀取寫入資料的路徑,例如:/share1 或 /share2。

--name -n

Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--slot -s

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

--slot-setting

透過位置設定,您可以決定讓 BYOS 組態黏附到位置,這表示當交換該位置時,儲存體帳戶會與該位置保持一起。

預設值: False
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_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 config storage-account delete

刪除 Web 應用程式的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

請注意,儲存體帳戶存取金鑰現在會在結果中修訂。 請使用 az webapp config storage-account list 命令來檢視金鑰。

az webapp config storage-account delete --custom-id
                                        [--ids]
                                        [--name]
                                        [--resource-group]
                                        [--slot]
                                        [--subscription]

範例

刪除 Web 應用程式的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)(自動產生)

az webapp config storage-account delete --custom-id CustomId --name MyWebApp --resource-group MyResourceGroup

必要參數

--custom-id -i

在 Web 應用程式內設定的共用名稱稱。

選擇性參數

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--name -n

Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--slot -s

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

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_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 config storage-account list

取得 Web 應用程式的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

az webapp config storage-account list --name
                                      --resource-group
                                      [--slot]

範例

取得 Web 應用程式的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)(自動產生)

az webapp config storage-account list --name MyWebApp --resource-group MyResourceGroup

必要參數

--name -n

Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--slot -s

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

全域參數
--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 config storage-account update

更新 Web 應用程式上現有的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)。

請注意,儲存體帳戶存取金鑰現在會在結果中修訂。 請使用 az webapp config storage-account list 命令來檢視金鑰。

az webapp config storage-account update --custom-id
                                        [--access-key]
                                        [--account-name]
                                        [--ids]
                                        [--mount-path]
                                        [--name]
                                        [--resource-group]
                                        [--share-name]
                                        [--slot]
                                        [--slot-setting]
                                        [--storage-type {AzureBlob, AzureFiles}]
                                        [--subscription]

範例

使用 ID MyId 更新連線至Azure 檔案儲存體檔案共用的掛接路徑。

az webapp config storage-account update -g MyResourceGroup -n MyUniqueApp \
  --custom-id CustomId \
  --mount-path /path/to/new/mount

更新 Web 應用程式上現有的 Azure 儲存體帳戶設定。 (僅限 Linux Web Apps 和 Windows 容器 Web Apps)(自動產生)

az webapp config storage-account update --access-key MyAccessKey --account-name MyAccount --custom-id CustomId --mount-path /path/to/new/mount --name MyUniqueApp --resource-group MyResourceGroup --share-name MyShare --storage-type AzureFiles

必要參數

--custom-id -i

在 Web 應用程式內設定的共用名稱稱。

選擇性參數

--access-key -k

儲存體帳戶存取金鑰。

--account-name -a

儲存體帳戶名稱。

--ids

一或多個資源識別碼 (以空格分隔)。 它應該是包含 「資源識別碼」引數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」引數。

--mount-path -m

Web 應用程式用來讀取寫入資料的路徑,例如:/share1 或 /share2。

--name -n

Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--share-name --sn

儲存體帳戶中所指定之檔案共用的名稱。

--slot -s

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

--slot-setting

透過位置設定,您可以決定讓 BYOS 組態黏附到位置,這表示當交換該位置時,儲存體帳戶會與該位置保持一起。

預設值: False
--storage-type -t

儲存體類型。

接受的值: AzureBlob, AzureFiles
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_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 來取得完整偵錯記錄。