How to use App Service Managed Certificate for the same domain (Traffic Manager)?

Wellington Oliveira 20 Reputation points
2023-03-27T09:27:02.5266667+00:00

I have two App Services in two different regions behind Traffic Manager. For the Traffic Manager domain I want to generate an App Service Managed Certificate but  while I am able to create one in the Portal for the first application. For the second application on the other hand, I am getting the following error:

"Hostname not eligible for App Service Managed Certificates creation. Ensure that your domain [xxxx.trafficmanager.net]  has an active CNAME record which is set to [webapp.azurewebsites.net] "

Azure Traffic Manager
Azure Traffic Manager
An Azure service that is used to route incoming network traffic for high performance and availability.
111 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,038 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ignacio Alvarez Arenas 131 Reputation points
    2023-03-27T09:32:36.76+00:00

    When using the Portal it seems to do DNS validation, preventing to deploy two App Service Managed Certificates with the same name (specially if Traffic Manager is still resolving to the first app, if you failover it might work). In any case, if you use PowerShell it is skipping this and you should be able to create it:

    New-AzWebAppCertificate -ResourceGroupName “myrg” -WebAppName app2 -Name "MycertPS-TM" -HostName app.mydomain.com 

    You can use Azure Shell to do this so you have the latest modules.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful