Skip to content

add lowercased policy#524

Merged
neiichango merged 3 commits intoAzure:mainfrom
zukakosan:zukako-deny-resource-without-tag-and-lowercesed-value
Mar 25, 2026
Merged

add lowercased policy#524
neiichango merged 3 commits intoAzure:mainfrom
zukakosan:zukako-deny-resource-without-tag-and-lowercesed-value

Conversation

@zukakosan
Copy link
Copy Markdown
Contributor

This policy requires particular tag's existence and lowercased its value

@zukakosan
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Microsoft"

@neiichango neiichango self-assigned this Mar 4, 2026
@gregslack78
Copy link
Copy Markdown
Contributor

@zukakosan - While this is a unique policy, there are other policies that cover this functionality.

https://www.azadvertizer.net/azpolicyadvertizer/Audit-Tags-Mandatory.html - this can audit for an array of tags.

https://github.com/Azure/Community-Policy/tree/main/policyDefinitions/Tags/enforce-tag-casing-on-resources - This can enforce casing but allow you to pick whether you want to enforce upper or lower.

Would it make sense to combine these two in to one policy where you can put in an array of required tags and which casing to require?

@Joshua-Donovan
Copy link
Copy Markdown
Collaborator

@gregslack78 Thanks for reviewing this one!

I think this is different enough to justify merging into the community repository.

I agree, future improvements could include support for an Array of Tags and for the ability to select Lowercase or Uppercase like the referenced definitions.

@neiichango
Copy link
Copy Markdown
Collaborator

Agree, we can totally improve/accept the improvement of this in future, for now we are proceeding with the merge.

@neiichango neiichango merged commit b467b6f into Azure:main Mar 25, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants