Robertjam954/multimodal_rag_application / .claude/skills/azure-compliance
azure-compliance
VerifiedRun 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.6 KB |
| references/auth-best-practices.md | markdown | 6.1 KB |
| references/azqr-recommendations.md | markdown | 5.7 KB |
| references/azqr-remediation-patterns.md | markdown | 7.8 KB |
| references/azure-keyvault-expiration-audit.md | markdown | 5.0 KB |
| references/azure-quick-review.md | markdown | 5.0 KB |
| references/azure-resource-graph.md | markdown | 2.6 KB |
| references/sdk/azure-keyvault-certificates-rust.md | markdown | 1013 B |
| references/sdk/azure-keyvault-keys-rust.md | markdown | 1.3 KB |
| references/sdk/azure-keyvault-keys-ts.md | markdown | 1019 B |
| references/sdk/azure-keyvault-py.md | markdown | 1.1 KB |
| references/sdk/azure-keyvault-secrets-rust.md | markdown | 1.3 KB |
| references/sdk/azure-keyvault-secrets-ts.md | markdown | 1.0 KB |
| references/sdk/azure-security-keyvault-keys-dotnet.md | markdown | 1.1 KB |
| references/sdk/azure-security-keyvault-keys-java.md | markdown | 1.3 KB |
| references/sdk/azure-security-keyvault-secrets-java.md | markdown | 1.5 KB |
references/azure-resource-graph.md
View on GitHub# Azure Resource Graph Queries for Compliance Auditing
Azure Resource Graph (ARG) enables fast, cross-subscription resource querying using KQL via `az graph query`. Use it for compliance scanning, tag audits, and configuration validation.
## How to Query
Use the `extension_cli_generate` MCP tool to generate `az graph query` commands:
```yaml
mcp_azure_mcp_extension_cli_generate
intent: "query Azure Resource Graph to <describe what you want to audit>"
cli-type: "az"
```
Or construct directly:
```bash
az graph query -q "<KQL>" --query "data[].{name:name, type:type}" -o table
```
> ⚠️ **Prerequisite:** `az extension add --name resource-graph`
## Key Tables
| Table | Contains |
|-------|----------|
| `Resources` | All ARM resources (name, type, location, properties, tags) |
| `ResourceContainers` | Subscriptions, resource groups, management groups |
| `AuthorizationResources` | Role assignments and role definitions |
| `AdvisorResources` | Azure Advisor recommendations |
## Compliance Query Patterns
**Find resources missing a required tag:**
```kql
Resources
| where isnull(tags['Environment']) or isnull(tags['CostCenter'])
| project name, type, resourceGroup, tags
```
**Tag coverage analysis:**
```kql
Resources
| extend hasEnvTag = isnotnull(tags['Environment'])
| summarize total=count(), tagged=countif(hasEnvTag) by type
| extend coverage=round(100.0 * tagged / total, 1)
| order by coverage asc
```
**Find storage accounts without HTTPS enforcement:**
```kql
Resources
| where type =~ 'microsoft.storage/storageaccounts'
| where properties.supportsHttpsTrafficOnly == false
| project name, resourceGroup, location
```
**Find resources with public network access enabled:**
```kql
Resources
| where properties.publicNetworkAccess =~ 'Enabled'
| project name, type, resourceGroup, location
```
**Query role assignments across subscriptions:**
```kql
AuthorizationResources
| where type == 'microsoft.authorization/roleassignments'
| extend principalType = tostring(properties.principalType)
| summarize count() by principalType
```
**Find resource groups without locks:**
```kql
ResourceContainers
| where type == 'microsoft.resources/subscriptions/resourcegroups'
| project rgName=name, rgId=id
| join kind=leftanti (
Resources
| where type == 'microsoft.authorization/locks'
| project rgId=tostring(properties.resourceId)
) on rgId
```
## Tips
- Use `=~` for case-insensitive type matching (resource types are lowercase)
- Navigate properties with `properties.fieldName`
- Use `--first N` to limit result count
- Use `--subscriptions` to scope to specific subscriptions
- Combine with `AdvisorResources` for security recommendations
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |