Azure-docs: Example missing double quotes

Created on 2 Apr 2020  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

The example for requiring three tags under the 'Policy rule' section has a syntax error:

"value": "[less(length(field('tags')), 3)]",
"equals": true

true needs to be contained within double quotes: "true"


Document Details

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

Pri1 azure-policsvc cxp doc-bug triaged

All 3 comments

@brandonbrownchenega Thank you for bringing this to our notice, we will review and get back to you at the earliest.

@brandonbrownchenega Thanks for the question! I reviewed this with the engineers, and it actually works either way (with or without the quotations). However, it appears the portal is syntax highlighting this as "wrong". The team took a task to fix that, so for now we'll correct this in the docs to align to the experience. Thanks for pointing this out!

As @BharathNimmala-MSFT fixed this in linked PR #51511 which I just accepted, I'm going to close this issue. Thanks again for pointing it out!

@MicrosoftDocs/azure-cxp-triage #please-close

@DCtheGeek Ahh, thank you, that makes sense. I was using the policy editor with this example and it did indeed highlight the syntax error. Good information!

Was this page helpful?
0 / 5 - 0 ratings