azure-cli
БесплатноБез исполняемых скриптовНе проверенThe Azure CLI (`az`) manages Microsoft Azure resources from the terminal. Use when the user needs to sign in to Azure, create resource groups, VMs, storage…
Об этом скилле
Azure CLI
Overview
The Azure CLI (az) is Microsoft's command-line tool for Azure Resource Manager. Commands follow az <group> <subcommand> [--options], output JSON by default (-o table|tsv|yaml), and filter with --query (JMESPath). Extensions (such as ssh) install on first use. This skill was checked against Azure CLI 2.91.0 (October 2026): every command below exists in that release, but nothing was run against a live subscription.
Instructions
- Install with a package manager, never by piping a script into a shell:
brew install azure-cli,winget install -e --id Microsoft.AzureCLI, the Microsoft apt/dnf repositories (the install page lists the steps per distribution), orpip install azure-cliinside a virtual environment. Check withaz version. - Sign in with
az login(browser) oraz login --use-device-codeon a headless machine. For CI use a service principal with a federated (OIDC) credential or a managed identity (az login --identity) instead of a stored secret. Then pick the subscription:az account set --subscription "Contoso Production"and confirm withaz account show. - Set defaults once to shorten commands:
az configure --defaults location=westeurope group=rg-shop-prod. - Before any create or delete, run the matching
--help, and add--queryplus-o tableor-o tsvwhen the result feeds a script.az vm listreportspowerStateonly with--show-details(-d). - Prefer Microsoft Entra authentication over account keys:
--auth-mode loginfor storage commands (the signed-in identity needs a data role such as Storage Blob Data Contributor) and managed identities for apps. - Create resources inside a resource group so a whole environment can be removed at once. Tag production resources.
- Use
--no-waitfor long operations and poll withaz <group> show,az group wait, oraz deployment group wait. - For repeatable infrastructure use Bicep with
az deployment group create --resource-group rg-shop-prod --template-file main.bicep;az group exportis only a starting point for reverse-engineering.
Examples
Example 1: A web VM with an open HTTPS port
User request: "Create a small Ubuntu VM for the shop's web tier in West Europe and open port 443."
az group create --name rg-shop-prod --location westeurope --tags Environment=production
az vm create \
--resource-group rg-shop-prod \
--name vm-shop-web \
--image Ubuntu2404 \
--size Standard_B2s \
--admin-username azureuser \
--generate-ssh-keys \
--public-ip-sku Standard \
--vnet-name vnet-shop --subnet default \
--nsg nsg-shop-web \
--tags Environment=production Role=web
az vm open-port -g rg-shop-prod -n vm-shop-web --port 443 --priority 100
az vm list -g rg-shop-prod -d \
--query "[].{Name:name,Size:hardwareProfile.vmSize,State:powerState,IP:publicIps}" -o table
Result: the VM and its network resources appear in the table with VM running and a public IP. Ubuntu2204 and Ubuntu2404 are valid image aliases (az vm image list shows the offline alias list). Connect with az ssh vm -g rg-shop-prod -n vm-shop-web (installs the ssh extension) or plain ssh azureuser@<ip>. Note that az vm stop leaves the VM allocated and billed; use az vm deallocate to stop charges for compute.
Example 2: Private blob storage with a temporary download link
User request: "Upload report.json to Azure storage and give the auditor a link that works for 7 days."
az storage account create --name stshopreports01 --resource-group rg-shop-prod \
--location westeurope --sku Standard_LRS --min-tls-version TLS1_2 \
--allow-blob-public-access false
az storage container create --name reports --account-name stshopreports01 --auth-mode login
az storage blob upload --account-name stshopreports01 --container-name reports \
--name report.json --file ./report.json --auth-mode login
az storage blob generate-sas --account-name stshopreports01 --container-name reports \
--name report.json --permissions r --https-only --as-user --auth-mode login \
--full-uri --expiry "$(date -u -d '+7 days' '+%Y-%m-%dT%H:%MZ')"
Result: the last command prints a full HTTPS URL with a user-delegation SAS valid for seven days. Storage account names are 3 to 24 lowercase letters and digits, globally unique. A user-delegation SAS cannot outlive the delegation key (at most 7 days).
Example 3: A Python Function app and an AKS cluster
User request: "Set up a serverless Python function and a small Kubernetes cluster."
az functionapp list-flexconsumption-locations --query "sort_by(@, &name)[].name" -o tsv | head -3
az storage account create --name stshopfunc01 --resource-group rg-shop-prod \
--location westeurope --sku Standard_LRS --allow-blob-public-access false
az functionapp create --resource-group rg-shop-prod --name func-shop-orders \
--storage-account stshopfunc01 --flexconsumption-location westeurope \
--runtime python --runtime-versio
Установить azure-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл azure-cli?
The Azure CLI (`az`) manages Microsoft Azure resources from the terminal. Use when the user needs to sign in to Azure, create resource groups, VMs, storage accounts, Function apps, AKS clusters or virtual networks, query resources with JMESPath, or script Azure operations in CI.
Как установить скилл azure-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл azure-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub