Skip to content
Azure Compliance

Azure Compliance Skill

Microsoft's official Azure skill for compliance and security audits: azqr best-practice scans plus Key Vault checks for expiring or expired keys, secrets and certificates.

GitHub Docs

Install

Install with the skills CLI

One command for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf and dozens of other agents. Needs Node.js; the skill is fetched straight from microsoft/azure-skills.

$ npx skills add microsoft/azure-skills --skill azure-compliance

Run it in a terminal. The CLI finds the agents installed on your machine, asks which ones to add the skill to, and whether to install it into the folder you ran it from or for all your projects.

Other ways to install

Copy the whole skill folder — SKILL.md and any scripts or references beside it — into ~/.claude/skills/azure-compliance/, where Claude Code picks it up in every project. Only git is needed.

tmp=$(mktemp -d) && \
  git clone --depth 1 --branch main https://github.com/microsoft/azure-skills.git "$tmp" && \
  mkdir -p ~/.claude/skills && \
  cp -R "$tmp"/skills/azure-compliance ~/.claude/skills/azure-compliance

No scripts or references next to it? Saving the SKILL.md alone as ~/.claude/skills/azure-compliance/SKILL.md works too.

Using another agent? Its personal skills folder
Codex
~/.agents/skills/
Cursor
~/.cursor/skills/
GitHub Copilot
~/.copilot/skills/
Gemini CLI
~/.gemini/skills/
Windsurf
~/.codeium/windsurf/skills/
OpenCode
~/.config/opencode/skills/

About

  • azqr compliance and best-practice scans over a subscription or resource group
  • Key Vault expiration audit for keys, secrets and certificates
  • Critical to Low priority classification with remediation guidance
  • Uses Azure MCP tools for subscriptions, resource groups and Key Vault
  • Azure Resource Graph query reference
  • Key Vault SDK quick references for Python, TypeScript, Java, .NET and Rust

Azure Compliance is part of Microsoft's official Azure skills for coding agents (microsoft/azure-skills). It turns an agent into an auditor for an Azure subscription or resource group, using the Azure MCP tools once you are signed in with az login and have read access to resource configuration and Key Vault metadata.

Two assessments make up the skill. The comprehensive one runs azqr (Azure Quick Review) over the chosen scope, captures its output and summarises findings against Azure best practices, policy and security posture, including orphaned resources. The Key Vault one lists keys, secrets and certificates in each vault and inspects their expiration, so expired certificates and soon-to-expire secrets are caught before they break something. A reference on Azure Resource Graph queries supports deeper digging.

Findings are classified as Critical, High, Medium or Low with a remediation timeline for each, and the skill recommends running scans weekly or monthly, tracking findings over time and keeping compliance reporting separate from remediation. It maps common errors (not signed in, forbidden, resource not found) to fixes, and links condensed Key Vault SDK guides for Python, TypeScript, Java, .NET and Rust. MIT licensed, version 1.2.3.

SKILL.md

The instructions your agent loads, as published by Microsoft.

SKILL.md
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.3"

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](references/azure-quick-review.md)
Key Vault Expiration[references/azure-keyvault-expiration-audit.md](references/azure-keyvault-expiration-audit.md)
Resource Graph Queries[references/azure-resource-graph.md](references/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:

  • Key Vault (Python): [Secrets/Keys/Certs](references/sdk/azure-keyvault-py.md)
  • Secrets: [TypeScript](references/sdk/azure-keyvault-secrets-ts.md) | [Rust](references/sdk/azure-keyvault-secrets-rust.md) | [Java](references/sdk/azure-security-keyvault-secrets-java.md)
  • Keys: [.NET](references/sdk/azure-security-keyvault-keys-dotnet.md) | [Java](references/sdk/azure-security-keyvault-keys-java.md) | [TypeScript](references/sdk/azure-keyvault-keys-ts.md) | [Rust](references/sdk/azure-keyvault-keys-rust.md)
  • Certificates: [Rust](references/sdk/azure-keyvault-certificates-rust.md)
Install

Pillar Security's SAIL V2 framework as an agent skill: a 91-risk catalogue across seven lifecycle phases, for AI security gap assessments, roadmaps, and ISO 42001 / EU AI Act compliance checklists.

Audits npm, PyPI and Go dependencies for advisories, abandoned upstreams, publisher concentration and install-time scripts — measured by scripts, not estimated.

New

Microsoft's official Azure skill for pre-deployment checks: validates azure.yaml, Bicep or Terraform, RBAC role assignments and managed identity permissions before an agent deploys.

New

Microsoft's official skill for Azure Blob Storage, File Shares, Queue and Table Storage and Data Lake: when to use each, access tiers, redundancy options, Azure MCP and az CLI commands, and SDK guides.

Browse all skills →