Share via

Issue with adding custom domain

Jakub Leszczyński 0 Reputation points
2024-10-14T21:45:33.2066667+00:00

Hi,

I am trying to add custom domain (subdomain-a.domain.net) to APIM (consumption). After I provide domain, certificate from .pfx file (wildcard certificate) and password (DNS is set up properly), when I click Save everything looks like OK, but suddenly domain disappears and APIM starts to update. It takes few minutes before I can do anything with it.

However when I try to add other custom domain (ie. subdomain-b.domain.net) with the same pfx etc. It works fine and domain is added successfully. What I am doing wrong?

Thank you for help and advice.

Jakub

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Deepanshu katara 18,150 Reputation points MVP Volunteer Moderator
    2024-10-15T05:25:03.4233333+00:00

    Hello Jakub , Welcome to MS Q&A

    Adding a custom domain to Azure API Management (APIM) can fail for one subdomain while succeeding for another due to permission issues or incorrect DNS configurations. Here are some potential reasons and solutions:

    Permission Issues: Ensure that the API Management service has the necessary permissions to access the Key Vault used for the custom domain. If the service does not have the appropriate access, it will result in a failure.

    DNS Configuration: Verify that all DNS records for the failing subdomain are correctly set up. This includes ensuring that CNAME records are properly configured and there are no incorrect DNS settings.

    For more detailed troubleshooting steps, you can refer to the Failed to update API Management service hostnames documentation.

    Kindly accept answer if it helps

    Please let us know if any further questions

    Thanks

    Deepanshu

    Was this answer helpful?


Your answer

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