microsoft/azure-skills

azure-advisor-cost-optimization

先核对 Advisor 闲置建议与计价依据,再讨论删除

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

azure-advisor-cost-optimization 是什么?

azure-advisor-cost-optimization 专门分析 Advisor 的 Cost/IdleResources 建议,发现可能闲置的资源、查看历史与潜在节省,并做删除前只读预验证。它只使用 Advisor 已返回的结构化费用,不能用账单、资源清单或运行查询替代 Advisor 的这一口径。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 azure-advisor-cost-optimization,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 azure-advisor-cost-optimization

请在 Codex 的当前工作环境中安装并检查 azure-advisor-cost-optimization 这个 Skill。

项目身份:microsoft/azure-skills / azure-advisor-cost-optimization
来源:https://github.com/microsoft/azure-skills/blob/968f7bfaa01672e782dae2c6bab4fb9505ae047a/.github/plugins/azure-advisor/skills/azure-advisor-cost-optimization/SKILL.md
已定位的源文件:.github/plugins/azure-advisor/skills/azure-advisor-cost-optimization/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 明确租户、范围和资源类型,具备当前 Advisor 工具读取能力;需读取 Skill 的 scope-resolution 与对应流程参考,参考缺失时停止受影响流程。

会得到什么

  • 保持范围与生命周期口径的闲置建议、费用/节省数据、删除前证据与未确认项。

实际使用顺序

  1. 把范围与原始标识原样保留,限定 category=Cost 与 sub-category=IdleResources;先读 scope-resolution,再按发现、历史记录或预验证选对应参考。
  2. 展示 Advisor 返回的结构化金额、Currency 和 Pricing basis。由 MCP 完成计算,不自行年化、不按日期重构金额,不拿旧 savingsAmount 字段作替代。
  3. 明确区分潜在节省、已完成记录的 Realized savings 与累计 Advisor cost。对选中资源再按 selection-and-handoff 做只读预验证,列出仍不能确认的依赖,之后才讨论修复交接。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学任务:使用 azure-advisor-cost-optimization,只读查看我指定范围的 Cost/IdleResources 建议。请展示 Currency、Pricing basis、潜在节省和数据缺项;我选中资源后再做删除前预验证。不要用零代替不可用金额,也不要自动删除或把潜在节省写成已节省。
预期结果

预期得到 Advisor 闲置建议及计价口径,删除安全性仍按实际证据判断;本站未读取或删除 Azure 资源。

使用前先看这些限制

使用条件与边界

  • 金额估计不能证明资源无用或可安全删除;潜在节省依赖实际验证与删除。
  • 泛化 Cost 或跨类别建议仍走 azure-advisor;不能默默添加 IdleResources 筛选改变用户范围。
针对这个 Skill 的疑问

常见问题

Advisor 标了闲置,就一定能删吗?

不能。源文明确把节省估计与活动状态、删除安全性分开。必须做与具体资源相关的只读预验证,并对实际删除另行确认。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

.github/plugins/azure-advisor/skills/azure-advisor-cost-optimization/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: "find unused Azure resources", "what resources am I paying for but no longer using", "idle-resource savings", "historical idle-resource savings", "are these idle resources safe to delete". Generic Cost, other subcategories, and cross-category requests use azure-advisor.

查看源文件章节 / Source sections
  • 原文:Azure Advisor Cost Optimization
  • 原文:Shared rules
  • 工作流程 / Workflow
  • 原文:Quick reference
  • 原文:Response guidance
原文:Azure Advisor Cost Optimization

Use existing Advisor tools only with `category=Cost` and `sub-category=IdleResources`. Never substitute billing, inventory or runtime KQL. Preserve selected scope, type and tenant; pass supplied identities unchanged.

原文:Shared rules

Use only returned structured retail savings; MCP owns calculations. Never annualize, reconstruct amounts from dates, or fall back to legacy annualSavingsAmount/savingsAmount or raw pricing. Cost is accumulated Advisor cost, not monthly spend or yearly savings. Completed reports use Realized savings. Every monetary answer or proposal visibly shows Currency and `Pricing basis: <basis>` from the calculated measure or its documented source. Missing amounts are Unavailable, not zero; numeric zero stays zero. Preserve a known basis even when amounts are missing. Potential savings depend on validating and deleting eligible resources. Estimates do not establish inactivity or safe deletion and never authorize remediation.

工作流程 / Workflow

Before each flow, read its matching references below, including when using supplied results. Before scoped calls, read [Scope resolution](references/scope-resolution.md). Reuse already loaded references. If a required file is unavailable, report it and stop the affected flow. Use the matching scenario guidance; [Reference index](references/README.md).

原文:Quick reference

| Flow | Required reference | |---|---| | Discovery and type expansion | [Workflow](references/workflow.md) | | Counts, savings field mapping and pricing-source interpretation | [Output and savings](references/output-and-savings.md) | | Tables and selected resources | [Table format](references/table-format.md) | | Completed/historical reports | [Lifecycle](references/lifecycle.md) | | State changes | [State updates](references/state-updates.md) | | Selection/remediation handoff | [Selection](references/selection-and-handoff.md) | | Explicit prevalidation/safety checks | [Selection](references/selection-and-handoff.md#read-only-prevalidation) | | Filters/errors | [Tools and recovery](references/tools-and-recovery.md) | | Routing examples | [Examples](references/examples.md) |

原文:Response guidance

Use shared headings and column order across models, with documented scope/lifecycle variations. Visibly show results/proposals before dependent questions; reasoning, tool output or text inside `ask_user` does not count. Ask directly for missing input.

相同源文件的其他来源(1)

以下 SKILL.md 的文件校验值与本页来源相同,合并保留来源记录。仓库内的其他文件、依赖和安装方式仍需分别核对。

文件 SHA256:145b8817fbfe0e3c41d4b5390dae785a8171e3e349927f1ee0993052a13616b8

仓库许可证记录:MIT;skill-declaration-captured-not-interpreted,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: "find unused Azure resources", "what resources am I paying for but no longer using", "idle-resource savings", "historical idle-resource savings", "are these idle resources safe to delete". Generic Cost, other subcategories, and cross-category requests use azure-advisor.

查看历史简介来源

历史收录数据

来源仓库microsoft/azure-skills
Skill源路径.github/plugins/azure-advisor/skills/azure-advisor-cost-optimization/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源