PluginLow riskUnclaimed

azure-advisor

Azure Advisor recommendations, service-retirement impact, and customer-ready remediation guidance.

microsoftmicrosoft/azure-advisor-plugin★ 3.2kVersion 1.0.17Updated Nov 20, 2026

Description

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-advisor for recommendation discovery, summaries, affected resources, metadata, service retirements, and lifecycle updates.
  • azure-advisor-actionability for 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-optimization for scope resolution, Cost / IdleResources discovery, 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-advisor plugin uses npx to download and run the Azure MCP Server, inheriting the local environment's .npmrc configuration. Install this plugin only on trusted devices. A compromised .npmrc configuration could cause npx to 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.

Hosts

HostInstalls
Claude Code3 skills2 hooks1 MCP server
Cursor3 skills3 hooks1 MCP server
GitHub Copilot3 skills2 hooks1 MCP server
CodexSkills only
OpenCodeSkills only

Members3 skills

  • 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.

Permissions

Full install
1.0.17

Runs on its own

  • HookClaude CodeSessionStartbash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness claude-code
  • HookClaude CodePostToolUsebash "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness claude-code
  • MCP serverClaude Codeazurenpx -y @azure/mcp@4.0.0-beta.7 server start
  • HookCursorsessionStartbash "${CURSOR_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness cursor
  • HookCursorpostToolUsebash "${CURSOR_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness cursor
  • HookCursorafterMCPExecutionbash "${CURSOR_PLUGIN_ROOT}/hooks/scripts/track-telemetry.sh" --harness cursor
  • MCP serverCursorazurenpx -y @azure/mcp@4.0.0-beta.7 server start
  • HookGitHub CopilotSessionStartcommand
  • HookGitHub CopilotPostToolUsecommand
  • MCP serverGitHub Copilotazurenpx -y @azure/mcp@4.0.0-beta.7 server start
DeclaredDetected
Runs code—mcp:azurepowershellshell
Installs—npx
Runs install scripts—None
Network—agent-plugins.orggithub.comportal.azure.cnportal.azure.comportal.azure.uswww.microsoft.com
Needs credentials—None
Outside the workspace—None
Agent tools—None

Checks

Low risk · Nothing worth a warning was found.

Not reviewed by a person · Checked by rules; the model review is not switched on yet.

5 minor marks: common commands and the like, noted but not a concern
  • Rule · command_injectionhooks/scripts/install-telemetry.ps1:278
  • Rule · command_injectionhooks/scripts/install-telemetry.ps1:281
  • Rule · command_injectionhooks/scripts/install-telemetry.sh:426
  • Rule · command_injectionhooks/scripts/install-telemetry.sh:344
  • Rule · command_injectionhooks/scripts/install-telemetry.sh:427

Files39 files · 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

Versions

  1. #31.0.17latestNov 20, 2026
  2. #21.0.16Nov 19, 2026
  3. #11.0.14Nov 17, 2026

Open in Codeg

Or copy its address to search for in Codeg’s Discover.

microsoft/azure-advisor-plugin

No Codeg yet?Download