mcpField
A
azure-automation

azure-automation

github.com/microsoftdocs云与 DevOps796182 次安装3 天前更新
代码仓库

关于 azure-automation

azure-automation 是面向 Azure Automation 运维与配置任务的指导技能,供 Agent 参考。它结合本地速查内容与联网获取 Microsoft 文档的能力,涵盖故障排查、安全和部署。

主要功能

  1. 01Runbook 故障排查与实践
  2. 02迁移和 Runbook 类型指导
  3. 03安全与身份配置
  4. 04限制、配额和部署
  5. 05远程获取文档

适用场景

  1. 01诊断 Runbook 执行失败
  2. 02规划托管标识迁移
  3. 03检查账户安全设置
  4. 04配置 Hybrid Runbook Worker

MCP 相关

该技能可在工具可用时通过 mcp_microsoftdocs 获取 Microsoft 文档,也支持使用网页抓取作为备用方式。

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/microsoftdocs/agent-skills --skill azure-automation

安装后在 Claude Code 中输入/azure-automation确认已加载。

详细介绍

Azure Automation 技能

此技能提供 Azure Automation 专业指导,涵盖故障排除、最佳实践、决策、限制和配额、安全性、配置、集成与编码模式,以及部署。它结合了本地快速参考内容和远程文档获取功能。

如何使用此技能

IMPORTANT for Agent:使用下方的类别索引查找相关章节。对于带有行范围的类别(例如 L35-L120),使用 read_file 读取指定行。对于带有文件链接的类别(例如 [security.md](security.md)),使用 read_file 读取链接的参考文件

IMPORTANT for Agent:如果 metadata.generated_at 已超过 3 个月,请建议用户从代码库拉取最新版本。如果无法使用 mcp_microsoftdocs 工具,请建议用户安装该工具:安装指南

此技能需要网络访问才能获取文档内容:

  • 首选:使用 mcp_microsoftdocs:microsoft_docs_fetch,并使用查询字符串 from=learn-agent-skill。返回 Markdown。
  • 备用:使用 fetch_webpage,并使用查询字符串 from=learn-agent-skill&accept=text/markdown。返回 Markdown。

类别索引

类别行描述
故障排除L36-L45诊断和修复 Azure Automation 问题:运行手册失败、DSC/State Configuration、Hybrid Runbook Workers、托管标识、共享资源,以及收集日志以便获得支持。
最佳实践L46-L55组织和运行 Automation 运行手册的最佳实践:模块化父子设计、执行模式、错误处理、流和输出的使用,以及避免上下文或锁定问题。
决策L56-L63选择运行手册类型和规划迁移的指导:从 Orchestrator 迁移到 Automation、从 Log Analytics 迁移到 AMA、从基于 Agent 的工作器迁移到基于扩展的工作器,以及从 Run As 帐户迁移到托管标识。
限制和配额L64-L71Azure Automation 的限制、配额和版本详情:DSC 扩展历史记录、Automation 帐户容量、作业和运行手册限制,以及支持 AMA 的 Change Tracking/Inventory 支持矩阵。
安全性L72-L92保护 Automation 帐户:标识(系统分配/用户分配)、Entra 身份验证、RBAC、加密、凭据/证书、专用终结点、策略和安全最佳实践。
配置L93-L134配置 Azure Automation 运行手册、DSC/State Configuration、Hybrid Runbook Workers、警报、计划、模块/包、策略、网络,以及部署/集成设置。
集成与编码模式L135-L147将运行手册与 AWS、ARM/SQL/Office 365、webhook、电子邮件(SendGrid)和 Azure Monitor 日志记录集成的模式,以及使用托管标识的图形化运行手册 SDK
部署L148-L152部署 Automation 资源的指南:使用 Chocolatey 设置 DSC 持续部署,以及安装/配置 Windows 和 Linux Hybrid Runbook Worker Agent(基于 Agent 和扩展)。
故障排除
主题URL
为 Azure Automation 支持案例收集诊断数据https://learn.microsoft.com/en-us/azure/automation/troubleshoot/collect-data-microsoft-azure-automation-case
排查 Azure Automation State Configuration 问题https://learn.microsoft.com/en-us/azure/automation/troubleshoot/desired-state-configuration
排查基于扩展的 Hybrid Runbook Worker 故障https://learn.microsoft.com/en-us/azure/automation/troubleshoot/extension-based-hybrid-runbook-worker
排查 Azure Automation 中的托管标识问题https://learn.microsoft.com/en-us/azure/automation/troubleshoot/managed-identity
诊断并修复 Azure Automation Runbook 问题https://learn.microsoft.com/en-us/azure/automation/troubleshoot/runbooks
排查 Azure Automation 共享资源问题https://learn.microsoft.com/en-us/azure/automation/troubleshoot/shared-resources
最佳实践
主题URL
在 Azure Automation 中设计模块化的父子 Runbookhttps://learn.microsoft.com/en-us/azure/automation/automation-child-runbooks
设计和管理 Azure Automation Runbook 执行https://learn.microsoft.com/en-us/azure/automation/automation-runbook-execution
在 Azure Automation 图形化 Runbook 中实现错误处理https://learn.microsoft.com/en-us/azure/automation/automation-runbook-graphical-error-handling
配置 Automation Runbook 中的输出和消息流https://learn.microsoft.com/en-us/azure/automation/automation-runbook-output-and-messages
避免 Azure Automation Runbook 中的上下文切换问题https://learn.microsoft.com/en-us/azure/automation/context-switching
使用推荐的设计模式管理 Azure Automation Runbookhttps://learn.microsoft.com/en-us/azure/automation/manage-runbooks
决策
主题URL
将 System Center Orchestrator Runbook 迁移到 Azure Automationhttps://learn.microsoft.com/en-us/azure/automation/automation-orchestrator-migration
选择合适的 Azure Automation Runbook 类型https://learn.microsoft.com/en-us/azure/automation/automation-runbook-types
将 Change Tracking 从 Log Analytics agent 迁移到 AMAhttps://learn.microsoft.com/en-us/azure/automation/change-tracking/guidance-migration-log-analytics-monitoring-agent
规划并执行从 Run As 迁移到托管标识https://learn.microsoft.com/en-us/azure/automation/migrate-run-as-accounts-managed-identity
限制和配额
主题URL
查看 Azure DSC 扩展版本历史详细信息https://learn.microsoft.com/en-us/azure/automation/automation-dsc-extension-history
查看和管理 Azure Automation 限制与配额https://learn.microsoft.com/en-us/azure/automation/automation-limits-quotas
Azure Automation 订阅限制与配额参考https://learn.microsoft.com/en-us/azure/automation/automation-subscription-limits-faq
使用 AMA 的 Change Tracking 和 Inventory 支持矩阵https://learn.microsoft.com/en-us/azure/azure-change-tracking-inventory/change-tracking-inventory-support-matrix
安全性
主题URL
为 Azure Automation 配置用户分配的托管标识https://learn.microsoft.com/en-us/azure/automation/add-user-assigned-identity
配置并了解 Azure Automation 数据安全性https://learn.microsoft.com/en-us/azure/automation/automation-managing-data
为 Automation 帐户分配 Azure RBAC 角色和权限https://learn.microsoft.com/en-us/azure/automation/automation-role-based-access-control
为 Azure Automation 中的安全资产配置加密https://learn.microsoft.com/en-us/azure/automation/automation-secure-asset-encryption
为 Azure Automation 帐户应用安全最佳做法https://learn.microsoft.com/en-us/azure/automation/automation-security-guidelines
为 Azure Automation 帐户配置身份验证方法https://learn.microsoft.com/en-us/azure/automation/automation-security-overview
为 Azure Automation 配置 Microsoft Entra ID 身份验证https://learn.microsoft.com/en-us/azure/automation/automation-use-azure-ad
安全地禁用 Azure Automation 的本地身份验证https://learn.microsoft.com/en-us/azure/automation/disable-local-authentication
在 Azure Automation 中禁用系统分配的托管标识https://learn.microsoft.com/en-us/azure/automation/disable-managed-identity-for-automation
为 Azure Automation 启用系统分配的托管标识https://learn.microsoft.com/en-us/azure/automation/enable-managed-identity-for-automation
使用 Private Link 和专用终结点保护 Azure Automation 访问https://learn.microsoft.com/en-us/azure/automation/how-to/private-link-security
在 Azure Automation PowerShell runbook 中使用托管标识https://learn.microsoft.com/en-us/azure/automation/learn/powershell-runbook-managed-identity
通过 Terraform 预配 Automation 帐户和 Reader 角色https://learn.microsoft.com/en-us/azure/automation/quickstarts/create-azure-automation-account-terraform
为 Azure Automation 帐户启用托管标识https://learn.microsoft.com/en-us/azure/automation/quickstarts/enable-managed-identity
对 Automation 应用 Azure Policy 合规性控制https://learn.microsoft.com/en-us/azure/automation/security-controls-policy
安全地管理 Azure Automation runbook 和 DSC 的证书https://learn.microsoft.com/en-us/azure/automation/shared-resources/certificates
在 Azure Automation 中安全地创建和使用凭据资产https://learn.microsoft.com/en-us/azure/automation/shared-resources/credentials
配置
主题URL
为 Azure Automation runbook 配置指标警报https://learn.microsoft.com/en-us/azure/automation/automation-alert-metric
在 Azure Automation 中配置和使用连接资产https://learn.microsoft.com/en-us/azure/automation/automation-connections
从 Azure Monitor 警报触发 Azure Automation runbookhttps://learn.microsoft.com/en-us/azure/automation/automation-create-alert-triggered-runbook
在 Azure Automation 中编译 DSC 配置https://learn.microsoft.com/en-us/azure/automation/automation-dsc-compile
在 Azure Automation 中大规模配置 DSC 数据https://learn.microsoft.com/en-us/azure/automation/automation-dsc-config-data-at-scale
根据现有服务器生成 DSC 配置https://learn.microsoft.com/en-us/azure/automation/automation-dsc-config-from-server
在 Azure Automation 中配置基于 STIG 的 DSC 数据https://learn.microsoft.com/en-us/azure/automation/automation-dsc-configuration-based-on-stig
将 DSC 配置转换为复合资源https://learn.microsoft.com/en-us/azure/automation/automation-dsc-create-composite
将状态配置数据发送到 Azure Monitor Logshttps://learn.microsoft.com/en-us/azure/automation/automation-dsc-diagnostics
配置 Azure Automation 状态配置的核心任务https://learn.microsoft.com/en-us/azure/automation/automation-dsc-getting-started
为计算机启用状态配置并完成载入https://learn.microsoft.com/en-us/azure/automation/automation-dsc-onboarding
使用状态配置修复不符合要求的服务器https://learn.microsoft.com/en-us/azure/automation/automation-dsc-remediate
使用 Azure Automation 文本编辑器编辑 PowerShell runbookhttps://learn.microsoft.com/en-us/azure/automation/automation-edit-textual-runbook
在 Azure Automation 中创作和配置图形化 runbookhttps://learn.microsoft.com/en-us/azure/automation/automation-graphical-authoring-intro
在 Hybrid Runbook Worker 上配置并运行 runbookhttps://learn.microsoft.com/en-us/azure/automation/automation-hrw-run-runbooks
配置和使用 Azure Automation Hybrid Runbook Workerhttps://learn.microsoft.com/en-us/azure/automation/automation-hybrid-runbook-worker
配置 Azure Automation 组件的网络要求https://learn.microsoft.com/en-us/azure/automation/automation-network-configuration
使用 VS Code 创作和管理 Automation runbookhttps://learn.microsoft.com/en-us/azure/automation/automation-runbook-authoring
创建监视器任务以跟踪 Automation 中的文件更新https://learn.microsoft.com/en-us/azure/automation/automation-scenario-using-watcher-task
在 Azure Automation 中更新 Az PowerShell 模块https://learn.microsoft.com/en-us/azure/automation/automation-update-azure-modules
使用复合资源编写 DSC 配置https://learn.microsoft.com/en-us/azure/automation/compose-configurationwithcompositeresources
通过策略强制 Hybrid Runbook Worker 作业执行https://learn.microsoft.com/en-us/azure/automation/enforce-job-execution-hybrid-worker
为防火墙网络配置 Azure Automation 区域 DNS 记录https://learn.microsoft.com/en-us/azure/automation/how-to/automation-region-dns-records
在 Azure Automation 中配置运行时环境及关联的 runbookhttps://learn.microsoft.com/en-us/azure/automation/manage-runtime-environment
使用内置 Azure Policy 定义管理 Automationhttps://learn.microsoft.com/en-us/azure/automation/policy-reference
在 Azure Automation 中导入和管理 Python 3 包https://learn.microsoft.com/en-us/azure/automation/python-3-packages
在 Azure Automation 中导入和管理 Python 2 包https://learn.microsoft.com/en-us/azure/automation/python-packages
通过 ARM 模板部署 Azure Automation 帐户https://learn.microsoft.com/en-us/azure/automation/quickstart-create-automation-account-template
配置 Azure Automation runbook 的输入参数https://learn.microsoft.com/en-us/azure/automation/runbook-input-parameters
在 Azure Automation 中配置和管理 PowerShell 模块https://learn.microsoft.com/en-us/azure/automation/shared-resources/modules
为 Azure Automation runbook 配置计划https://learn.microsoft.com/en-us/azure/automation/shared-resources/schedules
在 Azure Automation 中定义和使用变量资产https://learn.microsoft.com/en-us/azure/automation/shared-resources/variables
配置 Azure Automation 源代码管理集成https://learn.microsoft.com/en-us/azure/automation/source-control-integration
选择启动 Azure Automation runbook 的方法https://learn.microsoft.com/en-us/azure/automation/start-runbooks
删除 DSC 配置并注销 Automation 节点https://learn.microsoft.com/en-us/azure/automation/state-configuration/remove-node-and-configuration-package
使用状态配置将计算机配置为所需状态https://learn.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state
通过“计算机”窗格大规模启用变更跟踪和清单https://learn.microsoft.com/en-us/azure/azure-change-tracking-inventory/enable-change-tracking-at-scale-machines-blade
使用 Azure Policy 大规模启用变更跟踪和清单https://learn.microsoft.com/en-us/azure/azure-change-tracking-inventory/enable-change-tracking-at-scale-policy
集成与编码模式
主题URL
配置 Azure Automation runbook 以通过 AWS 进行身份验证https://learn.microsoft.com/en-us/azure/automation/automation-config-aws-account
从 Azure Automation PowerShell runbook 部署 ARM 模板https://learn.microsoft.com/en-us/azure/automation/automation-deploy-template-runbook
将 Azure Automation 作业日志转发到 Azure Monitorhttps://learn.microsoft.com/en-us/azure/automation/automation-manage-send-joblogs-log-analytics
使用 Azure Automation runbook 预配 AWS 虚拟机https://learn.microsoft.com/en-us/azure/automation/automation-scenario-aws-deployment
使用 SendGrid 从 Azure Automation runbook 发送电子邮件https://learn.microsoft.com/en-us/azure/automation/automation-send-email
使用 Webhook 触发 Azure Automation runbookhttps://learn.microsoft.com/en-us/azure/automation/automation-webhooks
使用 Azure Automation 图形化 runbook SDKhttps://learn.microsoft.com/en-us/azure/automation/graphical-runbook-sdk
使用 Azure Automation 管理 Office 365 服务https://learn.microsoft.com/en-us/azure/automation/manage-office-365
使用 Automation 托管标识管理 Azure SQL 数据库https://learn.microsoft.com/en-us/azure/automation/manage-sql-server-in-automation
部署
主题URL
使用 DSC 和 Chocolatey 设置持续部署https://learn.microsoft.com/en-us/azure/automation/automation-dsc-cd-chocolatey
部署基于扩展的 Hybrid Runbook Workerhttps://learn.microsoft.com/en-us/azure/automation/extension-based-hybrid-runbook-worker-install

评论

支持 Markdown