az webapp config storage-account

Manage a web app's Azure storage account configurations. (Linux Web Apps and Windows Containers Web Apps Only).

Commands

az webapp config storage-account add

Add an Azure storage account configuration to a web app. (Linux Web Apps and Windows Containers Web Apps Only).

az webapp config storage-account delete

Delete a web app's Azure storage account configuration. (Linux Web Apps and Windows Containers Web Apps Only).

az webapp config storage-account list

Get a web app's Azure storage account configurations. (Linux Web Apps and Windows Containers Web Apps Only).

az webapp config storage-account update

Update an existing Azure storage account configuration on a web app. (Linux Web Apps and Windows Containers Web Apps Only).

az webapp config storage-account add

Add an Azure storage account configuration to a web app. (Linux Web Apps and Windows Containers Web Apps Only).

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]

Examples

Add a connection to the Azure Files file share called MyShare in the storage account named MyStorageAccount.

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

Required Parameters

--access-key -k

Storage account access key.

--account-name -a

Storage account name.

--custom-id -i

Custom identifier.

--share-name --sn

Share name (Azure Files) or container name (Azure Blob Storage).

--storage-type -t

Storage type.

accepted values: AzureBlob, AzureFiles

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--mount-path -m

Path to mount storage volume within web app.

--name -n

Name of the web app. You can configure the default using az configure --defaults web=<name>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--slot -s

The name of the slot. Default to the productions slot if not specified.

--slot-setting

Slot setting.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az webapp config storage-account delete

Delete a web app's Azure storage account configuration. (Linux Web Apps and Windows Containers Web Apps Only).

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

Examples

Delete a web app's Azure storage account configuration. (Linux Web Apps and Windows Containers Web Apps Only) (autogenerated)

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

Required Parameters

--custom-id -i

Custom identifier.

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the web app. You can configure the default using az configure --defaults web=<name>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--slot -s

The name of the slot. Default to the productions slot if not specified.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az webapp config storage-account list

Get a web app's Azure storage account configurations. (Linux Web Apps and Windows Containers Web Apps Only).

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

Examples

Get a web app's Azure storage account configurations. (Linux Web Apps and Windows Containers Web Apps Only) (autogenerated)

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

Required Parameters

--name -n

Name of the web app. You can configure the default using az configure --defaults web=<name>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--slot -s

The name of the slot. Default to the productions slot if not specified.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az webapp config storage-account update

Update an existing Azure storage account configuration on a web app. (Linux Web Apps and Windows Containers Web Apps Only).

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]

Examples

Update the mount path for a connection to the Azure Files file share with the ID MyId.

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

Update an existing Azure storage account configuration on a web app. (Linux Web Apps and Windows Containers Web Apps Only) (autogenerated)

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

Required Parameters

--custom-id -i

Custom identifier.

Optional Parameters

--access-key -k

Storage account access key.

--account-name -a

Storage account name.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--mount-path -m

Path to mount storage volume within web app.

--name -n

Name of the web app. You can configure the default using az configure --defaults web=<name>.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--share-name --sn

Share name (Azure Files) or container name (Azure Blob Storage).

--slot -s

The name of the slot. Default to the productions slot if not specified.

--slot-setting

Slot setting.

--storage-type -t

Storage type.

accepted values: AzureBlob, AzureFiles
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.