azure-cli
SolidAzure CLI 操作
DevOps & Infrastructure 1 stars
0 forks Updated yesterday Apache-2.0
Install
Quality Score: 79/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Azure CLI 操作
## 概述
Azure 资源管理、AKS、存储操作等技能。
## 配置与认证
```bash
# 登录
az login
az login --use-device-code # 设备代码登录
az login --service-principal -u <app-id> -p <password> --tenant <tenant-id>
# 查看账户
az account show
az account list --output table
# 切换订阅
az account set --subscription "subscription-name"
az account set --subscription "subscription-id"
# 查看当前配置
az configure --list-defaults
# 设置默认值
az configure --defaults group=myResourceGroup location=eastus
```
## 资源组
```bash
# 列出资源组
az group list --output table
# 创建资源组
az group create --name myResourceGroup --location eastus
# 删除资源组
az group delete --name myResourceGroup --yes --no-wait
# 查看资源组中的资源
az resource list --resource-group myResourceGroup --output table
```
## 虚拟机
### VM 管理
```bash
# 列出 VM
az vm list --output table
az vm list --resource-group myResourceGroup --output table
# 创建 VM
az vm create \
--resource-group myResourceGroup \
--name myVM \
--image Ubuntu2204 \
--admin-username azureuser \
--generate-ssh-keys \
--size Standard_B2s
# 启动/停止 VM
az vm start --resource-group myResourceGroup --name myVM
az vm stop --resource-group myResourceGroup --name myVM
az vm deallocate --resource-group myResourceGroup --name myVM
az vm restart --resource-group myResourceGroup --name myVM
# 删除 VM
az vm delete --resource-group myResourceGroup --name myVM --yes
# 查看 VM 详情
az vm show --resource-group myResourceGroup --name myVM
az vm get-instance-view --resource-group myResourceGroup --name...
Details
- Author
- ryukyagamilight
- Repository
- ryukyagamilight/terminal-skills
- Created
- 5 months ago
- Last Updated
- yesterday
- Language
- N/A
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category