插件低风险未认领
azure-advisor
Azure Advisor recommendations, service-retirement impact, and customer-ready remediation guidance.
microsoftmicrosoft/azure-advisor-plugin
说明
Azure Advisor
Use Azure Advisor recommendations to understand optimization opportunities, identify resources affected by service retirements, and generate customer-ready remediation guidance.
This plugin includes:
azure-advisorfor recommendation discovery, summaries, affected resources, metadata, service retirements, and lifecycle updates.azure-advisor-actionabilityfor one-recommendation remediation, followed by resource-specific command placeholder resolution. When Advisor returns no usable remediation, it falls back to relevant public Microsoft Learn documentation. Responses identify whether guidance comes from Advisor or Microsoft Learn and cite documentation used for the fallback.azure-advisor-cost-optimizationfor scope resolution,Cost/IdleResourcesdiscovery, prioritized opportunities, full retail USD savings reports, historical/lifecycle reporting, confirmed state changes, and explicitly selected remediation handoffs. Known subscription or Service Group names/IDs pass directly to the existing Advisor tools. All-accessible subscriptions are enumerated and grouped by tenant; no separate scope skill or SG-discovery tool is needed. Capped resource lists are never treated as complete totals.
Generic Cost and other Advisor categories remain on azure-advisor. Cost reports explicitly show
the tool-returned pricing basis and measure currency, currently Retail USD, rather than hardcoding
the label or inventing contractual figures or availability lines. Advisor findings do not prove
deletion safety. Explicit safety requests use the connected Advisor read-only prevalidation
operation when available; passing automated checks never authorizes deletion.
Explicit prevalidation selections use full affected-resource ARM IDs only, reusing already
returned IDs or resolving names through list when needed. Type-wide prevalidation follows
discovery pages and processes bounded batches instead of stopping at 25 or 100 resources;
requested subsets and incomplete coverage remain visible.
New summary status overrides, historical dates and minimum-savings require both Cost and
IdleResources; generic list status and summary status grouping retain their existing behavior.
Lifecycle tables label supported lastUpdated as State last changed, separately from
resource deletion dates. Cost/IdleResources never substitutes legacy money for missing
structured savings. Generic Advisor does not inherit the specialized 15-row HTML layout.
Response parity checks
Cost/IdleResources uses the same shared response templates on every model. The existing eval
suite tags its supplied-result and selection cases with parity=response-shape, covering
opening discovery, unavailable pricing, selected resources, Completed details, period choices,
inline pagination, compact prevalidation evidence, postpone-date selection before the batch proposal,
and partial update results. These cases do not require live Azure recommendation queries.
Prevalidation uses compact tables for all three returned buckets and one shared
Check | Outcome | Minimal detail table, with failed/unverified checks and outstanding manual confirmations visible. Detailed
per-resource evidence is shown only on request. State changes use one compact proposal with exact IDs
separately available, followed by one server destructive approval covering the action and chosen
date/reason. Postpone asks the date after resource selection; it does not add a separate
assistant confirmation before the server approval. Batch updates reuse the existing tool's
recommendation-ids input and require one shared scope, tenant, state and date/reason. Completed batches
use a per-record result table that distinguishes success, failure and unverified status. Postpone/dismiss
proposals and results show both Yearly potential savings and accumulated Cost, savings first,
using the actual returned values without recalculation. Results identify carried-forward
amounts as previously returned estimates, not savings achieved by the state change.
The existing update response is authoritative for success and returned status; a later
stale or empty list must not downgrade a successful update.
From tests, run the same cases against both model families:
$env:VALLY_RUNNER_DISABLE_AZURE_MCP = "true"
$env:VALLY_RUNNER_EXACT_SKILL = "true"
npm run test:vally -- --plugin azure-advisor --skill azure-advisor-cost-optimization --tag parity=response-shape --model gpt-5.6-sol --runs 1 --workers 1 --threshold 1 --pass-rate 1 --require-pass
npm run test:vally -- --plugin azure-advisor --skill azure-advisor-cost-optimization --tag parity=response-shape --model claude-sonnet-5 --runs 1 --workers 1 --threshold 1 --pass-rate 1 --require-pass
Require both runs to pass; a shared failure is not parity success. The strict thresholds prevent missing required fields from being averaged away. Rerun after template, model or client changes; passing checks establish the tested structure/data contract, not identical wording or guaranteed rendering in every app. Local runs need the supported Node runtime, restored test dependencies and Copilot authentication; inspect executor errors separately from model-format failures.
The period-choice and postpone-date cases expose ask_user and stop at the pending question
without answering or querying Azure. Proposal-only cases never request an update, and
cancellation uses an ordinary follow-up turn:
npm run test:vally -- --plugin azure-advisor --skill azure-advisor-cost-optimization --tag area=batch-confirmation-regression --runs 1 --workers 1 --threshold 1 --pass-rate 1 --require-pass
The batch-postpone-confirmation cases additionally cover date selection and cancellation;
batch-approval-reuse is a no-write planning check of one selected batch call. These cases prohibit
updates; they do not verify post-confirmation batch execution. That flow requires separate
validation against dedicated test recommendations,
with approval before writes. Tool-call assertions use the default namespace routers,
checking the requested operation and its parameters rather than forcing individual-tool mode.
Security
[!WARNING] The
azure-advisorplugin usesnpxto download and run the Azure MCP Server, inheriting the local environment's.npmrcconfiguration. Install this plugin only on trusted devices. A compromised.npmrcconfiguration could causenpxto download and execute malicious code, potentially resulting in remote code execution.
Telemetry
The shared telemetry hook records skill and MCP tool usage. Set AZURE_MCP_COLLECT_TELEMETRY=false to opt out.
Setup
Authenticate with Azure CLI or another Azure Identity credential supported by Azure MCP, then install the plugin from the marketplace.
宿主
成员3 个技能
azure-advisorUse Azure Advisor. WHEN: "show recommendations", "top Advisor actions", "prioritize recommendations", "service retirements", "update status". Unused-resource discovery and Cost/IdleResources requests use azure-advisor-cost-optimization; generic Cost and cross-category requests stay here. DO NOT USE FOR: fixes (use azure-advisor-actionability).
azure-advisor-actionabilityGet remediation instructions for selected Azure Advisor recommendations. WHEN: fix a selected recommendation, generate remediation commands. DO NOT USE FOR: unused-resource discovery, savings or deletion prevalidation (use azure-advisor-cost-optimization).
azure-advisor-cost-optimizationAnalyze 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.
权限
- 完整安装
- 1.0.17
自动运行
- 钩子Claude CodeSessionStart
bash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness claude-code - 钩子Claude CodePostToolUse
bash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness claude-code - MCP 服务Claude Codeazure
npx -y @azure/mcp@4.0.0-beta.7 server start - 钩子CursorsessionStart
bash "${CURSOR_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness cursor - 钩子CursorpostToolUse
bash "${CURSOR_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness cursor - 钩子CursorafterMCPExecution
bash "${CURSOR_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness cursor - MCP 服务Cursorazure
npx -y @azure/mcp@4.0.0-beta.7 server start - 钩子GitHub CopilotSessionStart
command - 钩子GitHub CopilotPostToolUse
command - MCP 服务GitHub Copilotazure
npx -y @azure/mcp@4.0.0-beta.7 server start
mcp:azurepowershellshellnpxagent-plugins.orggithub.comportal.azure.cnportal.azure.comportal.azure.uswww.microsoft.com检查
低风险 · 没有发现需要提醒的地方。
未经人工审核 · 已做规则检查;模型审核尚未开启。
另有 5 处低风险标记:常见命令之类,只记录、不提醒
- 规则 · command_injection
hooks/scripts/install-telemetry.ps1:278 - 规则 · command_injection
hooks/scripts/install-telemetry.ps1:281 - 规则 · command_injection
hooks/scripts/install-telemetry.sh:426 - 规则 · command_injection
hooks/scripts/install-telemetry.sh:344 - 规则 · command_injection
hooks/scripts/install-telemetry.sh:427
文件39 个文件 · 177.8 KB
- .mcp.json137 B
- CHANGELOG.md2.4 KB
- LICENSE1.1 KB
- README.md6.7 KB
- mcp.json233 B
- plugin.json597 B
.claude-plugin/1
- plugin.json617 B
.cursor-plugin/1
- plugin.json617 B
.plugin/1
- plugin.json618 B
com.github.copilot/hooks/1
- hooks.json1.2 KB
com.github.copilot/rules/1
- advisor-routing.mdc182 B
hooks/4
- claude-hooks.json499 B
- copilot-hooks.json1.2 KB
- cursor-hooks.json562 B
- metadata.txt65 B
hooks/allowlists/3
- allowed-references.txt636 B
- allowed-skills.txt74 B
- allowed-tools.json18.0 KB
hooks/scripts/7
- install-telemetry.ps19.9 KB
- install-telemetry.shx12.0 KB
- pluginPathAllowPattern.ps1352 B
- pluginPathAllowPattern.shx403 B
- telemetry-reporter-checksums.txt798 B
- track-telemetry.ps128.4 KB
- track-telemetry.shx27.6 KB
skills/azure-advisor/1
- SKILL.md3.7 KB
skills/azure-advisor-actionability/1
- SKILL.md2.1 KB
skills/azure-advisor-cost-optimization/1
- SKILL.md2.9 KB
skills/azure-advisor-cost-optimization/references/10
- README.md1000 B
- examples.md3.7 KB
- lifecycle.md4.1 KB
- output-and-savings.md3.2 KB
- scope-resolution.md3.4 KB
- selection-and-handoff.md8.6 KB
- state-updates.md5.0 KB
- table-format.md11.5 KB
- tools-and-recovery.md6.3 KB
- workflow.md3.4 KB
skills/azure-advisor/references/1
- workflow.md4.1 KB
版本
- #31.0.17最新2026年11月20日
- #21.0.162026年11月19日
- #11.0.142026年11月17日