Hi All,
I am using Service Management REST API for getting metrics for Azure role instance and able to get metric definition for the role instance using REST call. But when I tried to get metrics using following api call:
https://management.core.windows.net/<subscription-id>/services/monitoring/metricvalues/query?resourceId=/hostedservices/<service-name>/deployments/<deployment-name>/roles/<role-name>/roleInstances/<role-instance-name>&names=Disk Read Bytes/sec,Disk Write Bytes/sec,Network Out,Percentage CPU,Network In&timeGrain=PT1H&startTime=2015-09-06T11:12:39Z&endTime=2015-09-07T11:12:39Z
We are using certificate based authentication and sending request header "x-ms-version = 2013-11-01" but it is giving me following error:
[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"><HTML><HEAD><TITLE>Bad Request</TITLE><META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD><BODY><h2>Bad Request</h2><hr><p>HTTP Error 400. The request is badly formed.</p></BODY></HTML>]
What could be the reason for this?
- Moved by Syed Irfan HussainMicrosoft contingent staff, Moderator Monday, September 07, 2015 11:52 AM Issue related to cloud services