I just want to be able to do a rest call using Azure Web Api Management without needing to pass the subscription-key in the url. Is that possible?
-
Could you please provide an example of the operation you want invoked? – sharptooth Aug 12 '14 at 08:52
-
I want https://xxxx.azure-api.net/api/returnallstores?subscription-key=
to be changed to https://xxxx.azure-api.net/api/returnallstores – alinulms Aug 12 '14 at 09:14 -
Do you mean passing the subscription key in header rather than in URL? – nababa Aug 12 '14 at 20:25
-
What are you trying to achieve? – trailmax Aug 12 '14 at 22:10
-
I am having an old app calling a service somewhere else than Azure. I have the new app using Azure. I want to have all the service calls go trough azure but i don't want / cannot modify the old app so that it appends the query string. – alinulms Aug 14 '14 at 07:38
-
The only solution I can think of is having your old service call something first, and have that process forward the calls to Azure and append the subscription key. – nababa Aug 19 '14 at 05:42
-
I was wondering the same thing. I thought in Policies you might be able to use the various set-header, set-query policies, but they are evaluated too late in the process. Have you found any answer to this @alinulms? – ckittel Sep 25 '14 at 22:35
2 Answers
Azure API management allows for anonymous subscriptions.
Create a Product without requiring a subscription (Product -> Settings -> Require Subscription) Add your API to this product.
https://azure.microsoft.com/en-us/documentation/articles/api-management-howto-add-products/

- 3,496
- 4
- 31
- 42
You can do this:
API Management Portal -> Product -> click a product -> Settings -> Require Subscription
However, the subscription key provides identification to the Azure API portal. Without it, you lose analytics, security, throttling...basically every reason why you would want to want to use API Management in the first place.
Unless you have a reason to uncheck this and still use API management (which you might have), I would recommend letting the user just hit the API directly if you don't want subscription keys. I only would uncheck this checkbox if I had a special product line for demonstration purposes.

- 431
- 3
- 8