I am trying to collect azure metrics using REST api. I have a free subscription to azure account.
I am using the following wget to get the json message.
wget https://management.azure.com/subscriptions/XXXXXXX/resourceGroups/RG_SOUTH_INDIA/providers/Microsoft.Compute/virtualMachineScaleSets/linuxscal/metrics?api-version=2014-04-01
XXXXXXX- is my subscription id.
I get the following Error message.
Resolving management.azure.com... 13.67.231.219
Connecting to management.azure.com|13.67.231.219|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.
What is wrong with my subscription/Authorization?!!
Thanks in Advance for your help guys!! Am Stuck!!