PluginBench
Skill
Official
Pass
Audit score 90

azure-compliance

microsoft/azure-skills

Run Azure compliance and security audits with azqr and Key Vault expiration checks.

SourceView on skills.sh

What is azure-compliance?

Automates Azure compliance scanning and security posture assessment using the azqr tool, plus monitors Key Vault expiration for keys, secrets, and certificates. Use this before deploying to production or on a regular schedule to identify misconfigurations, policy violations, and credential expiration risks.

  • Run comprehensive compliance scans across subscriptions and resource groups with azqr
  • Monitor Key Vault keys, secrets, and certificates for expiration
  • List and inspect Azure subscriptions and resource groups
  • Classify findings by priority (Critical, High, Medium, Low)
  • Generate remediation recommendations for each compliance issue
  • Track compliance posture over time

How to install azure-compliance

npx skills add https://github.com/microsoft/azure-skills --skill azure-compliance
Prerequisites
  • User must be logged in to Azure via `az login`
  • Permissions to read resource configuration and Key Vault metadata
Claude Code
Cursor
Windsurf
Cline

How to use azure-compliance

  1. 1.Select the scope (subscription or resource group) for assessment
  2. 2.Run azqr compliance scan and capture output artifacts
  3. 3.Analyze scan results and summarize findings with recommendations
  4. 4.Review Key Vault Expiration Monitoring output for keys, secrets, and certificates
  5. 5.Classify issues by priority (Critical, High, Medium, Low)
  6. 6.Propose and execute remediation steps for each finding

Use cases

Good for
  • Weekly or monthly compliance audits of Azure infrastructure
  • Pre-production security review before deploying applications
  • Identify expired or expiring certificates and secrets in Key Vault
  • Assess resource configuration against Azure best practices
  • Generate compliance reports for governance and audit requirements
Who it's for
  • Cloud security engineers
  • Azure compliance officers
  • DevOps and infrastructure teams
  • Security auditors
  • Cloud architects

azure-compliance FAQ

How often should I run compliance scans?

Microsoft recommends running compliance scans on a regular schedule—weekly or monthly—to track findings over time and verify remediation effectiveness.

What do I do if I get an authentication error?

Run `az login` to authenticate with Azure, then retry the compliance scan.

Can I run this on a specific resource group instead of the entire subscription?

Yes, the assessment workflow allows you to select either a subscription or resource group as the scope for the Comprehensive Resources Assessment.

What happens if a Key Vault secret or certificate is expiring soon?

The Key Vault Expiration Monitoring will flag keys, secrets, and certificates with upcoming expiration dates so you can plan renewal before they expire.

How are findings prioritized?

Findings are classified as Critical (immediate action required), High (resolve within days), Medium (plan for next sprint), or Low (track during regular maintenance).

Full instructions (SKILL.md)

Source of truth, from microsoft/azure-skills.


name: azure-compliance description: "Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment." license: MIT metadata: author: Microsoft version: "1.2.2"

Azure Compliance & Security Auditing

Quick Reference

PropertyDetails
Best forCompliance scans, security audits, Key Vault expiration checks
Primary capabilitiesComprehensive Resources Assessment, Key Vault Expiration Monitoring
MCP toolsazqr, subscription and resource group listing, Key Vault item inspection

Prerequisites

  • Authentication: user is logged in to Azure via az login
  • Permissions to read resource configuration and Key Vault metadata

Assessments

AssessmentReference
Comprehensive Compliance (azqr)references/azure-quick-review.md
Key Vault Expirationreferences/azure-keyvault-expiration-audit.md
Resource Graph Queriesreferences/azure-resource-graph.md

MCP Tools

ToolPurpose
mcp_azure_mcp_extension_azqrRun azqr compliance scans
mcp_azure_mcp_subscription_listList available subscriptions
mcp_azure_mcp_group_listList resource groups
keyvault_key_listList all keys in vault
keyvault_key_getGet key details including expiration
keyvault_secret_listList all secrets in vault
keyvault_secret_getGet secret details including expiration
keyvault_certificate_listList all certificates in vault
keyvault_certificate_getGet certificate details including expiration

Assessment Workflow

  1. Select scope (subscription or resource group) for Comprehensive Resources Assessment.
  2. Run azqr and capture output artifacts.
  3. Analyze Scan Results and summarize findings and recommendations.
  4. Review Key Vault Expiration Monitoring output for keys, secrets, and certificates.
  5. Classify issues and propose remediation or fix steps for each finding.

Priority Classification

PriorityGuidance
CriticalImmediate remediation required for high-impact exposure
HighResolve within days to reduce risk
MediumPlan a resolution in the next sprint
LowTrack and fix during regular maintenance

Error Handling

ErrorMessageRemediation
Authentication required"Please login"Run az login and retry
Access denied"Forbidden"Confirm permissions and fix role assignments
Missing resource"Not found"Verify subscription and resource group selection

Best Practices

  • Run compliance scans on a regular schedule (weekly or monthly)
  • Track findings over time and verify remediation effectiveness
  • Separate compliance reporting from remediation execution
  • Keep Key Vault expiration policies documented and enforced

SDK Quick References

For programmatic Key Vault access, see the condensed SDK guides: