Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Azure: accessing the Usage API using the oAuth key from the Enterprise account

$
0
0

I have an Enterprise account with a 'Usage Api Access Key'. I can use this key to make calls to:

http://ea.azure.com/rest{account-id}/usage-reports

by setting the Authorization header on my REST call.

Unfortunately I can't use these same keys to call the Usage Management API using the an address like the one below with the subscription Id substituted in:

http://management.azure.com/{suscription-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

as the result is always: { "error": { "code": "AuthenticationFailed", "message": "Authentication failed." } }

Do I have to create a different type of key for this API?

Any help much appreciated!





Viewing all articles
Browse latest Browse all 4189

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>