Azure (Microsoft) logo

Skill

compliance_governance_audit

audit Azure compliance and governance

Covers Security Azure Compliance Governance Audit

Description

Audit Azure environment for compliance and governance posture. Checks Azure Policy, RBAC, tagging, resource locks, naming conventions, and regulatory alignment. Use when asked about compliance, governance, audit readiness, or policy violations.

SKILL.md

Compliance & Governance Audit

Purpose

Assess the governance posture of Azure subscriptions by auditing policies, RBAC assignments, tagging standards, resource locks, and regulatory alignment. Produce a compliance scorecard with remediation steps.

Procedure

Step 1: Azure Policy compliance

az policy state summarize --query "value[].{policy:policyDefinitionName, nonCompliant:nonCompliantResources}" -o table

Report total policies assigned, % compliant, and top 5 violated policies.

Step 2: RBAC review

az role assignment list --all --query "[].{principal:principalName, role:roleDefinitionName, scope:scope}" -o table

Flag: > 3 Owners at subscription level, Contributor sprawl, classic admins, guest users with privileged roles, stale assignments (90+ days inactive), overly broad custom roles.

Step 3: Tagging compliance

Check mandatory tags (environment, owner, cost-center, application):

az resource list --query "[?tags.environment==null || tags.owner==null].{name:name, type:type, rg:resourceGroup}" -o table

Report % of resources with all mandatory tags and top offending resource groups.

Step 4: Resource locks

az lock list --query "[].{name:name, level:level, resource:resourceId}" -o table

Verify production databases, storage accounts, and networking resources have delete locks.

Step 5: Naming conventions

Analyze resource naming patterns against Azure naming conventions (rg-, vnet-, vm-, st, kv-). Report % compliance.

Step 6: Network governance

Check for public endpoints that should be private, NSG flow logs, Network Watcher in all active regions, DDoS protection.

Step 7: Diagnostic settings

az monitor diagnostic-settings subscription list --subscription <id> -o table

Verify logs flow to a central Log Analytics workspace.

Scoring

RatingMeaning
🟢 CompliantMeets standard, no action needed
🟡 PartialPartially implemented, needs improvement
🔴 Non-compliantMissing or misconfigured, action required

Sample output

FieldValue
Subscriptioncontoso-prod-001
Assessment Date2026-07-15
Overall Score61%
AreaStatusScore
Azure Policy🟡69%
RBAC🔴33%
Tagging🟡69%
Resource Locks🔴25%
Naming🟢87%
Network Gov.🟡60%
Diagnostics🟡57%

References

More from Azure (Microsoft)

View publisher

© 2026 YourAI.tools. Every skill from an identity-verified publisher.

Independent catalog. Not affiliated with, endorsed by, or sponsored by Anthropic or any listed publisher. All trademarks belong to their respective owners.