---
title: "Discussion on \"Cosmos DB - Configure Seven Day Continuous Backup Retention using Terraform\" | Hashnode"
description: "Discussion on \"Cosmos DB - Configure Seven Day Continuous Backup Retention using Terraform\". When you create a Cosmos DB instance in Azure with Terraform and set backup to Continuous, you might notice that in the current AzureRM provider (3.27.0), you cannot configure any additional settings. You can only specify Continuous, which will resul..."
url: "https://hashnode.com/posts/terraform-cosmosdb-7-day-continuous-backup/634d024af61540755275ba18"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cosmos DB - Configure Seven Day Continuous Backup Retention using Terraform](https://jamescook.dev/terraform-cosmosdb-7-day-continuous-backup?utm_source=hashnode&utm_medium=feed)

When you create a Cosmos DB instance in Azure with Terraform and set backup to Continuous, you might notice that in the current AzureRM provider (3.27.0), you cannot configure any additional settings. You can only specify Continuous, which will resul...

Oct 17, 2022 · 3 min read · jamescook.dev  
Updated Dec 9, 2022  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#terraform](https://hashnode.com/tag/terraform)
-   [#azure](https://hashnode.com/tag/azure)
-   [#microsoft](https://hashnode.com/tag/microsoft)
-   [#backup](https://hashnode.com/tag/backup)

## Written by

[James Cook](https://hashnode.com/@JamesCook)

@JamesCook · London, UK

  
[View profile](https://hashnode.com/@JamesCook)

Award-Winning Technology Executive Driving Platform, Risk & Scale

Executive technology leader responsible for platform reliability, cloud operations, security posture, and enterprise technology risk within an investor-backed fintech environment. I lead technology operations at the intersection of engineering execution, governance, and business outcomes — ensuring platforms are scalable, resilient, and trusted by investors, regulators, and clients. Currently VP of DevOps at InvestorFlow, where I focus on building board-ready technology operations, strengthening risk and resilience, and shaping long-term platform strategy to support growth and regulatory confidence.

## Responses 1

Markdown supported · ⌘↵ to post

[D N](https://hashnode.com/@Raj44)

[Jun 19, 2023](https://hashnode.com/posts/terraform-cosmosdb-7-day-continuous-backup/634d024af61540755275ba18/comment/648fa7cd6129350e2e11c9b4)

Thanks for this tip. Could you also share information on how a restore can be performed to either the same or new cosmos db NoSQL api account using terraform from a continuous backup?
