skip to Main Content

Azure Cost Management API is not returning the Blob location

I have a PowerShell script that calls the Microsoft Azure API for cost management. I first call: https://management.azure.com/providers/Microsoft.Billing/enrollmentAccounts/*****5/providers/Microsoft.CostManagement/generateCostDetailsReport?api-version=2023-08-01" This returns a 202 as expected: StatusCode : 202 StatusDescription : Accepted Content : {} RawContent : HTTP/1.1 202 Accepted Pragma: no-cache…

VIEW QUESTION

How to make an azure cost management export run daily and only export that day or previous days data? Using terraform or azure api

Taking the Terraform resource example: resource "azurerm_billing_account_cost_management_export" "example" { name = "example" billing_account_id = "example" recurrence_type = "Daily" recurrence_period_start_date = "2020-08-18T00:00:00Z" recurrence_period_end_date = "2020-09-18T00:00:00Z" export_data_storage_location { container_id = azurerm_storage_container.example.resource_manager_id root_folder_path = "/root/updated" } export_data_options { type = "Usage" time_frame =…

VIEW QUESTION

azure amortized cost usagestart and usageend date error while passing it as variable

I am trying to pull azure amortized cost at subscription level but when I pass usage_start_date and usage_end_date in hardcoded way I am able to pull data : Example : "https://management.azure.com/subscriptions/"+subs+"/providers/Microsoft.Consumption/usageDetail?$filter=properties/usageStart eq '2022-05-01' and properties/usageEnd eq '2022-05-31'&metric=AmortizedCost&api-version=2021-10-01" But when I…

VIEW QUESTION
Back To Top
Search