Labsco
microsoft logo

azure-cost

✓ Official227

by microsoft · part of microsoft/GitHub-Copilot-for-Azure

Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits.

🧩 One of 7 skills in the microsoft/GitHub-Copilot-for-Azure package — works on its own, and pairs well with its siblings.

This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.

Azure Cost Management Skill

Query historical costs, forecast future spending, optimize to reduce waste.

Routing

User IntentWorkflow
Understand current costsCost Query
Reduce costs / find wasteCost Optimization
Project future costsCost Forecast

Quick Reference

PropertyValue
Query APIPOST {scope}/providers/Microsoft.CostManagement/query?api-version=2023-11-01
Forecast APIPOST {scope}/providers/Microsoft.CostManagement/forecast?api-version=2023-11-01
Required RoleCost Management Reader + Monitoring Reader + Reader (on target scope)

Scope Patterns

  • Subscription: /subscriptions/<id>
  • Resource Group: /subscriptions/<id>/resourceGroups/<name>
  • Management Group: /providers/Microsoft.Management/managementGroups/<id>
  • Billing Account: /providers/Microsoft.Billing/billingAccounts/<id>

Service-Specific Optimization

References