How to configure servers.url in OpenAPI specs from DeveloperPortal when using FrontDoor with custom domain for gateway?

SHM 171 Reputation points
2022-04-25T20:52:18.35+00:00

When adding a FrontDoor with custom domains in front of the developer portal (portal.api.contoso.com) and the gateway (api.contoso.com) of Azure API Management then the servers.url in the OpenAPI specs downloaded from the developer portal, still points to htts:/[instance].azure-api.net address. How do we ensure that the OpenAPI specs downloaded from the developer portal, point to the custom domain for the gateway (api.contoso.com) on the FrontDoor? Please notice that the APIM instance is without VNET connectivity. Our workaround is currently also configuring the custom domain (api.contoso.com) on the APIM gateway, but this is not very ideal (for multiple reasons).

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