You have a Standard tier Azure API Management (APIM) instance named apim-service with the default gateway URL apim-service.azure-api.net. You need to configure a custom domain api.contoso.com for the gateway endpoint. The TLS certificate must be managed and automatically renewed by Azure. Which sequence of steps should you perform to configure the custom domain?
- 1Create a DNS CNAME record that points the custom domain to the default API Management gateway hostname.
- 2In the Azure portal, add a custom domain to the API Management Gateway endpoint.
- 3Select Managed as the certificate option for the custom domain.
- 4Save the custom domain configuration to initiate ownership verification and certificate provisioning.
Answer
To configure a custom domain with an Azure-managed certificate, you must first create a DNS CNAME record pointing the custom domain to the default gateway hostname, add the custom domain for the Gateway endpoint in the Azure portal, choose the Managed certificate option, and then save the configuration to trigger verification and provisioning.
The correct order ensures that domain ownership can be verified dynamically by API Management. The CNAME record must exist in DNS before saving the custom domain configuration in Azure. Once the configuration is saved with the Managed certificate option selected, Azure verifies the CNAME record and requests the certificate from the Certificate Authority.
Step-by-Step Solution
Key Concept
Configuring custom domains with Azure Managed Certificates in API Management