Azure-docs: Unauthorized error on following the instructions in the page

Created on 17 Sep 2018  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

I followed the steps as mentioned in this page. Even though I created the API Management instance, on clicking the Test option in the Portal, it did not auto-populate Ocp-Apim-Subscription-Key. On clicking Send, I got the below error

{
"statusCode": 401,
"message": "Access denied due to missing subscription key. Make sure to include subscription key when making requests to an API."
}

I tried the Developer Portal option but got the same result. Please let me know if any other details are needed for reproducing/replicating the issue.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

api-managemensvc assigned-to-author doc-bug triaged

Most helpful comment

Yes, we missed it, I will add it to the doc. Glad it worked and thanks for catching it.

All 4 comments

@sudeep-sol Can you make sure you assigned a "Product" to your API? If not, please see if it works once you do.

image

Excellent!!! The response was quick and it fixed the issue. Can this be documented in the same page?

Yes, we missed it, I will add it to the doc. Glad it worked and thanks for catching it.

Closing the issue as the solution provided in the screenshot worked fine

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments