Azure / Azure/deployment-stacks
Disallowed by policy does not tell you what the problem is
- Dominant language
- Bicep
- Stars
- 101
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I did a subscription deployment and the deployment failed with error "The template deployment failed because of policy violation. Please see details for more information. (Code: InvalidTemplateDeployment)"
When I switched from stack to deployment in my az cli script, the error message was much clearer "Resource 'rg-name-prd-euwe-001' was disallowed by policy. Reasons: 'Please add required tag: 'environment''. See error details for policy resource IDs."
**To Reproduce**
Steps to reproduce the behavior:
1. Set a tag azure policy on resources
2. deploy subscription stack without the tag
4. See error
**Expected behavior**
I am expecting the same error message detail as the normal deployment
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.