How to create a custom audit policy with more than one parameter

%3CLINGO-SUB%20id%3D%22lingo-sub-1883480%22%20slang%3D%22en-US%22%3EHow%20to%20create%20a%20custom%20audit%20policy%20with%20more%20than%20one%20parameter%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1883480%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20looking%20for%20a%20way%20to%20create%20an%20audit%20policy%20to%20check%20whether%20two%20resource%20tags%20exist%2C%20and%20flag%20which%20resources%20are%20non-compliant%20with%20this.%20In%20this%20post%2C%20I%20give%20you%20the%20final%20policy%20JSON%20and%20step%20you%20through%20the%20process%20of%20taking%20what%20you%20know%2C%20to%20apply%20it%20to%20something%20new%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fitops-talk-blog%2Fhow-to-build-an-audit-azure-policy-with-multiple-parameters%2Fba-p%2F1866062%3FWT.mc_id%3Dmodinfra-10601-socuff%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fitops-talk-blog%2Fhow-to-build-an-audit-azure-policy-with-multiple-parameters%2Fba-p%2F1866062%3FWT.mc_id%3Dmodinfra-10601-socuff%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E-Sonia%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1883480%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Policy%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

I was looking for a way to create an audit policy to check whether two resource tags exist, and flag which resources are non-compliant with this. In this post, I give you the final policy JSON and step you through the process of taking what you know, to apply it to something new:

 

https://techcommunity.microsoft.com/t5/itops-talk-blog/how-to-build-an-audit-azure-policy-with-multi...

 

-Sonia

0 Replies