azure-policy-advisor

Analyze ARM templates against Azure policy assignments and definitions to generate prioritized recommendations in structured JSON output.

267|40|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Azure/git-ape --skill azure-policy-advisor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-policy-advisor
Source: https://github.com/Azure/git-ape/tree/main/.github/skills/azure-policy-advisor
Command: npx skills add https://github.com/Azure/git-ape --skill azure-policy-advisor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Policy governance for Azure deployments requires aligning ARM templates, existing policy assignments, and organization-specific definitions with compliance frameworks to prevent drift and enforce security controls.

Core Features & Use Cases

  • Assess and align an ARM template's resources with subscription policy state (assignments and definitions).
  • Identify unassigned custom policies relevant to the deployed resource types.
  • Suggest built-in policies and initiatives from Microsoft Learn that address gaps.
  • Generate actionable remediation steps for template changes and subscription-level policy assignments.
  • Support compliance frameworks like CIS/NIST.

Quick Start

Run the policy-advisor after you complete the azure-security-analyzer step to generate subscription-level policy recommendations for the current deployment.

Frequently Asked Questions about azure-policy-advisor

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

FAQPage Schema
How do I check if my ARM template aligns with existing Azure policy assignments?

To check ARM template alignment with Azure policy, the template's resources are analyzed against existing subscription assignments and definitions. This identifies policy state drift and generates prioritized recommendations for template fixes to enforce compliance.

What is the best way to find unassigned custom policies for my Azure deployment?

Finding unassigned custom policies involves analyzing existing assignments against built-in and custom definitions relevant to deployed resource types. This identifies coverage gaps and suggests applicable Microsoft Learn built-in policies and initiatives to strengthen cloud governance.

How do I generate remediation steps for Azure policy compliance across a subscription?

Generating remediation steps for Azure policy compliance requires analyzing template configurations and subscription scope state. The process produces a structured JSON output containing assignments, unassigned definitions, template gaps, and recommended subscription-level actions.

Does this approach support compliance frameworks like CIS and NIST for Azure governance?

Yes, this approach supports compliance frameworks like CIS and NIST for Azure governance. It tailors prioritized policy recommendations and template fixes to the selected compliance framework, ensuring deployments meet specific security controls and prevent drift.

Can I assess subscription-level policy state without manually reviewing every assignment?

Yes, you can assess subscription-level policy state automatically by analyzing existing assignments and definitions against ARM template configurations. This identifies unassigned definitions and template gaps, outputting structured recommendations without manual review of each policy.