I can authenticate and call the Azure Management API through Postman with the URL:
https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.Commerce/UsageAggregates?api-version=2015-06-01-preview&reportedStartTime=2015-02-01T09%3A00%3A00&reportedEndTime=2015-02-08T09%3A00%3A00&aggregationGranularity=Daily&showDetails=false
But if I try to use any Resource Type other than 'Microsoft.Commerce', such as 'Microsoft.Compute' then I get an error message of:
"code": "InvalidResourceType", "message": "The resource type could not be found in the namespace 'Microsoft.Compute' for api version '2015-06-01-preview'."
Is there a restricted list of Resource Types that can be used in the 'preview' version or am I doing something wrong here?
Ps. I retrieved the list of all available resource types using the following API call:
https://management.azure.com/subscriptions/{subscription-id}/providers?$skiptoken={skiptoken}&api-version=2015-01-01
but this won't accept the preview version as it's 'api-version' so it's probably not the right source to get the available types from.
Any help much appreciated!