Azure Policy - Reference

Back to Policies Overview
Overview

Azure Policy allows you to define and enforce organizational standards and rules across your Azure environment. It helps ensure that your resources are configured in a consistent and compliant manner.

Key Concepts
Policy Types

Azure Policy offers various policy types, including:

Example Policy Definitions

Below are examples of common policy definitions. (Detailed examples with JSON configuration can be found at the examples page)

              
                {
                  "mode": "Indexed",
                  "policyRule": {
                    "if": {
                      "allOf": [
                        {
                          "field": "type",
                          "notEquals": "Microsoft.Compute/virtualMachines"
                        }
                      ]
                    },
                    "then": {
                      "effect": "Audit"
                    }
                  }
                }