Azure Cost Management Exports API

Create, schedule, run and delete recurring Cost Management exports that write cost and usage data — including FOCUS-format datasets — to a storage account you own.

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /{scope}/providers/Microsoft.CostManagement/exports List cost exports at any scope · Exports list #
Ask an LLM
“What scheduled cost data exports are configured at my billing scope?”
“Can I include each export's last run status when listing exports at a scope?”
Tell an agent
List all cost exports at scope {scope}.
List exports at {scope} expanded with {expand}.
GET /{scope}/providers/Microsoft.CostManagement/exports/{exportName} Get a cost export at a scope by name · Exports get #
Ask an LLM
“Where does a particular cost export write its files and on what schedule?”
“Can I get one export's definition at a billing scope along with its recent run history?”
Tell an agent
Get cost export {exportName} at scope {scope}.
Show export {exportName} in {scope} expanded with {expand}.
PUT /{scope}/providers/Microsoft.CostManagement/exports/{exportName} Create or update a scheduled cost export · Exports create or update #
Ask an LLM
“How do I set up a daily export of cost data to a storage account at a billing scope?”
“Why does updating an existing export need the latest eTag?”
Tell an agent
Create cost export {exportName} at scope {scope} with definition {properties}.
Update export {exportName} in {scope} to {properties} using eTag {eTag}.
DELETE /{scope}/providers/Microsoft.CostManagement/exports/{exportName} Delete a cost export at a scope · Exports delete #
Ask an LLM
“How do I stop and remove a cost export at my billing account scope?”
“Can I delete an export by name at any scope, such as a management group?”
Tell an agent destructive · confirm first
Delete cost export {exportName} at scope {scope}.
Remove the {exportName} export configured at {scope}.
POST /{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run Run a cost export now · Exports execute #
Ask an LLM
“Can I trigger a cost export immediately instead of waiting for its schedule?”
“Is it possible to run an export on demand for a custom date range?”
Tell an agent
Run export {exportName} at scope {scope} now.
Run export {exportName} in {scope} for the period {timePeriod}.
GET /{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory Get an export's run history · Exports get execution history #
Ask an LLM
“Did my cost export succeed the last few times it ran?”
“When did an export last run and were there any failures?”
Tell an agent
Show the run history of export {exportName} at scope {scope}.
List past executions of cost export {exportName} in {scope}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/exports List export resources in a subscription · Azure Cost Management REST API List by subscription #
Ask an LLM
“Which export resources exist across a whole subscription, by subscription ID?”
“Can I list every exports resource in a subscription without naming a scope path?”
Tell an agent
List all export resources in subscription {subscriptionId}.
Show every exports resource under subscription {subscriptionId}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports List export resources in a resource group · Azure Cost Management REST API List by resource group #
Ask an LLM
“What export resources are deployed in a specific resource group?”
“Can I list exports resources for just one resource group in a subscription?”
Tell an agent
List export resources in resource group {resourceGroupName} of subscription {subscriptionId}.
Show the exports resources inside {resourceGroupName} under {subscriptionId}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports/{name} Get an export resource in a resource group · Azure Cost Management REST API Get resource #
Ask an LLM
“How do I fetch one exports resource from a resource group by its name?”
“Can I read a resource-group export resource's tags and location?”
Tell an agent
Get export resource {name} in resource group {resourceGroupName} of subscription {subscriptionId}.
Fetch the exports resource {name} from {resourceGroupName} in {subscriptionId}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports/{name} Create an export resource in a resource group · Azure Cost Management REST API Create or update resource #
Ask an LLM
“How do I deploy an exports resource into a resource group with tags and a location?”
“Can I replace a resource-group export resource's full definition with a PUT?”
Tell an agent
Create export resource {name} in resource group {resourceGroupName} of subscription {subscriptionId} in {location}.
Create or replace exports resource {name} in {resourceGroupName} under {subscriptionId} with tags {tags} and properties {properties}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports/{name} Patch an export resource in a resource group · Azure Cost Management REST API Update resource #
Ask an LLM
“Can I partially update an exports resource in a resource group with a PATCH?”
“Is there a way to modify a resource-group export resource without recreating it?”
Tell an agent
Patch export resource {name} in resource group {resourceGroupName} of subscription {subscriptionId}.
Apply a partial update to exports resource {name} in {resourceGroupName} under {subscriptionId}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/exports/{name} Delete an export resource in a resource group · Azure Cost Management REST API Delete resource #
Ask an LLM
“How do I delete an exports resource from a specific resource group?”
“Can I remove a resource-group export resource by subscription, group and name?”
Tell an agent destructive · confirm first
Delete export resource {name} from resource group {resourceGroupName} in subscription {subscriptionId}.
Remove the exports resource {name} in {resourceGroupName} under {subscriptionId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-cost-management:microsoft-azure-cost-management-exports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-cost-management-exports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Cost Management Exports API
  x-refined-note:
  - x-typespec-generated differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Exports across 2 of this provider''s published API definitions: microsoft-azure-cost-management-openapi.json, microsoft-azure-cost-management-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:


# --- truncated at 32 KB (45 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-azure-cost-management/refs/heads/main/openapi/microsoft-azure-cost-management-exports-api-openapi.yml