az security atp cosmosdb
View and manage Advanced Threat Protection settings for Cosmos DB accounts.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az security atp cosmosdb show |
Display Advanced Threat Protection settings for an Azure Cosmos DB account. |
Core | GA |
| az security atp cosmosdb update |
Toggle status of Advanced Threat Protection for an Azure Cosmos DB account. |
Core | GA |
az security atp cosmosdb show
Display Advanced Threat Protection settings for an Azure Cosmos DB account.
az security atp cosmosdb show --cosmosdb-account
--resource-group
Examples
Retrieve Advanced Threat Protection settings for an Azure Cosmos DB account on a subscription scope.
az security atp cosmosdb show --resource-group MyResourceGroup --cosmosdb-account MyCosmosDbAccount
Required Parameters
Name of an existing Cosmos DB account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az security atp cosmosdb update
Toggle status of Advanced Threat Protection for an Azure Cosmos DB account.
az security atp cosmosdb update --cosmosdb-account
--is-enabled {false, true}
--resource-group
[--acquire-policy-token]
[--change-reference]
Examples
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 true
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 false
Required Parameters
Name of an existing Cosmos DB account.
Enable or disable Advanced Threat Protection for a received storage or Cosmos DB account.
| Property | Value |
|---|---|
| Accepted values: | false, true |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |