Azure / Azure/bicep-types-az

Cannot update continuous backup mode and other properties at the same time when run bicep on area with an existing Cosmos database.

Open
#1,940 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

No RP Github RP: Microsoft.DocumentDB
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

Describe the bug
Cannot update continuous backup mode and other properties at the same time. When running bicep in an area with an existing Cosmos database.

To Reproduce
Run pipeline

Additional context

resource poiCosmosAccount 'Microsoft.DocumentDB/databaseAccounts@2023-04-15' = {
  name: toLower(cosmosName)
  kind: 'GlobalDocumentDB'
  location: location
  tags: defaultTags
  properties: {
    databaseAccountOfferType: 'Standard'
    locations: [ { locationName: location, failoverPriority: 0 } ]
    ipRules: ipRules
    backupPolicy: { 
        type: 'Continuous'
        continuousModeProperties: { tier: 'Continuous7Days' }
    }
  }
}

Is there any way to fix this? As you can see I'm using the latest version: 2023-04-15

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the reported pipeline against an area with an existing Cosmos database using the Microsoft.DocumentDB/databaseAccounts@2023-04-15 declaration. Then locate the relevant type definition or validation entry point and verify that continuous backup mode and other properties can be updated together. No repository file or test is named, so locating the affected definition is part of the work.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.