azure-compliance
microsoft/azure-skills
Run Azure compliance and security audits with azqr and Key Vault expiration checks.
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- User must be logged in to Azure via `az login`
- Permissions to read resource configuration and Key Vault metadata
How to use azure-compliance
- 1.Select the scope (subscription or resource group) for assessment
- 2.Run azqr compliance scan and capture output artifacts
- 3.Analyze scan results and summarize findings with recommendations
- 4.Review Key Vault Expiration Monitoring output for keys, secrets, and certificates
- 5.Classify issues by priority (Critical, High, Medium, Low)
- 6.Propose and execute remediation steps for each finding
Use cases
- 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
- Cloud security engineers
- Azure compliance officers
- DevOps and infrastructure teams
- Security auditors
- Cloud architects
azure-compliance FAQ
Microsoft recommends running compliance scans on a regular schedule—weekly or monthly—to track findings over time and verify remediation effectiveness.
Run `az login` to authenticate with Azure, then retry the compliance scan.
Yes, the assessment workflow allows you to select either a subscription or resource group as the scope for the Comprehensive Resources Assessment.
The Key Vault Expiration Monitoring will flag keys, secrets, and certificates with upcoming expiration dates so you can plan renewal before they expire.
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
| Property | Details |
|---|---|
| Best for | Compliance scans, security audits, Key Vault expiration checks |
| Primary capabilities | Comprehensive Resources Assessment, Key Vault Expiration Monitoring |
| MCP tools | azqr, 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
| Assessment | Reference |
|---|---|
| Comprehensive Compliance (azqr) | references/azure-quick-review.md |
| Key Vault Expiration | references/azure-keyvault-expiration-audit.md |
| Resource Graph Queries | references/azure-resource-graph.md |
MCP Tools
| Tool | Purpose |
|---|---|
mcp_azure_mcp_extension_azqr | Run azqr compliance scans |
mcp_azure_mcp_subscription_list | List available subscriptions |
mcp_azure_mcp_group_list | List resource groups |
keyvault_key_list | List all keys in vault |
keyvault_key_get | Get key details including expiration |
keyvault_secret_list | List all secrets in vault |
keyvault_secret_get | Get secret details including expiration |
keyvault_certificate_list | List all certificates in vault |
keyvault_certificate_get | Get certificate details including expiration |
Assessment Workflow
- Select scope (subscription or resource group) for Comprehensive Resources Assessment.
- Run azqr and capture output artifacts.
- Analyze Scan Results and summarize findings and recommendations.
- Review Key Vault Expiration Monitoring output for keys, secrets, and certificates.
- Classify issues and propose remediation or fix steps for each finding.
Priority Classification
| Priority | Guidance |
|---|---|
| Critical | Immediate remediation required for high-impact exposure |
| High | Resolve within days to reduce risk |
| Medium | Plan a resolution in the next sprint |
| Low | Track and fix during regular maintenance |
Error Handling
| Error | Message | Remediation |
|---|---|---|
| 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:
- Key Vault (Python): Secrets/Keys/Certs
- Secrets: TypeScript | Rust | Java
- Keys: .NET | Java | TypeScript | Rust
- Certificates: Rust
Related skills
More from microsoft/azure-skills and the wider catalog.
