Claude-skill-registry az-cli-ops
Azure CLI (az) operations for resource groups, deployments (ARM/Bicep), app services/container apps, ACR images, Key Vault secrets, role assignments, and operational checks. Use when a request involves `az` commands, Azure deployments, secrets/app settings, or Azure resource management.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/az-cli-ops" ~/.claude/skills/majiayu000-claude-skill-registry-az-cli-ops && rm -rf "$T"
manifest:
skills/data/az-cli-ops/SKILL.mdsource content
Az Cli Ops
Overview
Use az to manage Azure resources, deployments, and secrets with safe, repeatable workflows.
Quick start (context)
- Use the wrapper so commands are logged:
,scripts/azx account show
,scripts/azx account list -o table
.scripts/azx account set -s <subscription-id> - Confirm defaults:
for the current session.scripts/azx configure -d group=<rg> location=<region> - For read-heavy tasks, prefer
+--query
to avoid parsing errors.-o jsonc|tsv - Review
to adapt based on recent successes/failures.references/auto-summary.md
Automation wrapper (required)
- Use
for all az commands to log outcomes toscripts/azx
.references/usage-log.jsonl - The wrapper auto-updates
after each command to capture what worked or failed.references/auto-summary.md - If you must run
directly (e.g., debugging), runaz
afterward with the same args.scripts/track_command.sh az ...
Task map
See
references/az-command-map.md for task-to-command mappings and safe defaults.
Deployments (ARM/Bicep)
- Use
for resource-group scoped deployments.az deployment group create - Use
for subscription-scoped deployments.az deployment sub create - Prefer
before destructive changes; capture outputs via--what-if
.--query
App Services / Container Apps
- Use
/az webapp
for App Service operations.az appservice - Use
for Container Apps; install the extension if needed (az containerapp
).az extension add -n containerapp - Use deployment logs and revision lists when diagnosing rollouts.
Secrets & config
- Use Key Vault for secrets:
.az keyvault secret set/show/list - For app settings:
- App Service:
.az webapp config appsettings set/list - Container Apps:
andaz containerapp secret set/list
.az containerapp update --set-env-vars
- App Service:
Access control
- Use
andaz role assignment create/list
for RBAC.az role definition list - Use
commands sparingly; confirm tenant context withaz ad
.az account show
Self-improving loop (automated + manual)
Automated (always on when using
scripts/azx):
- Command outcomes are logged to
.references/usage-log.jsonl
updatesscripts/auto_improve.py
and can append repeatable learnings toreferences/auto-summary.md
.references/az-ops-notes.md
Manual (when new patterns are discovered):
- Append new command patterns, flags, or pitfalls to
.references/az-ops-notes.md - If a command/flag is missing or changed, update
.references/az-command-map.md - Run
to refreshscripts/refresh_az_reference.sh
from the locally installed az.references/az-help.md
Resources
scripts/
: wrapper that logs az command outcomes and triggers auto-summary updates.scripts/azx
: logs command outcomes toscripts/track_command.sh
.references/usage-log.jsonl
: generatesscripts/auto_improve.py
and auto-notes.references/auto-summary.md
: regeneratescripts/refresh_az_reference.sh
from local az help output.references/az-help.md
references/
: task-to-command map and safe defaults.references/az-command-map.md
: auto-generated help snapshot from the local az version.references/az-help.md
: living notes for patterns, pitfalls, and team conventions.references/az-ops-notes.md
: auto-generated success/failure summary for recent commands.references/auto-summary.md
: append-only command log (redacted).references/usage-log.jsonl