Databases Cosmos DB top-250-pre130-priority-upgraded launch-ready field-manual-complete

Periodic backup

Periodic backup is the scheduled backup option for Azure Cosmos DB. Instead of keeping every change point, Cosmos DB takes backups at intervals, keeps them for a retention window, and can restore data into a new account when needed. The account’s backup policy controls the interval and retention period. It is simpler than continuous backup, but recovery choices are less granular. Teams use it when they need basic protection, predictable settings, and a restore path for accidental deletion, corruption, or operational mistakes.

Aliases
Cosmos DB periodic backup, periodic backup mode, scheduled Cosmos DB backup, backup interval, backup retention period, Azure Cosmos DB periodic backup, periodic backup policy
Difficulty
intermediate
CLI mappings
4
Last verified
2026-06-03

Microsoft Learn

Periodic backup is an Azure Cosmos DB backup mode that automatically stores account data on a configured interval and keeps backups for a configured retention period. Restores are performed into a new account, and backup settings such as interval, retention, and storage redundancy are managed at the account level.

Microsoft Learn: Periodic backup and restore in Azure Cosmos DB2026-06-03

Technical context

In Azure architecture, periodic backup is a Cosmos DB account-level data-protection setting. It applies across supported APIs and interacts with regions, write region, backup interval, retention, backup storage redundancy, restore requests, account configuration, and operational support workflows. The restore process creates a separate account rather than overwriting the existing one, so networking, keys, identities, applications, and data validation must be planned after restore. It is part of continuity design, alongside point-in-time restore choices, soft delete patterns, change feed consumers, and application-level recovery procedures.

Why it matters

Periodic backup matters because data protection is only useful when restore behavior matches the business recovery need. Many teams assume backup means they can recover any exact moment, but periodic mode gives scheduled restore points inside the retention window. That may be acceptable for development, internal systems, and workloads with application-level replay, but not for every production database. Operators must know the account’s backup mode before an incident, because switching to continuous backup can be a one-way strategic choice. Clear periodic backup settings reduce panic during deletes, migrations, bad imports, and data corruption events. Restore rehearsal proves whether the policy is meaningful before an emergency.

Where you see it

Signals, screens, and Azure surfaces where this term usually becomes operational.

Signal 01

In the Cosmos DB Backup & Restore blade, backup mode, interval, retention period, and restore options appear for the selected account during restore-readiness reviews and recovery planning workshops.

Signal 02

In ARM, Bicep, or CLI output, the backupPolicy object records periodic mode settings, including interval, retention, and storage redundancy fields during service tickets, restore drills, and compliance evidence reviews.

Signal 03

In incident runbooks, operators identify the data-loss time, confirm retention coverage, request restore, and validate the newly created account before cutover during backup-policy audits and temporary restore-account cleanup.

When this becomes relevant

Specific situations where this term helps solve real Azure design, operations, migration, security, reliability, cost, or governance problems.

  • Review backup interval, retention, and restore expectations before production data changes.
  • Rehearse Cosmos DB account restore into a non-production target account.
  • Confirm whether periodic mode satisfies workload recovery point and restore objectives.
  • Document who can request restores, validate restored data, and remove temporary accounts.
  • Compare periodic backup with continuous backup before high-risk workloads launch.

Real-world case studies

Different enterprise-style examples that show the term being used to hit measurable objectives.

Case study 01

Menu catalog restore rehearsal

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

ForkStreet stored restaurant menus, availability, and regional pricing in Cosmos DB. A monthly bulk import could overwrite thousands of items if a partner feed sent malformed data.

Business/Technical Objectives
  • Confirm periodic backup retention covered the 24-hour import risk window.
  • Rehearse restore into a new account before the next partner feed rollout.
  • Validate restored menu data without exposing it publicly.
  • Reduce recovery decision time during catalog incidents by at least 50 percent.
Solution Using Periodic backup

The data team reviewed the Cosmos DB account backupPolicy with Azure CLI and raised periodic backup retention for the import week. They documented the write region, private endpoint requirements, account keys, and validation queries. A restore rehearsal created a new account in the expected region, locked it behind approved network rules, and compared menu item counts, restaurant IDs, and recent updates. Application owners practiced switching a staging service to the restored account, while production traffic stayed on the original database.

Results & Business Impact
  • Recovery decision time fell from 90 minutes to 32 minutes because restore steps and validation queries were rehearsed.
  • The next malformed partner feed was contained without public menu errors or uncontrolled database edits.
  • Temporary restored accounts were deleted within 48 hours, preventing lingering test costs.
  • Operations documented that periodic mode met the catalog workload’s approved RPO for import incidents.
Key Takeaway for Glossary Readers

Periodic backup is stronger when teams rehearse the new-account restore path before a bad import makes it urgent.

Case study 02

Sensor archive retention tuning

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

FieldScope Analytics collected soil moisture and pump telemetry in Cosmos DB for farming cooperatives. During planting season, technicians ran bulk cleanup jobs that risked deleting recent sensor readings.

Business/Technical Objectives
  • Increase backup coverage during the eight-week planting season.
  • Keep backup storage redundancy aligned with cooperative data-retention commitments.
  • Provide a restore path that did not interrupt live telemetry ingestion.
  • Limit seasonal backup-related spend to the approved operations budget.
Solution Using Periodic backup

Operators used Azure CLI to inventory Cosmos DB backupPolicy settings across regional accounts and identified two accounts with short retention. They updated periodic backup retention for the season, documented redundancy choices, and added Azure Policy evidence for account-level settings. The restore runbook required a new account, private connectivity, read-only validation notebooks, and cleanup tags. Live ingestion continued on the original account while analysts compared restored readings against Event Hubs replay checkpoints.

Results & Business Impact
  • All production accounts met the planting-season retention target before cleanup jobs began.
  • The team avoided stopping live telemetry because validation used restored accounts and replay checkpoints.
  • Backup-related spend stayed 9 percent under budget after temporary accounts were tagged and deleted on schedule.
  • Support response for accidental sensor deletions improved because operators knew the available restore window.
Key Takeaway for Glossary Readers

Periodic backup can fit seasonal risk when retention, redundancy, restore validation, and cleanup are all planned together.

Case study 03

Assessment data recovery review

Scenario, objectives, solution, measured impact, and takeaway.

Scenario

BrightExam delivered practice assessments for professional certification courses using Cosmos DB for answers and scoring metadata. The workload needed recoverability, but exact second-by-second rollback was not required.

Business/Technical Objectives
  • Determine whether periodic backup met the product’s recovery point objective.
  • Create audit evidence for backup mode, interval, retention, and restore workflow.
  • Avoid unnecessary continuous-backup migration for a moderate-risk workload.
  • Prove restored data could be validated before returning it to users.
Solution Using Periodic backup

The architecture team compared incident scenarios with the configured periodic backup policy and selected an interval that matched the approved RPO. Azure CLI captured the backupPolicy object, account location, tags, and resource ID for audit files. A quarterly exercise restored data to a new Cosmos DB account, applied private networking, and compared assessment counts, answer timestamps, and scoring summaries. Product managers signed off that users could tolerate the scheduled recovery point for practice tests, while high-stakes exam data stayed on a separate architecture.

Results & Business Impact
  • The provider avoided a 22 percent projected cost increase for this moderate-risk workload.
  • Quarterly restore exercises proved data validation could complete in under two hours.
  • Audit reviewers accepted JSON evidence showing backup mode, retention, and restore rehearsal dates.
  • High-stakes records remained isolated on a stricter recovery design, reducing mixed-risk assumptions.
Key Takeaway for Glossary Readers

Periodic backup is a practical choice when recovery objectives, workload risk, and restore evidence are honestly matched.

Why use Azure CLI for this?

Azure CLI is useful for periodic backup because the setting is account-level and easy to miss in portal-only reviews. CLI output can capture backupPolicy mode, interval, retention, storage redundancy, region, and account identity for audits, incident preparation, and policy drift checks.

CLI use cases

  • Show a Cosmos DB account backup policy and confirm whether periodic mode is configured.
  • Create or update a test account with explicit periodic backup interval and retention settings.
  • Inventory backup policies across resource groups to find accounts with weak retention coverage.
  • Export account metadata before a restore request or continuity review.

Before you run CLI

  • Confirm tenant, subscription, resource group, account name, API type, write region, and permissions before changing backup settings.
  • Review cost risk, retention requirements, storage redundancy, compliance needs, and one-way migration choices before policy changes.
  • Check whether commands affect production accounts and use output formats that preserve backupPolicy details for review.
  • Coordinate with application owners because restoring to a new account requires networking, keys, identity, and cutover planning.

What output tells you

  • backupPolicy.type confirms whether the account uses periodic mode or another backup strategy.
  • Interval, retention, and redundancy fields show the available restore window and durability posture.
  • Locations and write-region details help operators understand where backups and restored accounts are expected.
  • Provisioning state, tags, and resource ID identify the account owner and whether policy drift needs remediation.

Mapped Azure CLI commands

Cosmos DB periodic backup commands

direct
az cosmosdb show --name <account-name> --resource-group <resource-group> --query "backupPolicy" --output json
az cosmosdbdiscoverDatabases
az cosmosdb create --name <account-name> --resource-group <resource-group> --backup-policy-type Periodic --backup-interval 240 --backup-retention 8
az cosmosdbprovisionDatabases
az cosmosdb update --name <account-name> --resource-group <resource-group> --backup-interval 240 --backup-retention 24
az cosmosdbconfigureDatabases
az cosmosdb list --resource-group <resource-group> --query "[].{name:name,backup:backupPolicy.type,location:location}" --output table
az cosmosdbdiscoverDatabases

Architecture context

Periodic backup in Azure Cosmos DB architecture is an account-level recovery model that defines backup interval, retention, and backup storage redundancy. It sits behind the data plane, but it directly affects operational recovery because restores create a new account from selected backup snapshots rather than rewinding the existing container in place. Architects choose it when recovery needs are simpler than continuous backup, costs are sensitive, or point-in-time granularity is not required. The design decision belongs with region topology, consistency, multi-region writes, partition strategy, and restore runbooks. Operators should record retention expectations, supported APIs, restore permissions, and test evidence, because backup settings are easy to ignore until a bad delete, failed migration, or data corruption incident exposes the recovery gap.

Security

Security impact is direct around who can configure backup policy, request restores, and access restored accounts. Periodic backup does not replace Cosmos DB network rules, private endpoints, keys, managed identities, or role assignments. A restored account can expose sensitive data if it is created with weak network settings, broad keys, or missing governance tags. Operators should control restore permissions, document who can view backup settings, and protect evidence about restore targets. Backup storage redundancy can also affect compliance requirements. Restored data should be classified, encrypted, monitored, and cleaned up when validation ends. Restored accounts should use temporary access that expires after validation.

Cost

Cost impact is usually moderate but real. Default periodic backup settings may be included for many accounts, while longer retention, storage redundancy choices, restore operations, duplicate restored accounts, validation workloads, and data transfer can add cost. Restoring into a new account means teams may temporarily pay for both original and restored resources, plus private endpoints, diagnostics, and application testing. Choosing periodic mode may save cost compared with higher recovery granularity, but only if its recovery limits fit the workload. FinOps reviews should compare backup policy, account size, regions, retention, and cleanup discipline. Tag restored accounts so temporary recovery resources are deleted promptly.

Reliability

Reliability impact is direct because backup mode defines recovery options after data loss. Periodic backup can help recover from accidental deletes, bad writes, or failed migrations, but only to available restore points inside retention. The restore creates a new account, so reliable recovery requires tested runbooks for account creation, networking, key rotation, application reconnection, data comparison, and cutover. Multi-region accounts require understanding where backups are taken and where restore will land. Operators should rehearse restores, validate retention settings, and document RPO and RTO assumptions before incidents happen. Run restore drills so teams know the real elapsed recovery time and owner handoffs.

Performance

Performance impact is usually indirect because scheduled Cosmos DB backups are managed by the service rather than application code. The bigger performance concern appears during restore validation and recovery. Large accounts can take time to restore, and applications may experience degraded operational speed while teams compare data, reroute traffic, rebuild caches, or replay events. Backup settings do not fix hot partitions, inefficient queries, or RU shortages. Operators should measure restore duration, validation query cost, change-feed catch-up, and application response time after connecting to a restored account. Plan enough temporary capacity for validation without disrupting production workloads or recovery validation queries.

Operations

Operators inspect periodic backup through the Cosmos DB account Backup & Restore settings, ARM or Bicep policy, Azure CLI output, and incident runbooks. Routine tasks include checking backup mode, interval, retention period, redundancy, region, and restore request history. During incidents, teams gather the approximate failure time, confirm retention coverage, request or perform restore where supported, validate the new account, and decide how applications will read from recovered data. Change records should capture why periodic mode is sufficient or why migration to continuous backup is required for stricter recovery objectives. Keep restore request steps, validation owners, routing changes, and expected timelines in the recovery checklist.

Common mistakes

  • Assuming periodic backup can restore to any exact second like continuous point-in-time recovery.
  • Forgetting that restore creates a new account, requiring application reconnection and security review.
  • Leaving retention too short during risky imports, migrations, or bulk delete operations.
  • Restoring data for validation and forgetting to delete the temporary account and diagnostics resources.