Token导航 LogoToken导航TokenDH.com
云服务external-servicegithub未标认证来源可访问许可证需确认审计异常

azure-adminAzure admin 部署

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

1,164

周安装

48

GitHub Stars

55

下载量

380
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rysweet/amplihack --skill azure-admin

简介

azure-admin 提供全面的 Azure 管理能力,包括身份管理、资源编排和 DevOps 自动化。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中执行订阅级操作和资源部署。
  • 支持 Azure CLI、Entra ID 和 MCP 协议集成,强调 RBAC 和审计日志。
  • 操作前需确认订阅权限和资源组范围,避免跨环境误操作。
  • 建议启用诊断设置和操作日志,便于事后追溯和问题排查。

SKILL.md

Azure Administration Skill

Overview

This skill provides comprehensive Azure administration capabilities, covering identity management, resource orchestration, CLI tooling, and DevOps automation. It integrates Microsoft's Azure ecosystem including Azure CLI (az), Azure Developer CLI (azd), Entra ID (formerly Azure AD), and Azure MCP (Model Context Protocol) for AI-powered workflows.

Core Capabilities:

  • Identity & Access Management: User provisioning, RBAC, service principals, managed identities
  • Resource Management: Subscriptions, resource groups, ARM templates, Bicep deployments
  • CLI & Tooling: az CLI patterns, azd workflows, PowerShell integration
  • MCP Integration: Azure MCP server for AI-driven Azure operations
  • DevOps Automation: CI/CD pipelines, infrastructure as code, deployment strategies
  • Cost & Governance: Budget management, policy enforcement, compliance

Target Audience:

  • Cloud administrators managing Azure environments
  • DevOps engineers automating Azure deployments
  • Security teams implementing RBAC and compliance
  • Developers using Azure services and MCP integration

Philosophy Alignment: This skill follows amplihack principles: ruthless simplicity, working code only, clear module boundaries, and systematic workflows.

Quick Reference Matrix

Common Task Mapping

TaskPrimary ToolSecondary ToolsSkill Doc Reference
Create user accountaz cliEntra ID Portal@docs/user-management.md
Assign RBAC roleaz cliAzure Portal@docs/role-assignments.md
Deploy resource groupaz cli, BicepARM templates@docs/resource-management.md
Setup service principalaz cliPortal@docs/user-management.md#service-principals
Enable managed identityaz cliPortal@docs/user-management.md#managed-identities
Create resourceaz cli, azdPortal, Terraform@docs/resource-management.md
Query resourcesaz cli --queryJMESPath@docs/cli-patterns.md#querying
Bulk user operationsaz cli + bashPowerShell@examples/bulk-user-onboarding.md
Environment provisioningazdaz cli, Bicep@examples/environment-setup.md
Audit role assignmentsaz cliAzure Policy@examples/role-audit.md
Cost analysisaz cli, PortalCost Management API@docs/cost-optimization.md
MCP integrationAzure MCPaz cli@docs/mcp-integration.md
CI/CD pipelineAzure DevOpsGitHub Actions@docs/devops-automation.md

Command Pattern Reference

# Identity operations
az ad user create --display-name "Jane Doe" --user-principal-name jane@domain.com
az ad sp create-for-rbac --name myServicePrincipal --role Contributor

# Resource operations
az group create --name myResourceGroup --location eastus
az deployment group create --resource-group myRG --template-file main.bicep

# RBAC operations
az role assignment create --assignee user@domain.com --role Reader --scope /subscriptions/xxx
az role assignment list --assignee user@domain.com --all

# Query patterns
az vm list --query "[?powerState=='VM running'].{Name:name, RG:resourceGroup}"
az resource list --resource-type "Microsoft.Compute/virtualMachines" --query "[].{name:name, location:location}"

# Cost management
az consumption usage list --start-date 2025-01-01 --end-date 2025-01-31
az costmanagement query --type ActualCost --dataset-aggregation name=Cost,function=Sum

# Azure Developer CLI (azd)
azd init --template todo-nodejs-mongo
azd up  # provision + deploy
azd env list
azd down

Topic 1: Identity & Access Management

Manage Azure identities through Entra ID: users, groups, service principals, managed identities, and RBAC.

Common operations: User creation, group management, role assignment, service principal setup, managed identity configuration, RBAC auditing

See: @docs/user-management.md and @docs/role-assignments.md for complete guides

Quick example:

# Create user
az ad user create --display-name "Jane Doe" --user-principal-name jane@contoso.com --password "SecureP@ssw0rd!"

# Create group and add member
az ad group create --display-name "Engineering Team" --mail-nickname "engineering"
az ad group member add --group "Engineering Team" --member-id $(az ad user show --id jane@contoso.com --query id -o tsv)

# Create service principal
az ad sp create-for-rbac --name "myAppSP" --role Contributor --scopes /subscriptions/{sub-id}

# Enable managed identity
az vm identity assign --name myVM --resource-group myRG

# Assign RBAC role
az role assignment create --assignee jane@contoso.com --role Reader --scope /subscriptions/{sub-id}

Key concepts:

  • Users & Groups: Entra ID accounts, group-based permissions
  • Service Principals: App authentication, certificate-based auth preferred
  • Managed Identities: Azure-managed credentials, no secret rotation needed
  • RBAC: Owner, Contributor, Reader, custom roles at multiple scopes
  • Security: MFA enforcement, least privilege, regular access reviews

Best practices:

  • Use groups for role assignments (not individual users)
  • Prefer managed identities over service principals
  • Rotate service principal credentials every 90 days
  • Store credentials in Azure Key Vault
  • Enable MFA for all administrative accounts

Topic 2: Resource Management

Organize and deploy Azure resources through subscriptions, resource groups, and infrastructure as code.

Common operations: Resource group creation, tagging strategy, ARM/Bicep deployment, resource locks, multi-region management

See: @docs/resource-management.md for advanced patterns

Quick example:

# Create resource group with tags
az group create --name myResourceGroup --location eastus
az group update --name myResourceGroup --tags Environment=Production CostCenter=IT

# Deploy Bicep template with validation
az deployment group validate --resource-group myRG --template-file main.bicep
az deployment group create --resource-group myRG --template-file main.bicep --parameters vmName=myVM

# Lock resource group to prevent deletion
az lock create --name DontDelete --resource-group myResourceGroup --lock-type CanNotDelete

# Query resources by tag
az resource list --tag Environment=Production --query "[].{Name:name, Type:type}"

Resource hierarchy:

Management Groups (optional)
└── Subscriptions (billing boundary)
    └── Resource Groups (logical container)
        └── Resources (VMs, databases, storage, etc.)

Bicep basics: Declarative IaC with cleaner syntax than ARM templates, transpiles to ARM JSON, modular and reusable.

Tagging strategy: Environment, CostCenter, Owner, Application, Criticality, BackupPolicy

Topic 3: CLI & Tooling

Master Azure CLI (az), Azure Developer CLI (azd), and query patterns for automation.

Common operations: Authentication, JMESPath queries, batch operations, azd workflows, PowerShell integration

See: @docs/cli-patterns.md for advanced scripting

Quick example:

# Azure CLI authentication
az login
az account set --subscription "My Subscription Name"
az account show

# JMESPath query patterns
az vm list --query "[?powerState=='VM running'].{Name:name, RG:resourceGroup}"
az resource list --query "[?contains(name, 'prod')]"
az vm list --query "sort_by([],&name)[0:5]"  # Top 5 by name

# Azure Developer CLI (azd)
azd init --template todo-nodejs-mongo
azd up  # provision + deploy in one command
azd env new development
azd monitor --logs
azd down  # cleanup

JMESPath essentials: Filter [?condition], Project [].{Name:name}, Sort sort_by([],&field), Contains contains(name, 'str')

azd structure: azure.yaml, infra/ (main.bicep), src/ (application code)

PowerShell: Install-Module -Name Az, Connect-AzAccount, Get-AzVM

Topic 4: MCP Integration

Use Azure MCP (Model Context Protocol) to enable AI-powered Azure operations through Claude Code and other AI workflows.

Common operations: List resources via MCP, query resource properties, execute az commands through MCP, AI-driven automation

See: @docs/mcp-integration.md for complete tool reference

Quick setup:

Install and configure:

npm install -g @modelcontextprotocol/server-azure

Add to ~/.config/claude-code/mcp.json:

{
  "mcpServers": {
    "azure": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-azure"],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "your-subscription-id"
      }
    }
  }
}

Available MCP tools:

  • azure_list_resources: List resources by type/filter
  • azure_get_resource: Get detailed resource info
  • azure_list_users: List Entra ID users
  • azure_list_role_assignments: List RBAC assignments
  • azure_query: Execute Azure Resource Graph queries
  • azure_cli: Execute arbitrary az CLI commands

Usage example:

Ask Claude Code: "Show me all running VMs in my subscription"

Claude Code uses MCP tool:

{
  "tool": "azure_list_resources",
  "parameters": {
    "resourceType": "Microsoft.Compute/virtualMachines",
    "filter": "powerState eq 'VM running'"
  }
}

Topic 5: DevOps Automation

Automate Azure deployments through CI/CD pipelines, infrastructure as code, and GitOps workflows.

Common operations: Azure DevOps pipelines, GitHub Actions integration, Bicep deployments, blue-green deployments, testing

See: @docs/devops-automation.md for advanced patterns

Quick example - Azure DevOps YAML:

trigger:
  - main

pool:
  vmImage: "ubuntu-latest"

variables:
  azureSubscription: "myServiceConnection"

stages:
  - stage: Deploy
    jobs:
      - deployment: DeployInfra
        environment: production
        strategy:
          runOnce:
            deploy:
              steps:
                - task: AzureResourceManagerTemplateDeployment@3
                  inputs:
                    azureResourceManagerConnection: $(azureSubscription)
                    resourceGroupName: myRG
                    templateLocation: Linked artifact
                    csmFile: main.bicep

Quick example - GitHub Actions:

name: Deploy to Azure

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Azure Login
        uses: azure/login@v1
        with:
          creds: ${{ secrets.AZURE_CREDENTIALS }}

      - name: Deploy Bicep
        uses: azure/arm-deploy@v1
        with:
          resourceGroupName: myRG
          template: ./infra/main.bicep

Best practices:

  • Version control all IaC in Git
  • Create reusable Bicep modules
  • Separate parameter files per environment
  • Validate templates before deployment (what-if)
  • Document architecture decisions

Topic 6: Cost & Governance

Monitor and optimize Azure spending through cost management, budgets, and policy enforcement.

Common operations: Cost analysis, budget alerts, policy assignment, quota management, resource optimization

See: @docs/cost-optimization.md for detailed strategies

Quick example:

# View current month costs by resource group
az costmanagement query \
  --type ActualCost \
  --dataset-aggregation name=Cost,function=Sum \
  --dataset-grouping name=ResourceGroup,type=Dimension \
  --timeframe MonthToDate

# Get consumption usage details
az consumption usage list \
  --start-date 2025-01-01 \
  --end-date 2025-01-31 \
  --query "[].{Date:usageStart, Service:meterName, Cost:pretaxCost}"

# Assign policy to enforce tagging
az policy assignment create \
  --name "require-tag-environment" \
  --policy "require-tag-on-resources" \
  --params '{"tagName":{"value":"Environment"}}' \
  --resource-group myRG

# Check VM quota usage
az vm list-usage --location eastus --output table

Cost optimization strategies:

  1. Right-size resources (use appropriate VM sizes)
  2. Reserved instances (30-70% savings for 1-3 year commits)
  3. Spot instances for fault-tolerant workloads
  4. Auto-shutdown schedules for non-production
  5. Storage tiering (move cold data to Archive)
  6. Regular cleanup of unused resources

Azure Policy use cases:

  • Require tags on resources
  • Restrict resource locations
  • Limit allowed VM SKUs
  • Enforce encryption at rest
  • Audit compliance

Troubleshooting

Common Issues

Authentication Errors:

az logout && az login --use-device-code
az account show  # Verify tenant and subscription

Permission Denied:

  • Check RBAC: az role assignment list --assignee {user-or-sp}
  • Verify resource provider: az provider list --query "[?registrationState=='NotRegistered']"
  • Confirm proper scope (subscription vs resource group)

Resource Not Found:

  • Verify subscription context: az account show
  • Check resource group exists: az group exists --name {rg-name}
  • Search across subscriptions: az resource list --name {resource-name}

Quota Exceeded:

az vm list-usage --location eastus --output table
# Request quota increase through Azure Portal or support ticket

CLI Tool Issues:

  • Update to latest: az upgrade
  • Clear cache: rm -rf ~/.azure/
  • Reinstall extensions: az extension list-available

See: @docs/troubleshooting.md for comprehensive debugging guide

Certification Path

Azure Administrator Associate (AZ-104):

  • Prerequisites: 6 months hands-on Azure experience
  • Domains: Identity, governance, storage, compute, networking, monitoring
  • Study Resources: @references/az-104-guide.md
  • Practice: Azure free account, Microsoft Learn labs

Next Steps:

  • Azure Solutions Architect Expert (AZ-305)
  • Azure DevOps Engineer Expert (AZ-400)
  • Azure Security Engineer Associate (AZ-500)

Further Learning

Documentation:

  • @docs/user-management.md - Complete user and identity operations
  • @docs/role-assignments.md - RBAC patterns and custom roles
  • @docs/resource-management.md - Advanced resource operations
  • @docs/mcp-integration.md - MCP tools and workflows
  • @docs/cli-patterns.md - Advanced CLI scripting
  • @docs/devops-automation.md - CI/CD and GitOps
  • @docs/cost-optimization.md - Cost management strategies
  • @docs/troubleshooting.md - Debugging and resolution

Examples:

  • @examples/bulk-user-onboarding.md - Automated user provisioning
  • @examples/environment-setup.md - Complete environment deployment
  • @examples/role-audit.md - RBAC compliance auditing
  • @examples/mcp-workflow.md - AI-powered Azure operations

References:

  • @references/microsoft-learn.md - Official learning paths
  • @references/az-104-guide.md - Certification preparation
  • @references/api-references.md - API and SDK documentation

适合场景

01

Azure 资源规划

02

云服务升级

03

基础设施检查

04

企业云环境自动化

能力概览

能力 1

整理 Azure 服务操作流程

能力 2

提示 CLI/MCP 前置条件

能力 3

辅助云资源检查和规划

能力 4

保留官方服务来源线索

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

平台分布

Codex

36.89%
按下载量换算140

Claude

32.71%
按下载量换算124

Cursor

19.36%
按下载量换算74

Gemini CLI

8.96%
按下载量换算34

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills