Getting "Unsupported request. offer type: WebDirect" consuming Cost Management REST API

Jonas Zanon 20 Reputation points
2023-11-14T19:31:02.7766667+00:00

Hello,

I'm getting the following error when consuming the API "Generate Cost Details Report - Create Operation":

{
    "error": {
        "code": "422",
        "message": "Unsupported request. offer type: WebDirect for get detailed report request is not supported.Unsupported request. offer type: WebDirect for get detailed report request is not supported. (Request ID: xxxxxxxx-xxxxx-xxxxxxxx-xxxxxxxxxxx)"
    }
}

URL: https://management.azure.com/subscriptions/abcdefg-3dcc-44b6-8007-23232323232/providers/Microsoft.CostManagement/generateCostDetailsReport?api-version=2023-08-01

Request Body:

{
  "metric": "ActualCost"
}

I already checked the offer type subscription and is MS-AZR-0003P.

User's image

According to this https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/understand-cost-mgt-data#supported-microsoft-azure-offers it should be supported.

I also checked my resource providers and "Microsoft.CostManagement" is enabled.

What am I missing?

Thanks in advance.

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,568 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,036 questions
0 comments No comments
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 45,181 Reputation points Microsoft Employee
    2023-11-15T09:45:52.8233333+00:00

    Hello @Jonas Zanon Thank you for reaching out to us on Microsoft Q&A platform. Happy to help!

    I see that you are using Cost Management API's to generate cost details and getting an error "Unsupported request. offer type: WebDirect for get detailed report request is not supported."

    Your offer "MS-AZR-0003P" is a Pay-As-You-Go subscription. Note from doc - https://azure.microsoft.com/en-in/updates/cost-details-api/

    "Pay-As-You-Go, MSDN and Visual Studio customers who are not a part of either an Enterprise Agreement or Microsoft Customer Agreement should continue using the Consumption Usage Details API"

    Please use "Consumption Usage Details API" - https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?view=rest-consumption-2023-05-01&tabs=HTTP to get required details.

    Hope this answers your question. If you have any questions please write back to us!


    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.