Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Azure Policy Alias Issue

$
0
0

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


Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>