Skip to main content

Remediation

If the Account is No Longer Needed​

Delete the account using the following commands:

Azure CLI​

az cosmosdb delete \
--name {{cosmosdb-account-name}} \
--resource-group {{resource-group-name}}

PowerShell​

Remove-AzCosmosDBAccount `
-ResourceGroupName "{{resource-group-name}}" `
-Name "{{cosmosdb-account-name}}"

If the Account Is Needed But Idle, Consider the Serverless Tier​

To get started with using the serverless model, you must create a new serverless account. Migrating an existing account to or from the serverless model currently isn't supported.