I want to use the Azure Management rest API to start and stop some Virtual Machines.
In the HTTP header I need a Authentication token as described here: Common parameters and headers.
I create a new app in the AD Section of Azure portal and added the auth token to the http header in this format:
Authorization : Basic clientID:token
where clientID:token
is base64 encoded, but I am getting this error:
{"error":{"code":"AuthenticationFailedInvalidHeader","message":"Authentication failed. The 'Authorization' header is provided in an invalid format."}}