Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

azcliazcli 搜索

Agent Skill

azcli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

303

周安装

13

GitHub Stars

4

下载量

106
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:azcli(azcli 搜索)
来源仓库:https://github.com/marcfargas/skills
仓库路径:skills/azcli
安装命令:
npx skills add https://github.com/marcfargas/skills --skill azcli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/marcfargas/skills --skill azcli

简介

azcli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • Azure 命令行接口,管理 Azure 资源和 200+ 命令组,支持扩展和配置文件。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需 winget 或 MSI 安装 Azure CLI。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • azcli 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

azcli — Azure Command-Line Interface

Command-line interface for managing Azure resources. Covers az and its 200+ command groups for all Azure services.

Docs: https://learn.microsoft.com/en-us/cli/azure/

Platform Notes (Windows + Git Bash)

  • Install: winget install --exact --id Microsoft.AzureCLI (preferred) or MSI from https://aka.ms/installazurecliwindows
  • After install/update: close and reopen terminal — required for PATH
  • Config: ~/.azure/ (credentials, config, profiles)
  • Secrets: use Key Vault or env vars, never commit credentials
  • Extensions: az extension add --name NAME (some features require extensions)
  • Version: az version (check for updates: az upgrade)

⚠️ Quoting Gotchas

Git Bash, PowerShell, and cmd have different quoting rules for --query (JMESPath):

# Git Bash — use single quotes for JMESPath
az vm list --query '[].name' -o tsv

# PowerShell — use single quotes or escaped double quotes
az vm list --query '[].name' -o tsv

# Avoid: Git Bash may mangle double-quoted JMESPath
⚠️ Cost: Commands that create resources (VMs, databases, clusters) incur Azure charges. Always confirm subscription and region before creating.

Agent Safety Model

Operations classified by risk. Follow this model for all az commands.

LevelGateExamples
READProceed autonomouslylist, show, get, account show, monitor log-analytics query
WRITEConfirm with user; note cost if billablecreate, deploy, update, az storage blob upload
DESTRUCTIVEAlways confirm; show what's affecteddelete, purge, az group delete, RBAC removal
EXPENSIVEConfirm + state approximate costAKS clusters ($70+/mo), SQL Database ($5-2k/mo), VMs (~$5-2k/mo)
SECURITYConfirm + explain impactNSG rules opening ports, --allow-unauthenticated, RBAC owner/contributor grants, Key Vault access policies
FORBIDDENRefuse; escalate to humanaz ad app credential reset with plaintext secrets, az group delete on production RGs, passwords in CLI args

Rules:

  • Never combine --yes with destructive operations — it suppresses the only safety gate
  • Never put passwords/secrets as command-line arguments — visible in process list & shell history
  • Always use -o json for machine-parseable output (agents can't reliably parse tables)
  • When in doubt, treat as DESTRUCTIVE

Command Structure

az [GROUP] [SUBGROUP] COMMAND [ARGS] [FLAGS]

Key global flags: --subscription, --output (-o), --query, --verbose, --debug, --only-show-errors, --yes

Service Reference

ServiceFileKey Commands
Auth & Configauth.mdLogin, service principals, managed identities, subscriptions, config
IAM & Resourcesiam.mdResource groups, RBAC, Entra ID (Azure AD), Key Vault
Compute & Networkingcompute.mdVMs, VNets, NSGs, DNS, load balancers, monitoring
Serverless & Containersserverless.mdApp Service, Functions, Container Apps, AKS, Container Registry
Storagestorage.mdStorage accounts, blobs, file shares, queues, tables
Datadata.mdSQL Database, Cosmos DB, Service Bus, Event Hubs
Automation & CI/CDautomation.mdScripting, output formats, JMESPath, Bicep/ARM, GitHub Actions

Read the per-service file for full command reference.

Pre-Flight Checks

Before working with any Azure service:

# 1. Logged in?
az account show -o json

# 2. Correct subscription?
az account show --query '{Name:name, Id:id, State:state}' -o json

# 3. Change subscription if needed
az account set --subscription "<name-or-id>"

# 4. Default location set?
az config get defaults.location 2>/dev/null

# 5. Set default location (optional)
az config set defaults.location=westeurope

# 6. Resource provider registered? (most are auto-registered)
az provider show --namespace Microsoft.ContainerApp --query "registrationState" -o tsv
az provider register --namespace Microsoft.ContainerApp --wait

Troubleshooting

ProblemDiagnosisFix
Auth failureaz account showaz login or check service principal
Permission deniedCheck RBAC (see iam.md)Grant correct role
Provider not registeredError says which provideraz provider register --namespace Microsoft.X
Quota exceededError messageRequest increase in Portal or az quota
Wrong subscriptionaz account showaz account set --subscription X
Wrong regionCheck resource's locationRecreate in correct region
Extension missingaz extension listaz extension add --name NAME
Slow commandsLarge result setUse --query, --top, or --output tsv
# Debug mode
az vm list --debug 2>&1 | head -50

# Full environment info
az version
az account show -o json

Quick Reference

TaskCommand
Loginaz login
Set subscriptionaz account set --subscription "NAME_OR_ID"
Current subscriptionaz account show -o json
List subscriptionsaz account list -o table
Register provideraz provider register --namespace Microsoft.X
List anythingaz RESOURCE list -o json
Show anythingaz RESOURCE show --name NAME -g RG -o json
JSON output-o json
TSV (single values)-o tsv
JMESPath query--query "expression"
Suppress prompts ⚠️--yes — suppresses ALL confirmations
Helpaz RESOURCE --help or az find "search term"
Upgrade CLIaz upgrade

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.09%
按下载量换算37

Claude

32.25%
按下载量换算34

Cursor

16.88%
按下载量换算18

Gemini CLI

10.13%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/marcfargas/skills --skill azcli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills