Cloud service · Azure · Updated

Azure Policy - Azure Policy is a governance service that evaluates resource configurations and enforces organizational standards across Azure and supported hybrid environments.

In short

Azure Policy provides centrally managed rules for resource consistency, security, compliance, and operational requirements. Engineers can assign individual policies or grouped initiatives across management groups, subscriptions, resource groups, and individual resources to audit configurations, block noncompliant changes, and remediate supported settings.

Cloud Services Hub →

8 key features of Azure Policy

01
Built-in and custom definitions

Use Microsoft-provided rules for common governance requirements or author JSON definitions for organization-specific controls. Parameterize values such as approved regions and required tags so the same definition can serve multiple environments.

02
Initiatives for shared baselines

Group related definitions into an initiative and assign them together. This simplifies maintaining a common security or operational baseline while allowing environment-specific parameter values.

03
Hierarchical assignment scopes

Apply rules at management group, subscription, resource group, or individual resource scope. Management group assignments provide inherited guardrails for subscriptions without duplicating every assignment.

04
Audit and preventive enforcement

Report noncompliant resources using audit effects or reject applicable changes using deny. Introduce controls in audit mode first to identify incompatible workloads before blocking deployments.

05
Configuration modification and deployment

Use modify for supported property changes and deployIfNotExists for related configuration such as diagnostic settings. Remediate existing resources through remediation tasks backed by an appropriately authorized managed identity.

06
Compliance reporting

Inspect aggregated compliance and drill down to individual assignments, definitions, and resources. Use compliance details to distinguish configuration failures from resources that are outside a definition's applicability.

07
Controlled exceptions

Record approved exceptions with policy exemptions, including ownership information in metadata and optional expiration dates. Exemptions preserve exception visibility instead of silently removing a workload from governance reporting.

08
Hybrid and workload-specific governance

Extend coverage through integrations such as Azure Arc, Azure Machine Configuration, and the Azure Policy add-on for Kubernetes. These integrations evaluate supported guest or cluster settings beyond ordinary Resource Manager properties.

Where Azure Policy is used

  1. 01
    Landing zone guardrails

    Assign baseline initiatives at management groups to restrict deployment regions, require standard metadata, and audit security settings across application subscriptions. Separate production and development assignments where their requirements differ.

  2. 02
    Centralized diagnostic logging

    Use supported deployIfNotExists definitions to create diagnostic settings that route platform logs to designated destinations. Run remediation tasks to onboard existing resources and monitor deployment failures caused by missing permissions or unsupported settings.

  3. 03
    Security configuration governance

    Audit or deny supported insecure configurations, such as public access or unapproved authentication settings. Validate the exact policy definition and service API behavior before enabling enforcement across production.

  4. 04
    Cost allocation and deployment constraints

    Require cost-center tags and restrict supported resource SKUs or regions. These controls constrain provisioning choices but do not impose a spending cap or replace budgets and cost monitoring.

  5. 05
    Compliance assessment and exception tracking

    Use initiatives to organize technical controls and report resource compliance against a defined baseline. Record approved deviations as exemptions and supplement policy findings with evidence for requirements that cannot be evaluated automatically.

  6. 06
    Fleet configuration assessment

    Use Azure Machine Configuration to assess supported operating-system settings on Azure virtual machines and Arc-enabled servers. Deploy the required prerequisites and distinguish guest configuration findings from resource-level configuration findings.

How Azure Policy is priced

Resource-level governance at no additional charge

Azure Policy capabilities for Azure resources, including definitions, assignments, and compliance assessment, are available at no additional charge. Resources and services deployed or enabled by a policy retain their normal charges.

Machine Configuration charges and coverage

Azure Machine Configuration for Arc-enabled servers can incur per-server charges unless covered by an eligible service entitlement. Configuration capabilities for Azure virtual machines and applicable bundled coverage have different billing treatment; check eligibility before enabling large hybrid fleets.

Charges for governed and deployed services

Remediation can enable billable capabilities or deploy billable resources. For example, diagnostic settings can generate Log Analytics ingestion and retention charges, while other assignments may enable separately priced protection or backup services.

Services Azure Policy works with

A common architecture places governance assignments at management groups and central monitoring destinations in a platform subscription. Azure Policy deploys diagnostic settings for supported resource types, while Azure Monitor receives and processes the resulting telemetry. Remediation identities must have the required permissions at the relevant scopes, and monitoring ingestion and retention remain separately billable.

Workload-specific integrations extend evaluation beyond Resource Manager properties. AKS uses the Azure Policy add-on for supported Kubernetes admission controls, while Arc-enabled servers use Azure Machine Configuration for supported guest operating-system assessment. Deploy and validate the required agents, extensions, and network connectivity before interpreting missing compliance results as a configuration problem.

Defender for Cloud presents many policy-backed findings as security recommendations, and Azure Resource Graph supports fleet-level reporting across accessible subscriptions. Engineers can combine resource ownership metadata with policy states to route remediation work to application teams. Keep baseline assignments, workload-specific controls, remediation permissions, and approved exemptions in version control, and validate compliance after each rollout rather than assuming that assignment creation proves successful enforcement.

Azure Monitor

Azure Policy can deploy diagnostic settings for supported resource types through built-in policies and initiatives. For example, assign a diagnostic logging initiative to send supported platform logs to a central Log Analytics workspace, then remediate existing resources. The assignment identity needs the required deployment permissions, and collected telemetry is billed under Azure Monitor pricing.

Azure Kubernetes Service (AKS)

The Azure Policy add-on integrates with Gatekeeper to assess and enforce supported Kubernetes admission policies. For example, apply a policy that restricts privileged containers and first evaluate its impact in audit mode. This governs supported Kubernetes objects and is distinct from policies that evaluate the AKS resource's Resource Manager configuration.

Azure Arc

Azure Arc brings supported non-Azure resources into Azure management scopes so applicable governance can be assigned centrally. For example, use Azure Machine Configuration with Arc-enabled servers to assess operating-system security settings across on-premises machines. Guest-level assessment requires the relevant agent, extension, and connectivity rather than only a resource-level policy assignment.

Microsoft Defender for Cloud

Defender for Cloud uses Azure Policy-based assessments for many security posture recommendations and standards. For example, engineers can investigate a resource configuration finding in Defender for Cloud and use the underlying policy assignment to understand its evaluation scope. Security recommendations do not all support automatic remediation, and paid Defender plans are separate from core policy governance.

API Management

Azure Policy can audit API Management instances for network controls such as private connectivity and disabled public access. It can also audit API settings such as whether requests must use HTTPS.

App Service

Azure Policy can enforce App Service configuration standards such as HTTPS-only access and minimum TLS versions. Built-in definitions also check settings such as remote debugging and FTP deployment access.

Automation

Azure Policy can audit Automation accounts for settings such as disabled public network access and encryption with customer-managed keys.

Azure AI Bot Service

Azure Policy can audit the network configuration of Bot Service resources, including whether a bot uses private connectivity rather than public network access.

Azure AI Custom Vision

Azure Policy applies Azure AI services account controls to supported Custom Vision training and prediction resources. For example, it can audit whether public network access is disabled.

Azure AI Immersive Reader

Azure Policy can govern Immersive Reader resources through Azure AI services account policies. For example, an allowed-kind rule can control where teams are allowed to provision Immersive Reader accounts.

Alternatives to Azure Policy in other clouds

AWS

AWS ConfigAWS Config

AWS Config and Azure Policy assess resource configurations against built-in or custom rules and report compliance. AWS Config can check supported configurations before provisioning and charges for recorded items and evaluations, while Azure Policy can block noncompliant creates or updates and provides resource-level governance for Azure resources at no additional charge.

Compare fact by fact
Azure PolicyAWS Config
Deployment guardrailsDenies noncompliant creates or updatesChecks before provisioning
Resource-level billingNo extra charge for Azure resourcesPer recorded item and evaluation
Compared Nov 2026
AWS Control TowerAWS Control Tower

AWS Control Tower and Azure Policy centrally enforce governance rules and report compliance. AWS Control Tower automates multi-account landing zone setup and applies controls to organizational units, while Azure Policy applies landing zone guardrails through policy assignments that can range from management groups down to individual resources.

Compare fact by fact
Azure PolicyAWS Control Tower
Landing zone roleBaseline policy assignmentsAutomated multi-account setup
Control assignment scopeManagement group to individual resourceOrganizational unit

What is Azure Policy

2 min read

Azure Policy translates organizational requirements into rules that Azure can evaluate against resources. Typical requirements include restricting deployment regions, requiring ownership tags, auditing public network access, and ensuring that supported resources send diagnostic logs to a central destination. Policy complements Azure role-based access control: RBAC determines which operations an identity can perform, while policy can constrain the resulting resource configuration even when that identity has permission to make the change.

A policy definition is a JSON document containing evaluation logic, an effect, and optional parameters. Definitions use resource property aliases, conditions, and functions to identify applicable resources and evaluate their configuration. Microsoft provides built-in definitions, and engineers can create custom definitions where existing ones do not meet requirements. An initiative groups multiple definitions into a reusable governance baseline with shared assignment parameters.

Assignments determine where rules apply. An assignment at a management group is inherited by resources in its descendant subscriptions, subject to its scope and exclusions. More permissive assignments at lower scopes do not cancel an inherited deny policy. Use exclusions to remove scopes from an assignment, or policy exemptions to record approved exceptions with supporting metadata and an optional expiration date. Keep exception approval separate from routine application deployment permissions.

Effects determine the response to a policy match. Audit reports noncompliance without blocking deployment, while deny rejects applicable create or update requests. AuditIfNotExists checks for a related resource or configuration. Modify can change supported properties, and deployIfNotExists can deploy required related configuration after evaluation. These effects are not interchangeable: confirm that the selected definition supports the intended effect and that its resource aliases cover the relevant API versions.

Existing resources are not automatically corrected merely because a remediation-capable policy is assigned. Create remediation tasks for existing noncompliant resources when using modify or deployIfNotExists. These assignments require a managed identity with the Azure RBAC permissions needed to perform the changes. When deploying assignments through automation, explicitly provision the necessary role assignments rather than assuming that declaring role requirements in a definition grants access.

Compliance evaluation occurs following relevant resource and assignment changes and through a standard recurring cycle approximately every 24 hours. An on-demand scan can refresh compliance assessment, but reporting is asynchronous and should not be treated as an immediate deployment acknowledgement. A deny assignment does not delete existing noncompliant resources, although it can block subsequent changes that remain noncompliant.

Manage definitions, initiatives, assignments, exemptions, and remediation permissions as version-controlled infrastructure. Test new rules in a limited scope with audit effects or enforcement disabled before enabling blocking behavior. Review resource applicability, compliance details, and deployment failures before expanding coverage. Azure Policy primarily governs supported resource properties; operating-system configuration and Kubernetes admission controls require their corresponding extensions or integrations, and policy compliance alone does not establish regulatory certification.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.