Azure-docs: Need the rest of the wildcards and operators that can be used with Azure Policies

Created on 16 Apr 2019  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

Need details on wildcards used for Azure polcies as shown on https://docs.microsoft.com/en-us/azure/governance/policy/samples/enforce-like-pattern

For example, the article refers to
'field': 'name', 'match': 'contoso??????'

and

'field': 'name', 'match': 'contoso-???-##'

so I take it the question marks and pound signs are some wild cards. I need the rest of this syntax and the available operators. I see 'match' is one of them. What's the rest of the operators accepted in Azure poicy definitions?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author azure-policsvc in-progress product-question triaged

All 3 comments

@Sambsamb Thanks for the question! That information is in the policy definition structure document, specifically in the Conditions portion. * works with like and notLike, while #, ?, and . work with match, notMatch, matchInsensitively, and notMatchInsensitively. If you have a use case for needing regex, please vote for it on UserVoice. Let me know if this answers your question.

@MicrosoftDocs/azure-cxp-triage Please assign to me, label 'product-question', and #in-progress

@Sambsamb Just checking in if this answered your question. I'll wait to hear from you for another day, and then I'll ask to have the issue closed as I believe I've answered your questions. Thanks!

@DCtheGeek Thank you for your reply. That was pretty helpful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrdfuse picture mrdfuse  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments

Favna picture Favna  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

Ponant picture Ponant  Â·  3Comments