az security atp storage

View and manage Advanced Threat Protection settings for storage accounts.

Commands

az security atp storage show

Display Advanced Threat Protection settings for a storage account.

az security atp storage update

Toggle status of Advanced Threat Protection for a storage account.

az security atp storage show

Display Advanced Threat Protection settings for a storage account.

az security atp storage show --resource-group
                             --storage-account
                             [--query-examples]
                             [--subscription]

Examples

Retrieve Advanced Threat Protection settings for a storage account on a subscription scope.

az security atp storage show --resource-group MyResourceGroup --storage-account MyStorageAccount

Required Parameters

--resource-group -g

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

--storage-account

Name of an existing storage account.

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.

--subscription

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

az security atp storage update

Toggle status of Advanced Threat Protection for a storage account.

az security atp storage update --is-enabled {false, true}
                               --resource-group
                               --storage-account
                               [--subscription]

Examples

Enable Advanced Threat Protection for a storage account on a subscription scope.

az security atp storage update --resource-group MyResourceGroup --storage-account MyStorageAccount --is-enabled true

Disable Advanced Threat Protection for a storage account on a subscription scope.

az security atp storage update --resource-group MyResourceGroup --storage-account MyStorageAccount --is-enabled false

Required Parameters

--is-enabled

Enable or disable Advanced Threat Protection for a received storage account.

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

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

--storage-account

Name of an existing storage account.

Optional Parameters

--subscription

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