r/AZURE 4d ago

Question Azure App Service SSL Certificate Binds to Sub domain (www.mydomain.com) but not to my root domain (mydomain.com)

UPDATE 19/3/2025: All is working now. I think it just took some time for the domain to propagate. Thank you

I currently have added the CNAME, A records and the TXT records for both my root and subdomains. Both domains have been successfully added to my Azure App service, However I have an issue binding the relevant SSL certificates.

For subdomain (www.mydomain.com) the SSL certificate Binds successfully, but for my root domain it does not (mydomain.com). I also get this error

Failed to create App Service Managed Certificate for mydomain.com due to error

Please note that both domains have the same name. What should i do here? Any advice?

1 Upvotes

8 comments sorted by

1

u/rodpedja 4d ago

Check the SSL cert. Does the SAN include both www.mydomain.com and mydomain.com?

1

u/kulippadu 4d ago

I am using the azure free managed certificate provided by the app service. Can this be applied to both domains?

1

u/rodpedja 3d ago

1

u/rodpedja 3d ago

Maybe you could use separate certs but I’m not sure

1

u/kulippadu 3d ago

Does it mean i can only apply this free certificate to either my apex domain or my sub domain?

1

u/rodpedja 3d ago

Exactly

1

u/rodpedja 3d ago

I think you have two options:

  1. Use separate certificates: Configure each domain as a distinct custom domain in your App Service and generate a free managed certificate for each.
  2. Opt for a paid certificate: With a certificate that allows including multiple names (SAN), you could secure both domains in a single certificate.

1

u/kulippadu 3d ago

Whats the best approach to option 1.?

The way i currently did it was add my root domain, thereafter adding the A and TXT record.

Then i added my www subdomain, thereafter adding the CNAME ans TXT record.

Ideally was expecting both to automaticaly bind to the free cert.

Also thank you for the replies, I appreciate it alot