azure-cli
Azure Command Line Interface for managing Microsoft Azure resources. Use when the user needs to create VMs, manage storage accounts, deploy functions, configure resource groups, and automate Azure operations from the terminal.
Best use case
azure-cli is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Azure Command Line Interface for managing Microsoft Azure resources. Use when the user needs to create VMs, manage storage accounts, deploy functions, configure resource groups, and automate Azure operations from the terminal.
Teams using azure-cli should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/azure-cli/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How azure-cli Compares
| Feature / Agent | azure-cli | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Azure Command Line Interface for managing Microsoft Azure resources. Use when the user needs to create VMs, manage storage accounts, deploy functions, configure resource groups, and automate Azure operations from the terminal.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Azure CLI
The Azure CLI (`az`) manages Azure resources and services from the terminal.
## Setup
```bash
# Install Azure CLI
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# Login and set subscription
az login
az account set --subscription "My Subscription"
az account show
# Configure defaults
az configure --defaults location=eastus group=my-resource-group
```
## Resource Groups
```bash
# Resource group management
az group create --name my-rg --location eastus --tags Environment=production
az group list --output table
az group delete --name my-rg --yes --no-wait
```
## Virtual Machines
```bash
# Create a VM
az vm create \
--resource-group my-rg \
--name web-vm \
--image Ubuntu2204 \
--size Standard_B2s \
--admin-username azureuser \
--generate-ssh-keys \
--public-ip-sku Standard \
--vnet-name my-vnet --subnet default \
--nsg my-nsg \
--tags Environment=production Role=web
# List VMs
az vm list -g my-rg \
--query "[].{Name:name,Size:hardwareProfile.vmSize,State:powerState}" -o table
# Manage VM state
az vm stop -g my-rg -n web-vm
az vm start -g my-rg -n web-vm
az vm deallocate -g my-rg -n web-vm
az vm delete -g my-rg -n web-vm --yes
# Open port
az vm open-port -g my-rg -n web-vm --port 443 --priority 100
# SSH into VM
az ssh vm -g my-rg -n web-vm
```
## Storage
```bash
# Create storage account and container
az storage account create \
--name mystorageacct \
--resource-group my-rg \
--location eastus \
--sku Standard_LRS \
--encryption-services blob \
--min-tls-version TLS1_2
az storage container create \
--name mycontainer \
--account-name mystorageacct \
--auth-mode login
# Upload and download
az storage blob upload \
--account-name mystorageacct \
--container-name mycontainer \
--file ./data.json --name data.json
az storage blob download \
--account-name mystorageacct \
--container-name mycontainer \
--name data.json --file ./downloaded.json
# List blobs
az storage blob list \
--account-name mystorageacct \
--container-name mycontainer -o table
# Generate SAS token
az storage blob generate-sas \
--account-name mystorageacct \
--container-name mycontainer \
--name data.json \
--permissions r --expiry 2024-12-31
```
## Azure Functions
```bash
# Create Function App
az functionapp create \
--resource-group my-rg \
--name my-func-app \
--consumption-plan-location eastus \
--runtime python --runtime-version 3.11 \
--functions-version 4 \
--storage-account mystorageacct \
--os-type Linux
# Deploy function code
func azure functionapp publish my-func-app
# App settings
az functionapp config appsettings set \
--name my-func-app -g my-rg \
--settings "DB_HOST=mydb.postgres.database.azure.com" "ENV=production"
# View logs
az functionapp log tail --name my-func-app -g my-rg
```
## AKS (Kubernetes)
```bash
# Create AKS cluster
az aks create \
--resource-group my-rg \
--name my-aks \
--node-count 3 \
--node-vm-size Standard_DS2_v2 \
--enable-managed-identity \
--generate-ssh-keys
# Get credentials
az aks get-credentials -g my-rg -n my-aks
# Scale node pool
az aks scale -g my-rg -n my-aks --node-count 5
# Enable autoscaler
az aks update -g my-rg -n my-aks \
--enable-cluster-autoscaler --min-count 1 --max-count 10
```
## Networking
```bash
# Create VNet and subnet
az network vnet create \
--resource-group my-rg \
--name my-vnet \
--address-prefix 10.0.0.0/16 \
--subnet-name default --subnet-prefix 10.0.1.0/24
# Network Security Group
az network nsg create -g my-rg -n my-nsg
az network nsg rule create -g my-rg --nsg-name my-nsg \
-n allow-https --priority 100 \
--destination-port-ranges 443 --access Allow --protocol Tcp
```
## Useful Patterns
```bash
# Query with JMESPath
az vm list -g my-rg --query "[?powerState=='VM running'].name" -o tsv
# Export ARM template from existing resources
az group export -g my-rg > template.json
# Cost analysis
az consumption usage list --start-date 2024-01-01 --end-date 2024-01-31
# Monitor and alerts
az monitor metrics list --resource /subscriptions/.../my-vm \
--metric "Percentage CPU" --interval PT1H
```Related Skills
azure-openai
Azure OpenAI Service — OpenAI models (GPT-4o, DALL-E 3, Whisper) on Azure infrastructure. Use when deploying OpenAI models with enterprise compliance (GDPR, HIPAA, SOC2), Azure-native auth via Managed Identity, content filtering, or VNET-isolated deployments. Same OpenAI API, hosted on Azure.
azure-functions
Build serverless applications with Azure Functions. Create HTTP and event-driven functions with input/output bindings, configure triggers for queues, timers, and blob storage. Use Durable Functions for stateful orchestration workflows.
azure-cosmos-db
Build globally distributed apps with Azure Cosmos DB. Work with multiple data models (document, key-value, graph), configure global replication with tunable consistency levels, manage throughput with RU/s, and query with SQL API.
azure-blob-storage
Store and manage unstructured data with Azure Blob Storage. Create containers, upload and organize blobs, configure access tiers (Hot, Cool, Archive) for cost optimization, generate SAS tokens for secure temporary access, and set lifecycle management policies.
zustand
You are an expert in Zustand, the small, fast, and scalable state management library for React. You help developers manage global state without boilerplate using Zustand's hook-based stores, selectors for performance, middleware (persist, devtools, immer), computed values, and async actions — replacing Redux complexity with a simple, un-opinionated API in under 1KB.
zoho
Integrate and automate Zoho products. Use when a user asks to work with Zoho CRM, Zoho Books, Zoho Desk, Zoho Projects, Zoho Mail, or Zoho Creator, build custom integrations via Zoho APIs, automate workflows with Deluge scripting, sync data between Zoho apps and external systems, manage leads and deals, automate invoicing, build custom Zoho Creator apps, set up webhooks, or manage Zoho organization settings. Covers Zoho CRM, Books, Desk, Projects, Creator, and cross-product integrations.
zod
You are an expert in Zod, the TypeScript-first schema declaration and validation library. You help developers define schemas that validate data at runtime AND infer TypeScript types at compile time — eliminating the need to write types and validators separately. Used for API input validation, form validation, environment variables, config files, and any data boundary.
zipkin
Deploy and configure Zipkin for distributed tracing and request flow visualization. Use when a user needs to set up trace collection, instrument Java/Spring or other services with Zipkin, analyze service dependencies, or configure storage backends for trace data.
zig
Expert guidance for Zig, the systems programming language focused on performance, safety, and readability. Helps developers write high-performance code with compile-time evaluation, seamless C interop, no hidden control flow, and no garbage collector. Zig is used for game engines, operating systems, networking, and as a C/C++ replacement.
zed
Expert guidance for Zed, the high-performance code editor built in Rust with native collaboration, AI integration, and GPU-accelerated rendering. Helps developers configure Zed, create custom extensions, set up collaborative editing sessions, and integrate AI assistants for productive coding.
zeabur
Expert guidance for Zeabur, the cloud deployment platform that auto-detects frameworks, builds and deploys applications with zero configuration, and provides managed services like databases and message queues. Helps developers deploy full-stack applications with automatic scaling and one-click marketplace services.
zapier
Automate workflows between apps with Zapier. Use when a user asks to connect apps without code, automate repetitive tasks, sync data between services, or build no-code integrations between SaaS tools.