Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewmatveychuk/659666a1f2e6b11444c68a340a67ee58 to your computer and use it in GitHub Desktop.
Save andrewmatveychuk/659666a1f2e6b11444c68a340a67ee58 to your computer and use it in GitHub Desktop.
Sample Azure Policy rule for a list of allowed tag numeric values
"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