error with App Service Managed Certificate

Ernesto 0 Reputation points
2023-01-26T16:19:53.8733333+00:00

Hi, I'm trying to create a managed certificate with terraform, but I receive this error, I already have a CNAME from MYSITE to APPSERVICENAME.azurewebsites.net

"Properties.CanonicalName is invalid. Not found CNAME directly pointing to *.azurewebsites.net. Current CNAME record of the hostname MYSITE is empty."

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,518 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 14,286 Reputation points
    2023-02-03T03:01:10.1366667+00:00

    Hi @Ernesto , thanks for the question. sorry to hear you're facing this error.

    Usually that error message means that your CNAME record for MYSITE is not correctly pointing to APPSERVICENAME.azurewebsites.net.

    Please make sure that the CNAME record for MYSITE is correctly configured and pointing to APPSERVICENAME.azurewebsites.net in your DNS configuration. It can sometimes take some time (up to 72hrs) for changes to DNS records to propagate, so give it a bit of time and then check again if the error persists.

    Also, you need to make sure that your custom domain meets the requirements for managed certificates, which include:

    • The custom domain must be an apex domain or a subdomain.
    • The custom domain must have an A record pointing to your web app's IP address.
    • The custom domain must not be supported on apps that are not publicly accessible.
    • The custom domain must not be supported with root domains that are integrated with Traffic Manager.

    Hope that helps. Please let us know if you have further questions

    Thanks,

    Grace

    0 comments No comments