I am getting this error :{"error":{"code":"AuthenticationFailed","message":"Authentication failed. The 'Authorization' header is missing."}} whenever I am trying to test my API that is
https://management.azure.com/subscriptions/{subscriptionID}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus?api-version=2019-03-01
Can anybody suggest a solution how to set authentication header in postman or API Tester.
The HTTP Authorization request header can be used to provide credentials that authenticate a user agent with a server, allowing access to a protected resource. The Authorization header is usually, but not always, sent after the user agent first attempts to request a protected resource without credentials.
Authorization
is the part of HTTP Header
and generally it is token which is Base64 encoded. In Postman, you can add it by clicking on "Headers" button.
You need to set up and configure Postman to obtain an Azure Active Directory token.
A full walk though is covered here - screen shots below for quick reference.
From the docs - a sample token request form.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With