AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

cost-analysis

Analyze actual Azure spend, bill changes, and AKS or AI costs. WHEN: "Azure cost breakdown", "most expensive resources", "why did my bill increase", "cost spike", "unexpected charge", "Cosmos DB charges", "Foundry model costs", "AKS cluster cost", "namespace cost", "enable AKS cost analysis", "idle AKS capacity". DO NOT USE FOR: forecasts, pricing estimates, rightsizing, commitments, or budgets.

Original source
microsoft
License
MIT
Pinned revision
3f5b461b2314e01c400564051e92469114c5b68f

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read microsoft--cost-analysis at revision 3f5b461b2314e01c400564051e92469114c5b68f, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 13

references/cost-query/examples.md

Cost Query Examples

Pass these parameters to query_costs. If that operation is unavailable, use the official Cost Management Query API schema and preserve these constraints.

| Scenario | Parameters | |---|---| | Month-to-date cost by service | timeframe=MonthToDate, granularity=None, groupBy=ServiceName, metric=Cost | | Daily trend for a custom period | from=<YYYY-MM-DD>, to=<YYYY-MM-DD>, granularity=Daily, metric=Cost | | Cost by resource group | timeframe=MonthToDate, groupBy=ResourceGroupName, sortDirection=desc | | Amortized commitment cost | timeframe=TheLastMonth, groupBy=BenefitName, metric=AmortizedCost | | Ten most expensive resources | subscription scope, groupBy=ResourceId, top=10, sortDirection=desc | | One service only | filterDimension=ServiceName, filterValues=<exact-service-name> |

Use list_dimensions when an exact filter value or available dimension is unknown. It belongs to the opt-in CostManagement toolset.

Tag queries are unsupported. For resource tag inventory, use the Resource Graph generate_query, validate_query, and execute_query sequence, then correlate resource IDs with cost results.