Newbie question. I am using "az apim api import" CLI to register my API in APIM. We are using different gateways in the APIM. By default, it uses the default gateway as the Base URL. My question is how do you use CLI to assign a different gateway to the Base URL? I don't see a parameter for the CLI to assign the "Base URL" to a given API. Am I missing something? Thanks
There is no way to change gateway URL i.e, Base URL
through CLI or any other place. When we create Azure APIM
by default it takes(base url:<apim-service-name>.azure-api.net
, Developer url:<apim-service-name>.developer.azure-api.net
) which is provided by AZURE which will be similar for all azure resources like web App service url
uses this https://websitename.azurewebsites.net
.
To add or change gateway url you will need to create Custom domain name .You can refer this MICROSOFT DOCUMENTATION: For Configuring a custom domain name for your Azure API Management instance