azure-governance-discovery

Discover Azure Policy assignments, definitions, and exemptions into structured JSON.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/qprjack86/apexbase --skill azure-governance-discovery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-governance-discovery
Source: https://github.com/qprjack86/apexbase/tree/main/.github/skills/azure-governance-discovery
Command: npx skills add https://github.com/qprjack86/apexbase --skill azure-governance-discovery

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the manual work of tracing Azure Policy assignments, definitions, and exemptions so you can quickly understand what will block or mutate an infrastructure deployment.

Core Features & Use Cases

  • Subscription Governance Discovery: Lists effective policy assignments at subscription scope, including management-group-inherited policies.
  • Policy Classification: Pulls definitions, classifies effects, and distinguishes blockers from auto-remediation and informational findings.
  • Operational Filtering: Excludes Defender-for-Cloud auto-assignments by default and emits a structured governance constraints envelope for downstream planning.
  • Use Case: Use it when preparing an Azure infrastructure plan and you need a deterministic snapshot of policy constraints before coding or deployment.

Quick Start

Ask the skill to run Azure governance discovery for your project and write the governance constraints JSON to the target output path.

Frequently Asked Questions about azure-governance-discovery

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

FAQPage Schema
How do I discover Azure Policy blockers before an infrastructure deployment?

To discover Azure Policy blockers before deployment, you need to list effective policy assignments and definitions at your subscription scope. This process distinguishes blocking policies from auto-remediation and informational effects, producing a structured governance constraints envelope for planning.

What is the best way to check Azure Policy exemptions and assignments for a subscription?

Checking Azure Policy exemptions and assignments involves querying inherited management group policies and subscription-level assignments. This excludes Defender-for-Cloud auto-assignments by default and classifies effects to generate a deterministic snapshot of your governance constraints.

Do I need Azure CLI authentication to run subscription governance discovery?

Yes, Azure CLI authentication and subscription read access are required to run subscription governance discovery. The discovery workflow also requires Python 3.10 or later to process policy definitions and output the structured governance constraints envelope.

Can I generate a markdown preview of Azure governance constraints?

Yes, you can generate an optional markdown preview of Azure governance constraints alongside the primary schema-compliant JSON output. This preview helps visualize policy classifications, blockers, and exemptions for downstream infrastructure planning scenarios.

Does Azure governance discovery work with management group inherited policies?

Yes, Azure governance discovery works with management group inherited policies by listing effective policy assignments at the subscription scope. It pulls definitions and applies operational filtering to separate blockers from auto-remediation findings, ensuring comprehensive infrastructure planning.