# Azure Resources

> Query Azure resources and configurations (read-only)

- Skill: `majiayu000/azure-resources` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/azure-resources`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/azure-resources/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/azure-resources

---


# Azure Resources Skill (Read-Only)

Query and inspect Azure resources without making changes.

> **See also**: [Shared Conventions](../shared/CONVENTIONS.md) | [Safety Guidelines](../shared/SAFETY.md)

## Purpose

Search, list, and inspect Azure resources to understand infrastructure.

## Commands

```bash
az account show -o json
az account list -o json
az group list -o json
az group show --name <name> -o json
az resource list -o json
az resource list --resource-group <rg> -o json
az resource list --resource-type <type> -o json
az resource show --ids <resource-id> -o json
```

## Output Format

**Always use `-o json`** for consistent, parseable output.

## Workflow Examples

### Get Current Subscription

```bash
az account show -o json
```

### List All Resource Groups

```bash
az group list -o json
```

### Find Resources by Type

```bash
# All VMs
az resource list --resource-type "Microsoft.Compute/virtualMachines" -o json

# All storage accounts
az resource list --resource-type "Microsoft.Storage/storageAccounts" -o json

# All App Services
az resource list --resource-type "Microsoft.Web/sites" -o json
```

### Inspect Specific Resource

```bash
az resource show --ids "/subscriptions/xxx/resourceGroups/yyy/providers/..." -o json
```

### Find Resources in a Resource Group

```bash
az resource list --resource-group my-rg -o json
```

## Common Resource Types

| Resource | Type String |
|----------|-------------|
| VM | `Microsoft.Compute/virtualMachines` |
| Storage | `Microsoft.Storage/storageAccounts` |
| App Service | `Microsoft.Web/sites` |
| SQL Database | `Microsoft.Sql/servers/databases` |
| Key Vault | `Microsoft.KeyVault/vaults` |
| AKS | `Microsoft.ContainerService/managedClusters` |

## Policies

- **Read-only only** - no create, update, delete, or set commands
- **Always use JSON output** for consistent parsing
- If asked to modify resources: stop, explain read-only scope, show what command would be needed, require explicit confirmation

