Hello,
I'm trying to get compliance data for Web Apps that have the alias Microsoft.Web/sites/config/httpLoggingEnabled = false yet I cannot get the policy below to work , I must be missing something but i cannot see it can someone assist please?
{"mode": "All","policyRule": {"if": {"allOf": [ {"field": "type","equals": "Microsoft.Web/sites" }, {"field": "kind","like": "app*" }, {"field": "Microsoft.Web/sites/config/httpLoggingEnabled","equals": "false" } ] },"then": {"effect": "[parameters('effect')]" } },"parameters": {"effect": {"type": "String","metadata": {"displayName": "Effect","description": "Enable or disable the execution of the policy" },"allowedValues": ["Audit","Disabled" ],"defaultValue": "Audit" } } }
Best Regards,
Chris