Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created November 1, 2018 22:01
Show Gist options
  • Save chadmcrowell/5c527d4841d96490ae8328bf2c73f485 to your computer and use it in GitHub Desktop.
Save chadmcrowell/5c527d4841d96490ae8328bf2c73f485 to your computer and use it in GitHub Desktop.
{
"properties": {
"displayName": "must match name pattern",
"description": "name pattern must be this",
"mode": "all"
"parameters": {
"type": "String",
"metadata": {
"description": "pattern name can include ? for letters, # for numbers"
}
}
},
"policyRule" {
"if": {
"not": {
"field": "name",
"match": "[parameters('namePattern')]"
}
},
"then": {
"effect": "deny"
}
}
}
@dilyankostov
Copy link

There is a comma missing after "mode":"all"
and a colon after "policyRule"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment