An Azure NoSQL database service for app development.
Welcome to Microsoft Q&A,
Hello Francisco, I hope you are doing well,
To restore your Azure Cosmos DB account cdaeuecpprdave2-1 with a new name within the same resource group, you can utilize the Azure CLI. The exact command depends on whether you need to restore the entire database account architecture or just a specific database inside the existing account.
Path 1: Restore the Entire Account with a New Name
To create a completely new Cosmos DB account containing your restored data, use the az cosmosdb restore command. You must specify a unique target name and your point-in-time restore timestamp (UTC format):
Bash
az cosmosdb restore \
--account-name cdaeuecpprdave2-1 \
--target-database-account-name <YourNewCosmosAccountName> \
--resource-group <YourResourceGroup> \
--location
Path 2: Restore a Specific Deleted Database Only
If you only need to restore a single SQL (Core) or MongoDB API database back into the existing cdaeuecpprdave2-1 live account without creating a new resource, use the specific API sub-commands:
For SQL (Core) API:
Bash
az cosmosdb sql database restore \
--account-name cdaeuecpprdave2-1 \
--resource-group <YourResourceGroup> \
--name <YourDatabaseName> \
--restore-timestamp 2026-06-10T16:00:00+0000
For MongoDB API:
Bash
az cosmosdb mongodb database restore \
--account-name cdaeuecpprdave2-1 \
--resource-group <YourResourceGroup> \
--name <YourDatabaseName> \
--restore-timestamp 2026-06-10T16:00:00+0000
Important Post-Restore Note: When restoring to a new account name, remember that control plane configurations, such as Virtual Network service endpoints/ACLs, firewall rules, multi-region routing, and custom roles. Do not carry over automatically and must be reconfigured manually on the newly created resource.
- https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-restore-in-account-continuous-backup?tabs=azure-portal&pivots=api-nosql
- https://learn.microsoft.com/en-us/cli/azure/cosmosdb/sql/restorable-database?view=azure-cli-latest
- https://learn.microsoft.com/en-us/azure/azure-sql/database/recovery-using-backups?view=azuresql&tabs=azure-portal (Restore from Backup)
😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!