CmdID / az / az cosmosdb
az cosmosdb restore
Create a new Azure Cosmos DB database account by restoring from an existing database account. Azure CLI reference
13 options Its page in the Azure CLI reference
Options
--account-name, -aName of the source Cosmos DB database account for the restore--assign-identityAssign system or user assigned identities separated by spaces.--databases-to-restoreAdd a database and its collection names to restore--default-identityThe primary identity to access key vault in CMK related features.--disable-local-authDisable key-based authentication on the Cosmos DB account--disable-ttl, -dEnable or disable restoring with ttl disabled.--gremlin-databases-to-restoreAdd a gremlin database and its graph names to restore--location, -lThis is the write region of the restored account.--public-network-access, -pSets public network access in server to either Enabled or Disabled.--restore-timestamp, -tThe timestamp to which the account has to be restored to.--source-backup-locationThis is the location of the source account where backups are located.--tables-to-restoreAdd table names to restore--target-database-account-name, -nName of the new target Cosmos DB database account after the restore