Created
December 6, 2017 23:51
-
-
Save averkinderen/da145b111ec02574cfd43dc3442705b8 to your computer and use it in GitHub Desktop.
Allow multiple name patterns
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": "Match multiple name patterns.", | |
"description": "Allows one of multiple naming patterns for resources.", | |
"mode": "all", | |
"policyRule": { | |
"if": { | |
"allOf": [ | |
{ | |
"not": { | |
"field": "name", | |
"match": "contoso??????" | |
} | |
}, | |
{ | |
"not": { | |
"field": "name", | |
"match": "contoso-???-##" | |
} | |
} | |
] | |
}, | |
"then": { | |
"effect": "deny" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment