az cosmosdb softdeleted-account
Note
This reference is part of the cosmosdb-preview extension for the Azure CLI (version 2.17.1 or higher). The extension will automatically install the first time you run an az cosmosdb softdeleted-account command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage soft-deleted Azure Cosmos DB accounts.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az cosmosdb softdeleted-account delete |
Permanently delete a soft-deleted Azure Cosmos DB account. |
Extension | Preview |
| az cosmosdb softdeleted-account list |
List soft-deleted Azure Cosmos DB accounts. |
Extension | Preview |
| az cosmosdb softdeleted-account recover |
Recover a soft-deleted Azure Cosmos DB account. |
Extension | Preview |
| az cosmosdb softdeleted-account show |
Show details of a soft-deleted Azure Cosmos DB account. |
Extension | Preview |
az cosmosdb softdeleted-account delete
Command group 'cosmosdb softdeleted-account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Permanently delete a soft-deleted Azure Cosmos DB account.
az cosmosdb softdeleted-account delete --location
--resource-group
[--acquire-policy-token]
[--change-reference]
[--ids]
[--name]
[--subscription]
[--yes]
Examples
Permanently delete a soft-deleted Azure Cosmos DB account.
az cosmosdb softdeleted-account delete --location westus --name MyAccount --resource-group MyResourceGroup
Required Parameters
Location of the soft-deleted account.
Name of the resource group.
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 |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of the soft-deleted Cosmos DB account to purge.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
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.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az cosmosdb softdeleted-account list
Command group 'cosmosdb softdeleted-account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List soft-deleted Azure Cosmos DB accounts.
az cosmosdb softdeleted-account list --location
[--resource-group]
Examples
List soft-deleted Azure Cosmos DB accounts in a specific location.
az cosmosdb softdeleted-account list --location westus
Required Parameters
Location of the soft-deleted accounts.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of the resource group. If provided, lists only soft-deleted accounts in that resource group.
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 cosmosdb softdeleted-account recover
Command group 'cosmosdb softdeleted-account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Recover a soft-deleted Azure Cosmos DB account.
az cosmosdb softdeleted-account recover --location
--resource-group
[--acquire-policy-token]
[--change-reference]
[--ids]
[--name]
[--subscription]
Examples
Recover a soft-deleted Azure Cosmos DB account.
az cosmosdb softdeleted-account recover --location westus --name MyAccount --resource-group MyResourceGroup
Required Parameters
Location of the soft-deleted account.
Name of the resource group.
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 |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of the soft-deleted Cosmos DB account to recover.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id 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.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az cosmosdb softdeleted-account show
Command group 'cosmosdb softdeleted-account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show details of a soft-deleted Azure Cosmos DB account.
az cosmosdb softdeleted-account show --location
--resource-group
[--ids]
[--name]
[--subscription]
Examples
Show details of a soft-deleted Azure Cosmos DB account.
az cosmosdb softdeleted-account show --location westus --name MyAccount --resource-group MyResourceGroup
Required Parameters
Location of the soft-deleted account.
Name of the resource group.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of the soft-deleted Cosmos DB account.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id 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.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |