Multiple APIs in APIM service - can't configure them via subdomain instead of suffix

Michal Jarzab 41 Reputation points
2022-11-11T13:35:50.17+00:00

Hi,

I'm trying to configure Azure API Management Service with multiple APIs added, where each of APIs is accessed via subdomain but not suffix.
To give an example:

I have two APIs which I want to expose via APIM:

  • demo.example.api.com
  • sales.example.api.com

I can easily add those APIs in APIM by exposing them via single APIM domain (like <my-apim-name>.azure-api.net) and some suffix like:

  • <my-apim-name>.azure-api.net/demo (demo suffix for demo API)
  • <my-apim-name>.azure-api.net/sales (sales suffix for demo API)

What I would like to do instead, is to expose those two APIs via single APIM instance through subdomains:

  • demo.<my-apim-name>.azure-api.net
  • sales.<my-apim-name>.azure-api.net

Is that possible, as I haven't found that option in the APIM settings for specific API.

  • I have DNS server where I can configure specific DNS records...
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,453 questions
0 comments No comments
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,441 Reputation points Moderator
    2022-11-11T15:16:42.313+00:00

    @Michal Jarzab Thank you for reaching out to Microsoft Q&A. Based on my understanding, you are trying to set up custom subdomains for each API (demo, sales) like demo.example.api.com, sales.example.api.com. Unfortunately, this is not possible since custom domains can be set only at gateway level (not product or API level) and refer other thread for similar discussion.

    As discussed in other thread, you can create additional domains like demo.example.api.com, sales.example.api.com for APIM gateway and set up demo or sales suffix like you mentioned above (for each API) and then restrict each domain to a specific API. To restrict each API to a custom domain has been already discussed here). You can share your feedback with our product team via aka.ms/apimwish so that others can upvote it too. I also agree this feature would be benefit a lot of users as well.

    If you have any questions on this, feel free to add a comment and would be happy to answer. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.