Azure CLI
由 ddevaal 提供
DevOps & Cloud简介
Comprehensive Azure Cloud Platform management via command-line interface.
描述
该技能的功能
Azure CLI is Microsoft's cross-platform command-line tool for managing Azure cloud resources. It covers compute, networking, storage, databases, Kubernetes, and more across 66 command modules. Authentication supports interactive login, service principals, and managed identities.
Azure CLI's built-in JMESPath query support and shell-scriptable output formats make it faster to automate resource workflows than navigating the Azure Portal.
何时使用
- Spinning up and managing virtual machines from the terminal
- Deploying AKS clusters and fetching kubeconfig credentials
- Automating resource cleanup scripts in CI/CD pipelines
- Querying resource states across subscriptions with JMESPath filters
- Managing storage accounts and uploading blobs in batch operations
示例工作流
User asks: Create a Ubuntu VM in East US and verify it's running
- 1
Run
az loginto authenticate the session - 2
Create a resource group with
az group create -g myRG -l eastus - 3
Provision the VM with
az vm create -g myRG -n myVM --image UbuntuLTS - 4
Check power state with
az vm show -g myRG -n myVM --query powerState
VM provisioned and confirmed in 'VM running' state
前置要求
- Azure subscription
- Azure CLI installed (brew install azure-cli or platform equivalent)
安装
clawhub install ddevaal/azure-cli运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。