Azure Cost Management Costmanagement
Azure Cost Management is Microsoft’s Azure service for tracking, analyzing, budgeting, and optimizing cloud spending.
- Base URL:
https://management.azure.com - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
operations_list— GET /providers/Microsoft.CostManagement/operations — Lists all of the available consumption REST API operations.views_list— GET /providers/Microsoft.CostManagement/views — Lists all views by tenant and object.views_get— GET /providers/Microsoft.CostManagement/views/{viewName} — Gets the view by view name.budgets_list— GET /{scope}/providers/Microsoft.CostManagement/budgets — Lists all budgets for the defined scope.budget_get— GET /{scope}/providers/Microsoft.CostManagement/budgets/{budgetName} — Gets the budget for the scope by budget name.views_listbyscope— GET /{scope}/providers/Microsoft.CostManagement/views — Lists all views at the given scope.
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: operations_list
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: operations_list, views_list, views_get, budgets_list, budget_get, views_listbyscope |
budgetName |
string | no | — | Path parameter budgetName (required by some operations). |
scope |
string | no | — | Path parameter scope (required by some operations). |
viewName |
string | no | — | Path parameter viewName (required by some operations). |
query |
string | no | — | Query-string parameters as a JSON object string, e.g. {"limit": 50}. Parsed and url-encoded onto the request. |