Azure / Azure/arm-template-whatif

[BUG] Giving Quota Error for existing resource on redeploying in incremental mode.

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Triage :mag:
Dominant language
HTML
Stars
102
Forks
21
Avg merge
3h 35m
Merged PRs (30d)
1

Description

Describe the bug
In my subscription, Azure Digital Twins Count Limit is 10 and I have exhausted the limit. But when I deploy the bicep in incremental mode with same name as of one of the existing ADT instances, it gives me quota error.

I have encountered this issue multiple times in past for other resources as well.

Steps To Reproduce
resource digitalTwinsInstance 'Microsoft.DigitalTwins/digitalTwinsInstances@2023-01-31' = {
name: ''
location: ''
}

az deployment group what-if -g --template-file .\adt.bicep

Error:
InvalidTemplateDeployment - The template deployment 'adt' is not valid according to the validation procedure. The tracking id is ''. See inner errors for details.
LimitExceeded - Target - ''. Subscription '' has '10' instances in this region. Please visit https://aka.ms/dtV2limits for details.

Expected behavior
It should detect that same resource is being deployed in incremental mode.

Environment
Az-Cli 2.49.0

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 with the Azure Digital Twins resource in adt.bicep and reproduce the case using az deployment group what-if in incremental mode against a subscription at its regional limit. Investigate why an existing instance is treated as a new resource; done means redeploying the same resource name no longer produces the quota error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.