Is the public preview feature of Cost Management anomaly detection approachable in Powershell or API?

Sander Koster 26 Reputation points
2022-08-26T09:13:07.703+00:00

In the cost analysis public preview there is now an option for detecting anomalies within subscriptions.
It is possible to receive an email for every anomaly detected through the "cost alerts" option but as far as I can tell you can't get the data from any REST API yet (neither cost management or consumption).

So my question is: Is there any way in which these cost anomalies can be queried through either Powershell or an API call so that I could keep track of them better?

Documentation on cost anomaly detection: https://learn.microsoft.com/en-us/azure/cost-management-billing/understand/analyze-unexpected-charges

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

Accepted answer
  1. Ryan Hill 29,131 Reputation points Microsoft Employee
    2022-08-28T21:37:56.733+00:00

    Since Cost Management Anomaly is in public preview, I doubt Powershell commandlets have been made available. I also didn't see anything definitions on under the docs, so I will have to reach out to the team and see what the timeline may be. In the meantime, what you can do is on the preview screens on the portal, run an F12 network trace to examine what API calls are being made so you can at least try to experiment with what's there already.

    2 people found this answer helpful.

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.