Can't get metric definition via Api

Mohsin Jesani 1 Reputation point
2020-06-08T12:42:28.187+00:00

When I try to get metric definition for a resource via Azure rest api I get below error.

"Invalid request : metric definitions contains multiple copies of the extension api 'providers/microsoft.insights/metricdefinitions'".

I tried it for VM and storage account in both the case I got the same error.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,330 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Malleswara Reddy, G 1,631 Reputation points
    2020-06-08T12:52:54.22+00:00

    Hi,

    It's hard to tell you the exact problem without the code or the link you are following.

    Please double check your parameters - https://learn.microsoft.com/en-us/rest/api/monitor/metrics/list


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.