/microsoft-finops-toolkit:cost-data-sourcefrom microsoft-finops-toolkit
Routes cost queries to FinOps Hub (Kusto or storage), Cost Management exports, or live API to keep scans fast. Decides data source before any spend question.
Ships in microsoft-finops-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cost questions can be answered from a FinOps hub, from existing Cost Management exports, or from the live Cost Management API (real-time, but slow at scale). The terminal UI exposes these as Start-FinOpsMultitool -DataSource Hub, Export, or API; GraphOnly skips cost scans entirely. When a hub is used, the path inside the hub depends on whether FINOPS_HUB_KUSTO_URI is set:
FINOPS_HUB_KUSTO_URI is set. Aggregation runs in the engine and only summaries return, so it handles large datasets (tens of GB / hundreds of millions of rows) without loading rows.This skill decides between a hub, exports, and the live API so cost scans stay fast and the session stays interactive. The tool doesn't discover a Kusto cluster automatically.
This routing applies only to the spend-breakdown scans that can read hub or export data:
Export only)Other cost-family scans — budget status, anomaly alerts, reservation advice, commitment utilization, savings realized — aren't derivable from cost exports. They use the live API with a hub and are excluded with Export. Governance and optimization scans are unaffected.
For any spend question that maps to one of the scans above, do this before running a cost scan:
finops-multitool).cm-resource-parent tag contains Microsoft.Cloud/hubs. The tool doesn't discover a Kusto cluster automatically. FINOPS_HUB_KUSTO_URI points the terminal UI at a specific Kusto endpoint, such as a local ftklocal emulator.A readable hub covers the scope.
Run with -DataSource Hub, or query the hub database directly. State the result is from the hub and label it "as of <data date>" — no need to ask. The hub returns billed actuals; current-month forecasts, when shown, are separate full-month totals from the Cost Management API.
A readable hub covers only some subscriptions. Tell the user the coverage (e.g., "the hub covers 1 of 4 subscriptions, ~25%"). Ask which they want:
A hub exists but isn't readable. Name the missing role or network block and its fix (for example, "you have a hub but lack Storage Blob Data Reader on its storage account — granting that role enables the storage reader; or point at the hub's Kusto cluster, which doesn't need storage access"). Ask whether to:
No hub, but Cost Management CSV exports exist.
Offer -DataSource Export. It reads one chosen export run for cost totals, resource costs, cost by tag, and the months present in that run. It requires ActualCost or FOCUS BilledCost data and doesn't read Parquet.
No usable hub or exports.
There is no hub path. Say how large the live scan is and ask before running it. If the scope is large, offer to chunk (see below) so results arrive in stages. Once the user agrees, run with -DataSource API.
Treat any live-API cost scan across many subscriptions as something to confirm first. Lead with the size ("a live cost scan across these N subscriptions can take several minutes"). Don't fire a long scan unannounced — the user's priority is a fast, informative session.
When the live API path is the only option and the scope is large, chunk it so progress is visible:
Start-FinOpsMultitool -SubscriptionId <id> -DataSource API for one subscription at a time.The detection step needs to run only once per scope; reuse its decision across the batches.
The terminal UI and HTML report name the cost source in the report header ("Cost data: ...").
<data date>" and the subscriptions the hub covers.Always tell the user which source the numbers came from and, for hub or export data, how fresh it is. An explicit hub or export request that can't be read is reported as an error; it doesn't switch to the live API. Confirm with the user before running a separate API scan.
| Situation | Action | Ask the user? |
|---|---|---|
| Readable hub covers the scope | -DataSource Hub, label "as of <data date>" | No |
| Readable hub covers part of the scope | Offer hub (partial) vs API (full) | Yes |
| Hub exists but isn't readable | Name blocker + fix; offer retry vs API | Yes |
| No hub, readable CSV exports | Offer -DataSource Export for its supported scans | Yes |
| No hub or exports | State the scan size; offer chunking; run -DataSource API | Yes |
az login, or Connect-AzAccount for the terminal UI).FINOPS_HUB_KUSTO_URI.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub microsoft/finops-toolkit --plugin microsoft-finops-toolkit14 skills in this plugin
/anomaly-investigationUse when a cost spike, anomaly alert, or unexpected charge needs root-cause analysis — drilling from a total-cost jump down to the specific service, resource, region, or change that caused it. Picks up after detection (the "what") to deliver the "why" and the fix./azure-policy-governanceUse when the user wants to enforce cost governance with Azure Policy — require or inherit tags, restrict regions/SKUs/resource types, audit untagged resources, or generate Bicep/ARM policy assignments. Pairs with the finops-multitool policy scans to close governance gaps./azure-workbooks-finopsUse when the user wants to deploy, interpret, or customize the FinOps toolkit Azure Monitor workbooks (Governance and Optimization), build a workbook from cost/resource data, or troubleshoot a workbook that shows no data. For Azure Monitor workbooks specifically — not Power BI./cost-allocationUse when the user wants to design showback or chargeback, allocate shared costs, build a tagging strategy for cost accountability, map spend to teams/products/cost centers, split shared platform costs, or model a financial hierarchy from billing and tag data./finops-multitoolThis skill should be used when the user asks to "scan for cost savings", "find orphaned resources", "find idle VMs", "check Azure Hybrid Benefit", "review tags", "tag coverage", "tag recommendations", "policy coverage", "cost by tag", "cost trend", "top resources by cost", "reservation recommendations", "commitment utilization", "realized savings", "budget status", "cost anomaly alerts", "Advisor cost recommendations", "billing structure", "contract info", or run a "FinOps assessment", "FinOps scan", or "cost optimization scan". Also use it proactively whenever the conversation turns to Azure cost, waste, savings, governance, or FinOps health and live data would answer the question better than a general explanation./finops-reportingUse when the user wants to turn cost data, scan output, or KQL results into an audience-ready narrative — executive summaries, monthly cost reviews, QBR decks, variance write-ups, or savings/optimization status reports. Converts numbers into decisions and recommendations.Other plugins' skills for the same job