Created
May 14, 2023 16:25
-
-
Save andrewmatveychuk/659666a1f2e6b11444c68a340a67ee58 to your computer and use it in GitHub Desktop.
Sample Azure Policy rule for a list of allowed tag numeric values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"parameters": { | |
"tagAllowedValues": { | |
"type": "Array", // You can provide allowed tag values as numerics ["1", "2", "3"]. Just remember that they are still treated as strings | |
"metadata": { | |
"displayName": "Tag allowed values", | |
"description": "List of allowed options" | |
} | |
} | |
// Other policy parameters... | |
}, | |
"policyRule": { | |
// Rule logic... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment