Azure APIM - Host Names and Base URLs

Harjani, Ashish 201 Reputation points
2020-08-19T02:53:46.103+00:00

Hi,

I have 2 questions:

  1. I have the architecture as Internet -> Azure App GW -> Azure API Manager. The host name exposed to internet is different , which basically is mentioned in APP Gateway, lets say: https://external_host and once the request reaches to APP GW, it forwards it to the Azure APIM host , lets say to : https://apim_host. Now the issue is for our customers when they login to the Azure APIM developer portal and look at the APIs then they see the URL and host name of the APIM which is https://apim_host. It will work fine if they test in developer portal , but that URL won't work for them if they integrate it with their system. For that they need to use the APP GW Host name which is https://external_host. How can I overwrite the host name in Developer Portal some how so that when customers login , they see the URL which they are supposed to integrate with ?
  2. I also have Self Hosted GW enabled in Azure APIM. Now when I select that Gateway to the API, it shows the Base URL for the Managed ( External ) GW and not for the Self Hosted GW. How can we enable the host name for Self Hosted GW as the Base URL , so that it reflects that immediately while creating the API? Basically, there should be 2 Base URLs i.e. one for Managed GW and another for Self Hosted GW and it should toggle the Base URL depending on which GW the API will be deployed on.

Thanks.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,912 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,606 Reputation points Microsoft Employee
    2020-08-19T17:37:18.377+00:00

    For 1, you would have to configure the external domain as a custom domain in APIM.

    For 2, looks like the default hostname used in the developer portal is the first available one (this line specifically) but since the developer portal is open source, you could customize it to your needs and self-host it as well.