az webapp config storage-account
管理 Web 應用程式的 Azure 記憶體帳戶設定。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az webapp config storage-account add |
將 Azure 記憶體帳戶組態新增至 Web 應用程式。 |
Core | GA |
az webapp config storage-account delete |
刪除 Web 應用程式的 Azure 記憶體帳戶設定。 |
Core | GA |
az webapp config storage-account list |
取得 Web 應用程式的 Azure 記憶體帳戶設定。 |
Core | GA |
az webapp config storage-account update |
更新 Web 應用程式上現有的 Azure 記憶體帳戶設定。 |
Core | GA |
az webapp config storage-account add
將 Azure 記憶體帳戶組態新增至 Web 應用程式。
請注意,記憶體帳戶存取金鑰現在會在結果中修訂。 請使用 az webapp config storage-account list
命令來檢視金鑰。
az webapp config storage-account add --access-key
--account-name
--custom-id
--share-name --sn
--storage-type {AzureBlob, AzureFiles}
[--ids]
[--mount-path]
[--name]
[--resource-group]
[--slot]
[--slot-setting]
[--subscription]
範例
在名為 MyStorageAccount 的記憶體帳戶中,新增名為 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
必要參數
儲存體帳戶存取金鑰。
儲存體帳戶名稱。
在 Web 應用程式內設定的共享名稱。
儲存體帳戶中所指定之檔案共享的名稱。
Storage type.
屬性 | 值 |
---|---|
接受的值: | AzureBlob, AzureFiles |
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 應用程式用來讀取寫入資料的路徑,例如:/share1 或 /share2。
Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>
。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
位置的名稱。 如果未指定,則預設為生產位置。
透過位置設定,您可以決定讓 BYOS 組態黏附到位置,這表示當交換該位置時,儲存器帳戶會與該位置保持一起。
屬性 | 值 |
---|---|
預設值: | False |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az webapp config storage-account delete
刪除 Web 應用程式的 Azure 記憶體帳戶設定。
請注意,記憶體帳戶存取金鑰現在會在結果中修訂。 請使用 az webapp config storage-account list
命令來檢視金鑰。
az webapp config storage-account delete --custom-id
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
範例
刪除 Web 應用程式的 Azure 記憶體帳戶設定。
az webapp config storage-account delete --custom-id CustomId --name MyWebApp --resource-group MyResourceGroup
必要參數
在 Web 應用程式內設定的共享名稱。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>
。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
位置的名稱。 如果未指定,則預設為生產位置。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az webapp config storage-account list
取得 Web 應用程式的 Azure 記憶體帳戶設定。
az webapp config storage-account list --name
--resource-group
[--slot]
範例
取得 Web 應用程式的 Azure 記憶體帳戶設定。
az webapp config storage-account list --name MyWebApp --resource-group MyResourceGroup
必要參數
Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>
。
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
位置的名稱。 如果未指定,則預設為生產位置。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az webapp config storage-account update
更新 Web 應用程式上現有的 Azure 記憶體帳戶設定。
請注意,記憶體帳戶存取金鑰現在會在結果中修訂。 請使用 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 --sn]
[--slot]
[--slot-setting]
[--storage-type {AzureBlob, AzureFiles}]
[--subscription]
範例
使用標識碼 MyId 更新 Azure 檔案共享連線的掛接路徑。
az webapp config storage-account update -g MyResourceGroup -n MyUniqueApp \
--custom-id CustomId \
--mount-path /path/to/new/mount
更新 Web 應用程式上現有的 Azure 記憶體帳戶設定。
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
必要參數
在 Web 應用程式內設定的共享名稱。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
儲存體帳戶存取金鑰。
儲存體帳戶名稱。
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 應用程式用來讀取寫入資料的路徑,例如:/share1 或 /share2。
Web 應用程式的名稱。 如果未指定,則會隨機產生名稱。 您可以使用 來設定預設值 az configure --defaults web=<name>
。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
儲存體帳戶中所指定之檔案共享的名稱。
位置的名稱。 如果未指定,則預設為生產位置。
透過位置設定,您可以決定讓 BYOS 組態黏附到位置,這表示當交換該位置時,儲存器帳戶會與該位置保持一起。
屬性 | 值 |
---|---|
預設值: | False |
Storage type.
屬性 | 值 |
---|---|
接受的值: | AzureBlob, AzureFiles |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
屬性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |