Azure billing API test or dummy data

Hennie van Zyl 20 Reputation points
2023-07-20T11:51:38.1866667+00:00

Is there any test data available for:
https://learn.microsoft.com/en-us/rest/api/billing/2019-10-01-preview/billing-accounts/get?tabs=HTTP#code-try-0

I would like to test, but my subscription does not have applicable data for this API call

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
1,856 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 24,546 Reputation points Microsoft Employee
    2023-07-25T12:59:09.0133333+00:00

    Apologies for delayed response @Hennie van Zyl . Unfortunately, you do need access to an existing billing account in order to use the Billing Accounts API method. There isn't a way to use "test data". If the use of test data is for testing a system you're developing, I would advise using the Sample Response on the documentation to mock the response.

    0 comments No comments

0 additional answers

Sort by: Most helpful