azure-policy

Develop and troubleshoot Azure Policy definitions using Microsoft Learn documentation.

686|107|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/MicrosoftDocs/Agent-Skills --skill azure-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-policy
Source: https://github.com/MicrosoftDocs/Agent-Skills/tree/main/skills/azure-policy
Command: npx skills add https://github.com/MicrosoftDocs/Agent-Skills --skill azure-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance for Azure Policy, helping you build, debug, and optimize your Azure governance by ensuring compliance, security, and proper configuration across your cloud resources.

Core Features & Use Cases

  • Troubleshooting: Diagnose and resolve Azure Policy non-compliance and deployment errors.
  • Best Practices: Learn to design effective policy definitions, use effects, operators, and parameters.
  • Security & Compliance: Map policies to various compliance frameworks (CIS, NIST, ISO, PCI, etc.) for Azure and Azure Government.
  • Configuration & Deployment: Author, assign, and deploy Machine Configuration packages and policies securely.
  • Integrations: Utilize Azure Resource Graph for querying policy compliance data.
  • Use Case: You need to ensure all virtual machines in your Azure environment have specific tags applied. This Skill can guide you in creating and assigning an Azure Policy definition to enforce this tagging requirement.

Quick Start

Use the azure-policy skill to find best practices for authoring Azure Policy rules for array properties.

Frequently Asked Questions about azure-policy

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

FAQPage Schema
How do I troubleshoot Azure Policy non-compliance and deployment errors?

Troubleshooting Azure Policy non-compliance involves diagnosing policy definition logic, effect configurations, and assignment scope errors. This Skill provides expert guidance for resolving deployment errors and ensuring your Azure resources meet governance requirements.

What is the best way to design Azure Policy definitions for security and compliance?

Designing Azure Policy definitions for security and compliance requires mapping policies to frameworks like CIS, NIST, ISO, and PCI. This Skill offers best practices for authoring effective policy rules, using operators, parameters, and effects to enforce configuration standards.

How does Azure Policy integrate with Azure Resource Graph for querying compliance data?

Azure Resource Graph integrates with Azure Policy to query and retrieve policy compliance data across your cloud resources. This Skill guides you in utilizing Resource Graph to monitor, report, and analyze the compliance state of your Azure environment.

Can I use Azure Policy to enforce specific tags on virtual machines?

Yes, you can use Azure Policy to enforce specific tags on virtual machines by creating and assigning a policy definition. This Skill guides you through authoring and deploying policies to enforce tagging requirements and configuration standards across resources.

How do I deploy Machine Configuration packages securely using Azure Policy?

To deploy Machine Configuration packages securely using Azure Policy, you author, assign, and deploy policies that audit or apply guest configuration settings. This Skill provides configuration and deployment patterns for building secure Machine Configuration policies.

Why is my Azure Policy assignment not working as expected?

Azure Policy assignments may fail due to incorrect policy definition syntax, parameter mismatches, or scope configuration errors. This Skill provides troubleshooting knowledge to diagnose and resolve non-compliance issues and deployment failures in Azure governance.