azure-policy

Identify gaps in Azure Policy and Machine Configuration across subscriptions and remediate them.

Updated Dec 19, 2025
One-click install
npx skills add https://github.com/appliedailearner/upendra_kumar_portfolio --skill azure-policy-appliedailearner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-policy
Source: https://github.com/appliedailearner/upendra_kumar_portfolio/tree/main/.agent/skills/azure-policy
Command: npx skills add https://github.com/appliedailearner/upendra_kumar_portfolio --skill azure-policy-appliedailearner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides expert guidance for Azure Policy development, troubleshooting, and deployment tasks across machine configuration, ARM/Bicep/Terraform workflows, and policy compliance mapping.

Core Features & Use Cases

  • Troubleshooting and remediation guidance for Azure Policy and Machine Configuration deployments.
  • Best practices for authoring policy definitions, initiatives, parameters, and testing.
  • Migration guidance from DSC, Automanage, and DSC extension to Azure Policy and Machine Configuration.
  • Query compliance data via Resource Graph and map to CIS/NIST/ISO.

Quick Start

Request a policy baseline analysis across your subscriptions and fetch the latest Microsoft Docs guidance for Azure Policy.

Frequently Asked Questions about azure-policy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Azure Policy definitions using Bicep or Terraform?

You can deploy Azure Policy definitions, initiatives, and parameters using ARM, Bicep, or Terraform workflows. This approach applies infrastructure-as-code best practices to enforce secure and compliant resource deployments across your Azure subscriptions.

How do I migrate from DSC or Automanage to Azure Machine Configuration?

Migrating from DSC, Automanage, or DSC extensions to Azure Policy and Machine Configuration requires mapping existing desired state definitions to the new policy structure. This provides unified compliance remediation and continuous monitoring across your Azure infrastructure.

How do I query Azure Policy compliance data and map it to CIS or NIST?

You can query Azure Policy compliance data via Azure Resource Graph and map the results to CIS, NIST, or ISO frameworks. This identifies configuration gaps across subscriptions and generates baseline compliance reports for regulatory standards.

Why is my Azure Policy deployment not working or applying correctly?

Azure Policy deployment failures often stem from incorrect policy definitions, parameter mismatches, or assignment scope errors. Troubleshooting requires analyzing the compliance state via Resource Graph and validating the ARM or Bicep template syntax against Microsoft Docs.

Can I use Azure Policy to remediate non-compliant resources automatically?

Azure Policy supports automated remediation for non-compliant resources by deploying machine configuration policies. This enforces baseline settings across subscriptions and corrects drift by triggering remediation tasks directly through policy assignments.

What is Azure Policy used for in cloud infrastructure management?

Azure Policy is a compliance service used to evaluate and enforce resource configuration rules across Azure subscriptions. It secures deployments by auditing resources against defined standards and remediating machine configuration gaps to maintain regulatory compliance.