az cosmosdb sql softdeleted-database
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 sql softdeleted-database 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 databases for Azure Cosmos DB SQL API.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az cosmosdb sql softdeleted-database delete |
Permanently delete a soft-deleted database. |
Extension | Preview |
| az cosmosdb sql softdeleted-database list |
List all soft-deleted databases for an Azure Cosmos DB account. |
Extension | Preview |
| az cosmosdb sql softdeleted-database recover |
Recover a soft-deleted database. |
Extension | Preview |
| az cosmosdb sql softdeleted-database show |
Show details of a soft-deleted database. |
Extension | Preview |
az cosmosdb sql softdeleted-database delete
Command group 'cosmosdb sql softdeleted-database' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Permanently delete a soft-deleted database.
az cosmosdb sql softdeleted-database delete --location
--name
--resource-group
[--account-name]
[--acquire-policy-token]
[--change-reference]
[--ids]
[--subscription]
[--yes]
Examples
Permanently delete a soft-deleted database.
az cosmosdb sql softdeleted-database delete --location westus --account-name MyAccount --name MyDatabase --resource-group MyResourceGroup
Required Parameters
Location of the account.
Name of the soft-deleted database to purge.
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.
Name of the Cosmos DB account.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 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 sql softdeleted-database list
Command group 'cosmosdb sql softdeleted-database' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all soft-deleted databases for an Azure Cosmos DB account.
az cosmosdb sql softdeleted-database list --location
--resource-group
[--account-name]
[--ids]
[--subscription]
Examples
List all soft-deleted databases for an Azure Cosmos DB account.
az cosmosdb sql softdeleted-database list --location westus --account-name MyAccount --resource-group MyResourceGroup
Required Parameters
Location of the 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.
Name of the Cosmos DB account.
| Property | Value |
|---|---|
| Parameter group: | Resource Id 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 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 sql softdeleted-database recover
Command group 'cosmosdb sql softdeleted-database' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Recover a soft-deleted database.
az cosmosdb sql softdeleted-database recover --location
--name
--resource-group
[--account-name]
[--acquire-policy-token]
[--change-reference]
[--ids]
[--subscription]
Examples
Recover a soft-deleted database.
az cosmosdb sql softdeleted-database recover --location westus --account-name MyAccount --name MyDatabase --resource-group MyResourceGroup
Required Parameters
Location of the account.
Name of the soft-deleted database to recover.
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.
Name of the Cosmos DB account.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
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 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 sql softdeleted-database show
Command group 'cosmosdb sql softdeleted-database' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show details of a soft-deleted database.
az cosmosdb sql softdeleted-database show --location
--name
--resource-group
[--account-name]
[--ids]
[--subscription]
Examples
Show details of a soft-deleted database.
az cosmosdb sql softdeleted-database show --location westus --account-name MyAccount --name MyDatabase --resource-group MyResourceGroup
Required Parameters
Location of the account.
Name of the soft-deleted database.
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.
Name of the Cosmos DB account.
| Property | Value |
|---|---|
| Parameter group: | Resource Id 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 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 |