Share via


az security atp storage

View and manage Advanced Threat Protection settings for storage accounts.

Commands

Name Description Type Status
az security atp storage show

Display Advanced Threat Protection settings for a storage account.

Core GA
az security atp storage update

Toggle status of Advanced Threat Protection for a storage account.

Core GA

az security atp storage show

Display Advanced Threat Protection settings for a storage account.

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

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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

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

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 or Cosmos DB 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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.