Skip to content

v0.6.0 — Microsoft 365 Copilot spend beside Azure

Latest

Choose a tag to compare

@alfarahn alfarahn released this 19 Nov 02:36
· 36 commits to main since this release

The agent now reads Microsoft 365 Copilot cost management next to your Azure cost, and the start page shows which products each answer covers.

✨ Highlights

  • Microsoft 365 Copilot spend (preview). With the new read-only consent Copilot Cost Management, the agent reads Microsoft Graph's Copilot cost management API (announced 17 November 2026): Copilot Credits per user, security group, service and session, balances, spending policies and credit requests. It prices credits at the pay-as-you-go list price and finds what Azure Cost Management bills for them under Microsoft Copilot Studio.
  • The admin center's Copilot views, rebuilt from Graph. The Microsoft 365 admin center's Consumption views (Policies, Users & groups, Services & agents) read an internal portal API that no app can call, so the agent builds them from Microsoft Graph with the same columns and service names: each user's Microsoft Copilot license, a policy's credits from its remaining balance, services a policy covers through Auto-apply new services, and session counts per service matched from each user's sessions by their credits.
  • See all my costs, in one question. Signed in, See all my costs is the first of the start page's four columns: four Preview cards that put every product's spend side by side in a minimal table, one row per product and a total that counts Copilot once, with a one-click breakdown of each product: What did everything cost last week?, What will this month cost in total?, Daily cost of everything this week and Where is my AI money going?. Azure, Microsoft Foundry and GitHub come from Azure Cost Management, Microsoft 365 Copilot and its agents from the Copilot cost management API. Answers use the Microsoft 365 admin center's own names for its views, columns and services (Code, Cowork, Opal, Copilot Managed Runtime, Work IQ API for custom apps and agents), and Azure Cost Management's for Azure services.
  • Copilot spending changes only with your approval. A separate consent, Copilot Cost Changes, lets the agent propose a spending limit or a credit request decision. Each runs only after you approve the exact request, and nothing is ever deleted.
  • Official product icons. A row of Azure, Microsoft Foundry, Microsoft 365 Copilot, Microsoft Agent 365 and GitHub under the title, and icons above every card's question, show which products an answer covers. Section headings are larger, and the start page lays out by the chat column's width: its sections sit side by side, with headings and card rows aligned, when there is room, and stack when there isn't.
  • Reports with charts and explanations. GenerateDataReport sheets can carry a short text and a chart (inline SVG in HTML, a native chart in Excel).
  • A start page fitted to what people ask: Price my own setup, Where can I save money? and a FinOps assessment report.
  • No Foundry project needed. The agent calls the Foundry account's own Responses API, so azd up no longer creates a project and reusing an account no longer needs one. The project API rejected newer models such as gpt-6.2-sol; the account API accepts them. The default model stays gpt-6.1-terra. Existing endpoint settings keep working, and existing conversations continue from a recap.

🧰 Added

  • Consent tiers copilotcost (read-only, with LicenseAssignment.Read.All and Group.ReadBasic.All for license and group names) and copilotchanges (changes after approval; never part of Grant all, and never held by scheduled runs).
  • ApplyAzureChange sends the nine documented Copilot cost changes after approval. The approval card shows the If-Match ETag and a plain-language summary.
  • Job template Copilot credit watch (read-only).
  • Prompts library: Copilot credits per user, Copilot policies, Copilot users & groups and Cap Copilot spend per user.
  • Cost per Foundry model deployment and per agent from the deployment and agent.name cost tags.

💬 Changed

  • Today, yesterday and the last 7 days are your own local dates, today included, from the time zone your browser reports with each message. Azure Cost Management and the Copilot daily reports count UTC days, so answers say so, and Azure's figures for today and yesterday are marked partial, because cost data arrives 8 to 24 hours after use.
  • The sidebar's Add scopes list groups its scopes under Read-only and Changes you approve.
  • Copilot cost requests run one at a time per tenant, because the service throttles bursts (HTTP 429, retry after 30 seconds).
  • A Cost Management query that gets no answer is sent again after 30 seconds instead of 60, and the "See all my costs" cards send every read in their first round.
  • Chosen ARM api-versions are kept for a day instead of an hour, saving a probe round trip per resource type.
  • The agent runs on Microsoft Agent Framework 1.27 (Microsoft.Agents.AI with Microsoft.Extensions.AI.OpenAI) over the Foundry account's Responses API, replacing the preview Foundry package and its beta Azure.AI.Projects dependencies. AzureOpenAI:ProjectName, EXISTING_AI_PROJECT_NAME and the AZURE_AI_PROJECT_NAME output are removed.
  • The Copilot and See all my costs cards send short questions; the procedure lives once in the system prompt, so typed questions get the same answers.
  • README screenshots show the current app.

🛠 Fixed

  • Cost Management queries name the app with a ClientType header, so they no longer draw on Cost Management's default client-type quota, which throttled them even at low rates. Queries that never answered all came during such throttling.
  • A read that gets no response is sent once more before the agent answers, instead of leaving the figure unknown.
  • A consent whose token can no longer be refreshed (revoked, or scopes added since it was granted) is offered again, instead of showing as Consented with no button.
  • Microsoft 365 Copilot license questions in a tenant without usage reporting say activity is unavailable for that reason, and trial seats are not counted as waste.
  • Facts come only from pages the agent read this turn, never from pages a web search only opened.
  • Assessment reports state their verdict: the overall stage and the most urgent actions.
  • An answer is kept when the model service fails only after the answer was complete.
  • A read that gets no response is sent once more, and one hanging line no longer cancels a multi-URL call.
  • A model stream that dies on the wire is resent instead of waiting 10 minutes.
  • Cleanup scripts recheck their targets with the requests that found them.
  • Benchmark scores come from the publisher's own leaderboard.
  • List prices come in the currency of the costs they're compared with, Resource Graph is scoped by management group instead of every subscription ID, "which" questions list every matching item, and pricing calculator requests are answered with what is possible.
  • API facts: only open Advisor recommendations count, Copilot usage reports use valid periods, Foundry per-project cost comes from the project tag, and model retirement dates come from the ARM Models API.
  • A conversation whose stored model context lives in another Responses store, or has expired, continues from a recap instead of failing its next question.
  • Opal and every other Copilot service appear in the per-service spend.
  • A query that reads a column its table lacks now fails and names the table's columns, instead of reading the column as empty. An assessment report had called a month's tagged cost untagged, because Cost Management returns a tag grouping as TagKey and TagValue columns.
  • Reservation and savings plan savings at a VM's actual hours count its compute cost only. Software, networking, storage and services such as Microsoft Defender for Cloud billed to the same VM keep their price under a commitment, so they no longer inflate the saving.
  • A model request that continues a response the service has not stored yet is sent again after two seconds, instead of ending the answer.
  • Newest-model comparisons include the Claude models Foundry runs on Anthropic infrastructure, marked as previews where Microsoft Learn says so.

🔐 Security

  • Disconnect and revoke also clear token expiry times, so a disconnected user's tokens are no longer refreshed in the background.
  • ApplyAzureChange refuses URLs with . or .. segments, so an approved change goes to exactly the URL shown.
  • QueryAzure reads Microsoft Graph with GET only (plus five read-only lookups) and refuses $batch, because Graph tokens carry every scope a user granted.

Full changelog: v0.5.2...v0.6.0