az storage account file-service-properties

Manage the properties of file service in storage account.

Commands

az storage account file-service-properties show

Show the properties of file service in storage account.

az storage account file-service-properties update

Update the properties of file service in storage account.

az storage account file-service-properties show

Show the properties of file service in storage account.

Show the properties of file service in storage account.

az storage account file-service-properties show --account-name
                                                [--query-examples]
                                                [--resource-group]
                                                [--subscription]

Examples

Show the properties of file service in storage account.

az storage account file-service-properties show -n mystorageaccount -g MyResourceGroup

Required Parameters

--account-name -n

The storage account 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.

--resource-group -g

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

--subscription

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

az storage account file-service-properties update

Update the properties of file service in storage account.

Update the properties of file service in storage account.

az storage account file-service-properties update --account-name
                                                  [--delete-retention-days]
                                                  [--enable-delete-retention {false, true}]
                                                  [--resource-group]
                                                  [--subscription]

Examples

Enable soft delete policy and set delete retention days to 100 for file service in storage account.

az storage account file-service-properties update --enable-delete-retention true --delete-retention-days 100 -n mystorageaccount -g MyResourceGroup

Disable soft delete policy for file service.

az storage account file-service-properties update --enable-delete-retention false -n mystorageaccount -g MyResourceGroup

Required Parameters

--account-name -n

The storage account name.

Optional Parameters

--delete-retention-days

Indicate the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.

--enable-delete-retention

Enable file service properties for share soft delete.

accepted values: false, true
--resource-group -g

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

--subscription

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