CmdID

CmdID / az / az security / az security atp / az security atp cosmosdb

az security atp cosmosdb update

Toggle status of Advanced Threat Protection for an Azure Cosmos DB account. Azure CLI reference

2 examples 1 option Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Enable Advanced Threat Protection for an Azure Cosmos DB account on a subscription scope.

az security atp cosmosdb update --resource-group MyResourceGroup --cosmosdb-account MyCosmosDbAccount --is-enabled trueIdentify
--resource-groupName of resource group.
--cosmosdb-accountName of an existing Cosmos DB account.
--is-enabledEnable or disable Advanced Threat Protection for a received storage or Cosmos DB account.

Disable Advanced Threat Protection for an Azure Cosmos DB account on a subscription scope.

az security atp cosmosdb update --resource-group MyResourceGroup --cosmosdb-account MyCosmosDbAccount --is-enabled falseIdentify
--resource-groupName of resource group.
--cosmosdb-accountName of an existing Cosmos DB account.
--is-enabledEnable or disable Advanced Threat Protection for a received storage or Cosmos DB account.

Options

1 in the Azure CLI reference
--is-enabledEnable or disable Advanced Threat Protection for a received storage or Cosmos DB account.