Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English
Read in English Edit

Azure Policy documentation

Azure Policy helps you manage and prevent IT issues with policy definitions that enforce rules and effects for your resources.

About Azure Policy

Overview

  • What is Azure Policy?
  • Policy effect
  • Definition structure
  • Scope
  • Assignment structure
  • Exemption structure

Get started

Quickstart

  • Assign a policy (Azure portal)
  • Assign a policy (Azure CLI)
  • Assign a policy (Azure PowerShell)
  • Assign a policy (REST)
  • Assign a policy (ARM template)
  • Assign a policy (Bicep)
  • Assign a policy (Terraform)

Tutorial

  • Create and manage policies
  • Design Azure Policy as Code workflows

Deploy

  • Index of policy samples

Author policies

Tutorial

  • Create a custom policy
  • Manage tag governance

How-To Guide

  • Create policy with SDK
  • Author policies for arrays
  • Export resources

Concept

  • Azure Policy for Kubernetes
  • Azure Policy for VMs

Review & Remediate resources

How-To Guide

  • Get compliance data
  • Determine causes of non-compliance
  • Exempt resources
  • Remediate non-compliant resources

Get involved

Get started

  • Azure Q&A for Azure Policy
  • Request product feature

Reference

Reference

  • Azure CLI
  • Azure PowerShell (Policy)
  • Azure PowerShell (Policy Insights)
  • REST

Reference (more)

Reference

  • Azure SDK for .NET (Assignments)
  • Azure SDK for .NET (Policy Definitions)
  • Azure SDK for JavaScript (Policy)
  • Azure SDK for JavaScript (Policy Insights)
  • Azure SDK for Python (Policy)
  • Azure SDK for Python (Policy client)
  • Azure SDK for Python (Policy Insights)
Your Privacy Choices
  • SH ICP Filing No. 13015306-25
  • PSB Filing No. 31011502002224
  • Privacy
  • Microsoft Azure Operated by 21Vianet
  • © Microsoft 2025
Your Privacy Choices
  • SH ICP Filing No. 13015306-25
  • PSB Filing No. 31011502002224
  • Privacy
  • Microsoft Azure Operated by 21Vianet
  • © Microsoft 2025