Creating custom policies
Even though you have access to many interesting inbuilt policies in Azure, sometimes, you need to write your very own to cover customized scenarios from your organization. Fortunately, Azure offers a simple way to author a custom policy using a predefined syntax. In this section, we’ll focus on writing a basic policy to cover our needs.
Understanding the syntax
Azure Policy has a pretty simple syntax and is similar to that for ARM templates, which we discussed previously. Here’s a code snippet that contains boilerplate code:
{ "properties": { "displayName": "<displayName>", "description": "<description>", "mode": "<mode>", "parameters...