question

MohsinJesani-3993 avatar image
0 Votes"
MohsinJesani-3993 asked ·

Can't get metric definition via Api

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MalleswarReddy avatar image
0 Votes"
MalleswarReddy answered ·

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://docs.microsoft.com/en-us/rest/api/monitor/metrics/list

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.