Created
November 1, 2018 22:01
-
-
Save chadmcrowell/5c527d4841d96490ae8328bf2c73f485 to your computer and use it in GitHub Desktop.
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
{ | |
"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" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a comma missing after "mode":"all"
and a colon after "policyRule"