AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The azure-compliance skill provides a structured approach to auditing Azure environments for security, reliability, and operational best practices. It leverages the azqr tool for comprehensive resource assessments and includes specific capabilities for monitoring Key Vault assets, such as secrets, keys, and certificates, for expiration. The skill guides users through selecting a scope, running scans, analyzing results, and prioritizing remediation based on severity levels.
What it does
- Executes compliance scans using the azqr tool.
- Monitors Azure Key Vault for expiring secrets, keys, and certificates.
- Lists subscriptions and resource groups for targeted auditing.
- Provides a framework for classifying findings by priority (Critical to Low).
- Offers guidance on interpreting scan results and remediation patterns.
- Supports programmatic access to Key Vault via various SDKs.
When to use it
- During scheduled security and compliance audits.
- When identifying orphaned or unused Azure resources.
- Before performing major infrastructure changes or migrations.
- To proactively check for expiring certificates or secrets in Key Vault.
- When validating adherence to Azure best practices.
Advantages
- Automates the collection of compliance and security data.
- Standardizes the assessment process across different Azure environments.
- Helps reduce risk by identifying expiring credentials early.
- Provides clear prioritization logic for remediation efforts.
- Integrates multiple assessment sources into a single workflow.
Usage examples
- “Run a compliance scan on my production subscription.”
- The agent will list available subscriptions, execute the azqr scan on the selected scope, and provide a summary of findings categorized by reliability, security, and cost.
- “Check for any expiring secrets in my Key Vault.”
- The agent will inspect the specified Key Vault, retrieve expiration dates for all secrets, and report any that are nearing their expiration date.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/microsoft/azure-compliance/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip azure-compliance.zip -d .agents/skills
Documentation by Microsoft
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 loginPermissions 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
Files
- ATTRIBUTION.mdAdded by AutoGineer980 B
- LICENSELicence file added by AutoGineer1.1 KiB
- SKILL.md3.9 KiB
- references/auth-best-practices.md6.1 KiB
- references/azqr-recommendations.md5.7 KiB
- references/azqr-remediation-patterns.md7.8 KiB
- references/azure-keyvault-expiration-audit.md5.0 KiB
- references/azure-quick-review.md5.0 KiB
- references/azure-resource-graph.md2.6 KiB
- references/sdk/azure-keyvault-certificates-rust.md1013 B
- references/sdk/azure-keyvault-keys-rust.md1.3 KiB
- references/sdk/azure-keyvault-keys-ts.md1019 B
- references/sdk/azure-keyvault-py.md1.1 KiB
- references/sdk/azure-keyvault-secrets-rust.md1.3 KiB
- references/sdk/azure-keyvault-secrets-ts.md1.0 KiB
- references/sdk/azure-security-keyvault-keys-dotnet.md1.1 KiB
- references/sdk/azure-security-keyvault-keys-java.md1.3 KiB
- references/sdk/azure-security-keyvault-secrets-java.md1.5 KiB
references/azure-quick-review.md
Azure Quick Review Compliance Assessment
This skill enables comprehensive Azure compliance assessments using Azure Quick Review (azqr), analyzing findings against Azure best practices, and providing actionable remediation guidance.
Prerequisites
Azure authentication - Logged in via Azure CLI (
az login) or using Service Principal/Managed IdentityReader permissions - Minimum Reader role on target subscription or management group
Assessment Workflow
Step 1: Determine Scan Scope
Ask the user or detect from context:
| Scope | Use Case | Required Info |
|---|---|---|
| Subscription | Full subscription assessment | Subscription ID |
| Resource Group | Targeted assessment | Subscription ID + Resource Group name |
| Management Group | Enterprise-wide assessment | Management Group ID |
| Specific Service | Deep-dive on one resource type | Subscription ID + Service abbreviation |
Step 2: Run Compliance Scan
Use the Azure MCP tool to run the scan:
mcp_azure_mcp_extension_azqr
subscription: <subscription-id>
resource-group: <optional-rg-name>Step 3: Analyze Scan Results
The scan produces an Excel file with these sheets:
| Sheet | Contents | Priority |
|---|---|---|
| Recommendations | All recommendations with impacted resource count | High |
| ImpactedResources | Resources with specific issues to address | High |
| Inventory | All scanned resources with SKU, Tier, SLA details | Medium |
| Advisor | Azure Advisor recommendations | Medium |
| DefenderRecommendations | Microsoft Defender for Cloud findings | High |
| Azure Policy | Non-compliant resources per Azure Policy | Medium |
| Costs | 3-month cost history by subscription | Low |
| Defender | Defender plan status and tiers | Medium |
| OutOfScope | Resources not scanned | Low |
Focus analysis on:
High-severity recommendations from ImpactedResources
Defender recommendations (security-critical)
Advisor recommendations (reliability/performance)
Policy non-compliance (governance)
Step 4: Categorize Findings
Group findings by category for prioritized remediation:
| Category | Examples | Severity |
|---|---|---|
| Security | Public endpoints, missing encryption, no private endpoints | Critical |
| Reliability | No zone redundancy, single instance, no backup | High |
| Performance | Undersized SKUs, missing caching, no CDN | Medium |
| Cost | Orphaned resources, oversized SKUs, unused reservations | Medium |
| Operations | Missing diagnostics, no alerts, no tags | Low |
Step 5: Generate Remediation Guidance
For each high-priority finding:
Explain the risk in plain language
Provide remediation options (Portal, CLI, Bicep)
Estimate effort and impact
See azqr-remediation-patterns.md for common fix templates.
Step 6: Present Summary
Provide a structured summary:
## Compliance Assessment Summary
**Scope:** [Subscription/RG/MG name]
**Scanned:** [Date/Time]
**Resources Analyzed:** [Count]
### Key Findings
| Severity | Count | Top Issues |
|----------|-------|------------|
| Critical | X | [List top 3] |
| High | X | [List top 3] |
| Medium | X | [List top 3] |
### Recommended Actions
1. **[Issue]** - [Brief remediation]
2. **[Issue]** - [Brief remediation]
3. **[Issue]** - [Brief remediation]
### Next Steps
- [ ] Address critical security findings
- [ ] Review and remediate high-severity items
- [ ] Schedule follow-up scan to verify fixesSupported Azure Services
azqr supports 70+ Azure resource types including:
Azure Kubernetes Service (AKS)
API Management
App Configuration
App Service
Container Apps
Cosmos DB
Container Registry
Key Vault
Load Balancer
Azure Database for MySQL
Azure Database for PostgreSQL
Azure Cache for Redis
Service Bus
Azure SQL Database
Storage Accounts
Virtual Machines
Virtual Networks
Tools Used
| Tool | Purpose |
|---|---|
mcp_azure_mcp_extension_azqr | Run azqr scans via Azure MCP |
mcp_azure_mcp_subscription_list | List available subscriptions |
mcp_azure_mcp_group_list | List resource groups in subscription |
Troubleshooting
| Issue | Symptom | Solution |
|---|---|---|
| Permission denied | 403 errors during scan | Verify Reader role on scope |
| Not authenticated | AADSTS errors | Run az login first |
| Slow scan | Scan takes very long | Use resource group scope |
Example Prompts
"Check my Azure subscription for compliance issues"
"Run azqr on my production resource group"
"What Azure resources don't follow best practices?"
"Assess my storage accounts for security issues"
Reference Documentation
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- Microsoft
- Publisher
- Microsoft (Official)
- Source
- microsoft/skills · .github/plugins/azure-skills/skills/azure-compliance · commit 0696600
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from .github/plugins/azure-skills/LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Also distributed in
- microsoft/azure-skills
AutoGineer is not affiliated with or endorsed by Microsoft or Microsoft.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download azure-compliance.zip