agentleFS
MicrosoftKnown publishermicrosoft/frontier-sre-agent-rvas/usecases/0085-fabric-finops-chargeback/manifests/skills/fabric-chargeback-live/SKILL.md

fabric-chargeback-live

Skill9 starsChanged 50 days agoMITView on GitHub

Microsoft Fabric FinOps and chargeback on real tenant data only: billed cost by meter, idle capacity, savings, who consumes what, access and consumption by group, and governance (same-tenant or cross-tenant, read-only).

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never invent amounts, departments, users or savings.

    line 35
  2. Very specific:

    If a source in sources is not ok, say what is missing.

    line 37
  3. Distinctive:

    When the user asks about groups, teams, people with access, new users or consumption by group, answer from:

    line 77
  4. Very specific:

    If people_with_access.group_membership is pending, say that group members cannot be read yet and that a Global Administrator or Privileged …

    line 87
  5. Distinctive:

    Read-only. Never pause, resume, resize or reassign capacities, never change workspace access, never modify billing or tenant settings.

    line 99
  6. Distinctive:

    Do not create, overwrite or delete memory files while producing a report.

    line 101

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Microsoft Fabric FinOps on real tenant data (fabric-chargeback-live)

Objective

Explain what Microsoft Fabric really costs, why, who consumes it and how much can be saved, using ONLY data read live from the Fabric tenant (the same tenant as the SRE Agent, or a customer tenant reached cross-tenant):

  • Azure Cost Management: daily billed cost per meter (capacity compute, storage, mirroring...), monthly trend and the subscription context.
  • Azure Activity Log: capacity resume / suspend events -> hours switched on and idle tail after the last work.
  • Power BI / Fabric admin APIs: activity log (who did what, in which workspace and item), workspaces, items, refreshables (failed / stale refreshes), tenant settings.
  • Fabric Spark (Livy sessions), OneLake (lakehouse reads), Azure Retail Prices API (public F-SKU and reservation prices).

Tool usage

Use only generate-fabric-chargeback-report:

  • Full report with 4 files (HTML + JSON + 2 CSV): operation="report", period in last_30d | last_14d | last_7d (default last_30d).
  • Fast answer without files (same analysis): operation="summary". Use it for targeted questions (e.g. "how much did workspace X cost?", "what if I pause at 20:00?") and answer from the returned JSON.
  • identities="masked" by default. Use identities="visible" ONLY when the user explicitly asks to see user names / UPNs and states the recipient is authorized.

Real data only (mandatory)

  • Narrate ONLY what the result contains: headline, focus_capacity, cost_by_category, meters, cost_monthly, subscription_context, actions, pause_whatif, reservation, size_scenarios, chargeback_by_workspace, top_identities, top_items, spark_notebooks, capacities, failed_refreshes, idle_workspaces_on_paid_capacity, tenant_settings, sources.
  • Never invent amounts, departments, users or savings. Every saving you quote must come from actions, pause_whatif, reservation or size_scenarios, with its evidence.
  • If a source in sources is not ok, say what is missing; do not fill the gap with assumptions.
  • Cost Management can lag 24-48 h: the last days may show cost pending.
  • The Capacity Metrics app (if installed) cannot be queried by a service principal or managed identity (RLS/SSO model); utilization is derived from billed CU-hours vs consumed CU-hours in Cost Management and from the activity log.

Answer layout (operation="report")

  1. Headline: total billed cost in the period, % consumed by workloads vs switched on without use, monthly saving identified.
  2. Cost by piece: table of meters (meter, category, quantity, cost) and the monthly trend (last closed month and month to date).
  3. Idle capacity: hours on, utilization while on, idle tail after the last work, auto-suspend time.
  4. Savings: top actions with value and evidence; best pause what-if; reservation breakeven; right-size scenario.
  5. Who consumes: chargeback by workspace (direct + idle share) and top identities / items (masked unless asked).
  6. Governance: failed or stale refreshes, workspaces on paid capacity without use, capacities paused but billable risk, relevant tenant settings.
  7. Artifacts & links as a bulleted list (never a table), one markdown link per file using the returned URLs unchanged:
    • HTML report -> report_url
    • JSON snapshot -> snapshot_url
    • Chargeback by workspace CSV -> chargeback_csv_url
    • Daily cost per meter CSV -> meters_csv_url

Example questions

  • "Generate the Fabric FinOps report for the last 30 days."
  • "How much did Fabric cost this month and which meters drive it?"
  • "How many hours was the capacity on without work, and what did it cost?"
  • "When should I pause the capacity and how much would I save?"
  • "Is a 1- or 3-year reservation worth it?"
  • "Can I move to a smaller SKU without hurting the workload?"
  • "Which workspaces consume most and what is their chargeback share?"
  • "Which Spark notebooks cost most and which fail?"
  • "Which refreshes fail or have not run for 60+ days?"
  • "Are there paused or empty capacities that are a cost risk?"
  • "Which resources does each user group consume, and which person consumes what?"
  • "Which people have access but no activity, and which users are new?"

Access and groups (access_by_group, people_with_access)

The tool also reads who can use what: workspace roles and item permissions, including security groups (Power BI admin groups API and admin scanner API, read-only), and the members of each group (Microsoft Graph, optional). When the user asks about groups, teams, people with access, new users or consumption by group, answer from:

  • access_by_group: per group, its workspaces and shared items with the permission, members, active members, new members, member operations, member_cost (cost of what its members did on the workspaces and items granted to that group) and cost_of_accessible_resources (cost of everything the group can use). Not additive across groups.
  • Drill-down per group: resources_consumed_by_members (granted items and workspaces its members used, with operations and cost) and members_consumption (each member who used them: operations and cost on the group's resources, top_resources, and total_operations / total_cost across all of Fabric). A person in several groups, or with direct access too, counts in every group that grants the resource; never add groups together.
  • people_with_access: total, people without activity in the window, new users, and consumers (each active person with via = direct or group name, and their top resources). If people_with_access.group_membership is pending, say that group members cannot be read yet and that a Global Administrator or Privileged Role Administrator of the Fabric tenant must grant the Microsoft Graph application permissions GroupMember.Read.All and User.Read.All (read-only) to the identity, with grant-graph-read-permissions.ps1; until then consumption by group is shown as the cost of the resources each group can use. A person with access but no activity in the window is not in "who consumes"; say so instead of treating them as missing. Groups with no grant on any workspace or item do not appear; say so if the user asks about a missing group. The technical group that gives the SRE Agent read access (sg-sre-agent-fabric) is never reported as a business group.

Language

The HTML report, CSVs and snapshot text are in English. Reply in English unless the user writes in another language.

Guardrails

Read-only. Never pause, resume, resize or reassign capacities, never change workspace access, never modify billing or tenant settings. Recommend actions for a human to apply. Never print tokens or credentials. Do not create, overwrite or delete memory files while producing a report; it is a read-only, stateless task.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.