Azure CLI
bởi ddevaal
DevOps & CloudTóm tắt
Comprehensive Azure Cloud Platform management via command-line interface.
Mô tả
Kỹ năng này làm gì
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.
Khi nào nên dùng
- 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
Quy trình ví dụ
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
Yêu cầu
- Azure subscription
- Azure CLI installed (brew install azure-cli or platform equivalent)
Cài đặt
clawhub install ddevaal/azure-cliChạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.