From 3ce40c7363e6d7b49bf7f89bf52a5a2396e72bef Mon Sep 17 00:00:00 2001 From: Jose Moreno Date: Thu, 26 Sep 2024 10:17:41 +0200 Subject: [PATCH] Added tips for ARG queries --- CONTRIBUTING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6a022cf59..af699ddb9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,6 +58,10 @@ where type=='microsoft.containerservice/managedclusters' | extend compliant= isn It is important for the query to return these two fields for the automation to work such as the bash script and automatic Azure Monitor Workbook generation. +Some tips: +- Use single quotes inside (`'`) of the ARG query string, double quotes (`"`) break the JSON syntax. +- Use the case insensitive comparison operator (`=~`) whenever possible instead of the case-sensitive one (`==`). + #### Microsoft approvers Specific approvers (at least two individuals) for each checklist are defined in the [CODEOWNERS](./CODEOWNERS) file. Microsoft approvers should verify the correct operation of the proposed ARG query before approving the Pull Request: