Able to change tags on resource group when using --deny-settings-mode 'denyWriteAndDelete'
@aperezmicrosoft is already working on this.
Since Feb 15, 2024.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
I have a bicep file that deploy's two resource groups and in those resource groups a storage account. On the stack deployment we specify --deny-settings-mode 'denyWriteAndDelete'. When we try to update the tags on the resources it does not work as expected but when we alter the tags on the resource groups within the stacks it is possible.
Would like to know if this is by design, known limitation or a bug.
To Reproduce
Steps to reproduce the behavior:
-
Create a bicep file with a resource group in it.
-
Deploy as a stack this is the code we used
az stack sub create --name 'stack-demo-02' --template-file '.\demo-02\main.bicep' --parameters '.\demo-02\main-param.bicepparam' --location 'westeurope' --deny-settings-mode 'denyWriteAndDelete' --deny-settings-apply-to-child-scopes -
Try altering the tags on the resource group.
-
The tags are updated on the resource group.
Expected behavior
I would expect that I'm disallowed to update the tags
- Dominant language
- Bicep
- Stars
- 101
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/deployment-stacks
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Azure/deployment-stacks#255 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
Azure/deployment-stacks#254 ·
-
Tag deletion call-outs create noise in stack what-if results; deployment stacks should cover tags Open
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Azure/deployment-stacks#253 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure/deployment-stacks#252 · 2 comments ·
-
known limitation
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Azure/deployment-stacks#251 · 1 reaction ·