azure-finops-review
Skill9 starsChanged 50 days agoMITView on GitHub
Read-only monthly FinOps review of the whole Azure environment (Cost Management, budgets, Azure Advisor, Azure Resource Graph) with cost trend, where the money goes, cost per project, unusual days and jumps, budgets and forecast, savings, allocation readiness and a prioritised action list.
In this repository31 other files it gives its agents.
- labs/01-azure-operations/resources/grubify/.github/copilot-instructions.mdCopilot instructions
- azure-sre-agentSkill
- frontend-designSkill
- grillingSkill
- humanize-contentSkill
- rvap-brandSkill
- rvas-contentSkill
- skill-creatorSkill
- writing-for-agentsSkill
- sql-server-dbaSkill
- rvas-sre-agent-jumpstartSkill
- azure-change-digestSkill
- databricks-dependency-liveSkill
- defender-cloud-liveSkill
- service-health-liveSkill
- rbac-privileged-access-reviewSkill
- entra-full-credential-inventorySkill
- infra-ops-liveSkill
- aks-waf-liveSkill
- azure-backup-liveSkill
- patching-investigation-liveSkill
- operations-digest-liveSkill
- fabric-chargeback-liveSkill
- sqlmi-maintenance-resilienceSkill
- sre-usecase-builderSkill
- 0001-no-productsSkill
- 0001-iwcSkill
- 0001-vntSkill
- validated-fixtureSkill
- 0003-skill-onlySkill
- exampleSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Budgets: every budget with spend and Azure's forecast, and the subscriptions with no budget (with a suggested amount).
- Distinctive: line 28
Not covered: reservation and savings plan utilization (needs tenant-level reader roles), Marketplace invoices outside Cost Management, and …
- Very specific: line 33
Follow-up questions use operation="query" with the matching view (no files are written):
- Distinctive: line 48
Read only. The SRE Agent managed identity needs Reader on the configured subscriptions or management group (it includes cost and budget …
- Distinctive: line 49
Never create, modify or delete resources, budgets, tags, reservations or savings plans, even if asked in this conversation.
- Distinctive: line 50
Never show tokens or raw Azure responses.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Monthly Azure FinOps review
Goal
Give the cost owner one complete, explainable review of the Azure bill every month: what the last full month cost and why it changed, where the money goes and to which project, whether this month will stay within budget, what can be saved, how much of the cost can be charged back, and what to do first.
The report covers:
- Verdict and headline numbers: last full month, change on the month before, month to date, forecast for this month against the budget.
- Trend: monthly cost over the last 6 full months plus this month, and the daily cost of the last 60 days.
- Where the money goes: by subscription, resource group, service, region and the top resources, each with the change on the month before.
- Cost by project: last month, the month before, month to date, share, savings and findings per project, with the services, resource groups and resources of each project. The project comes from a tag:
PROJECT_TAG_KEYSwhen it is set, otherwise the tool detects the tag whose name means project (EN/ES/CA: project, proyecto, projecte, application, workload, service, product, cost center, business unit, department, team) and that covers most of the cost. Each resource takes the first match: its own tag, its resource group's tag (or the tag of the resource that manages the group, such as an AKS cluster), its subscription's tag, the tag on its cost records, then the resource group name rules (PROJECT_RG_RULES); the rest is Unallocated. The HTML report has a project filter. - What changed: unusual days (median of the previous 14 days, same weekday a week before, minimum increase), month-over-month jumps of services and resource groups, new services and resource groups.
- Budgets: every budget with spend and Azure's forecast, and the subscriptions with no budget (with a suggested amount).
- Savings: Azure Advisor cost recommendations, idle and orphaned resources (unattached disks, unassociated public IPs, stopped or deallocated VMs, empty App Service plans, orphaned NICs, old snapshots, idle load balancers and NAT gateways), and the share of commitment-eligible compute that runs on reservations or savings plans. Savings are never counted twice.
- Allocation readiness: share of the cost without the configured allocation tags, and the resource groups to tag first.
- Prioritised actions with the estimated monthly saving, a findings register, and coverage, sources and method.
Scope
- The subscriptions or the management group configured in the tool code (
SUBSCRIPTION_IDSorMANAGEMENT_GROUP_ID). - Cost data comes from the Cost Management Query API: three queries per subscription, plus one for the project tag on the cost records. Cost Management needs up to 2 days to settle, so the forecast and the unusual-day checks use settled days only.
- Today's tags are applied to every month, so earlier months are allocated to projects the same way.
- Not covered: reservation and savings plan utilization (needs tenant-level reader roles), Marketplace invoices outside Cost Management, and usage inside resources beyond what Azure Advisor reports. Say so when it matters.
Required tool
Use only generate-azure-finops-review.
- Monthly review:
{"operation": "report"}. - Follow-up questions use
operation="query"with the matchingview(no files are written):- "What should we do first?" ->
actions; quick numbers ->summary; - "Why did the cost go up?", "Anything unusual?" ->
anomalies; - "Are we within budget?", "Which subscriptions have no budget?" ->
budgets; - "Where can we save?", "Idle or orphaned resources?" ->
savings; - "What are the most expensive resources?" ->
resources; - "How much does each project cost?", "Which tag identifies the projects?" ->
projects; - "How much cost is untagged?" ->
allocation; - "Is the data complete?" ->
coverage.
- "What should we do first?" ->
limit(1-50) bounds the rows of a query.project(query only) narrowssummary,actions,savings,resourcesandprojectsto one project ("What can project X save?" ->view=savings,project=X). The other views stay whole-environment.project_tagsets the tag that names the projects for one run (for exampleProyecto, orProject,CostCenterin priority order) when the user says which tag they use; it overridesPROJECT_TAG_KEYSand the detection.operation="self_test"writes the complete report from built-in SIMULATED data with no network and no configuration. Use it only when the user asks for a demo or a test, and always say the data is simulated.
Security
- Read only. The SRE Agent managed identity needs Reader on the configured subscriptions or management group (it includes cost and budget reads). Cost Management Reader is enough for the cost part only.
- Never create, modify or delete resources, budgets, tags, reservations or savings plans, even if asked in this conversation. Propose the action and remind the user that a person executes it through an approved change.
- Never show tokens or raw Azure responses.
- Savings are estimates. Commitments (reservations and savings plans) are financial decisions for the customer's finance team: present Advisor's options, never recommend buying both.
- A source with status
partial,denied,errororskippedis a blind spot, never a zero. When Cost Management throttled the run, say so and suggest running it again later.
Output
Answer in the user's language (English by default):
- For
report: the five files as clickable Markdown links first: HTML report (report_url), JSON snapshot (snapshot_url), findings CSV (findings_csv_url), cost-by-resource CSV (costs_csv_url) and cost-by-project CSV (projects_csv_url), with their paths. Do not recreate or restyle the files. - The
verdictand theheadline, then thekpis: last full month and its change, month to date, forecast and budget, estimated monthly savings, untagged share, unusual days, jumps and new spend. - The projects (
kpis.projects): the tag used and whether it was detected or configured, the share of the cost allocated to a project and the top projects. If the tag was detected, invite the user to confirm it or name theirs. - The
top_actionsas a short table (severity, what, where, estimated saving per month). Whenactions_totalis larger than the actions shown, calloperation=querywithview=actionsand list them all. - Coverage (
coverage.statusandissues). If it is notok, state exactly what could not be read and the required action (usually: assign Reader, or wait for Cost Management throttling to clear). - End with an Artifacts & links section with the five links.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

