estimate-azure-cost

estimate-azure-cost is a command for Claude Code from armanzeroeight/fastagent-plugins. It costs 8 tokens per session (419 once invoked), scanned A, original, MIT.

A command that reviews spending on Microsoft Azure cloud resources for a subscription or resource group.

In plain words
What is it for?
Use it to inspect Azure costs, identify unused resources and oversized virtual machines, compare storage options, and estimate savings from changes such as reserved capacity or Spot VMs.
Why use it?
It helps find what is driving the bill and where resources may be unused or larger than needed.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/armanzeroeight/fastagent-plugins/estimate-azure-cost
Clone the repo
git clone --depth 1 https://github.com/armanzeroeight/fastagent-plugins

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for estimate-azure-cost

README.md
[![agentmods](https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/estimate-azure-cost.svg)](https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/estimate-azure-cost)
Your own site
<a href="https://agentmods.dev/commands/armanzeroeight/fastagent-plugins/estimate-azure-cost"><img src="https://agentmods.dev/badge/commands/armanzeroeight/fastagent-plugins/estimate-azure-cost.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.00419
Opus 5 $0.00004 $0.00210
Sonnet 5 $0.00002 $0.00084
Haiku 4.5 $0.00001 $0.00042

Measured 6d ago against content hash 6ce734d2cba7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

estimate-azure-cost scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/azure-toolkit/commands/estimate-azure-cost.md · 73 lines

What it actually says

Estimate Azure Cost

Context

  • Azure CLI version: !az --version 2>&1 | head -1 || echo "Azure CLI not installed"
  • Current subscription: !az account show --query name -o tsv 2>&1 || echo "Not logged in"
  • Resource groups: !az group list --query "[].name" -o tsv 2>&1 | head -10 || echo "No resource groups"

Your Task

Analyze Azure costs and provide optimization recommendations for the specified resource group or subscription.

Arguments

  • $1: Resource group name (optional, analyzes entire subscription if not provided)

Steps

  1. Analyze current costs

    • Query cost management data
    • Group by resource type and service
    • Identify top cost drivers
  2. Identify optimization opportunities

    • Find unused resources
    • Check for oversized VMs
    • Review storage tiers
    • Identify RI candidates
  3. Provide recommendations

    • Reserved instance opportunities
    • Rightsizing suggestions
    • Azure Hybrid Benefit eligibility
    • Spot VM candidates
    • Storage optimization
  4. Calculate potential savings

    • Estimate savings per recommendation
    • Prioritize by impact
    • Provide implementation steps

Output Format

## Azure Cost Analysis

**Scope:** [subscription/resource-group]
**Period:** Last 30 days
**Total Cost:** $[amount]

### Top Cost Drivers
1. [Service]: $[amount]
2. [Service]: $[amount]

### Optimization Opportunities

**High Priority (Est. Savings: $[amount]/month)**
- [Recommendation with details]

**Medium Priority (Est. Savings: $[amount]/month)**
- [Recommendation with details]

### Implementation Steps
1. [Step with command]
2. [Step with command]
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 73 lines · 8 tokens per session scan A 6ce734d2cba7

Subscribe to this mod's changes

estimate-azure-cost is a command published in the GitHub repository armanzeroeight/fastagent-plugins (29 stars, last pushed 1mo ago), licensed MIT. It adds 8 tokens to every session and 419 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.