question

BijeshRoy-9470 avatar image
0 Votes"
BijeshRoy-9470 asked CharlesNadolski-5034 commented

App services managed certificate with traffic manager and multiple app service instance

We currently have two App Service instances in two different Azure Regions, and we use Traffic Manager for priority routing

We are trying to apply new App Service Managed Certificate, but were blocked by by the feature limitations when using multiple App Services instances behind Traffic Manager.

Here's what we did:

On App Service instance 1 (region A), we created a new Managed Certificate for our custom domain hostname, and set up the domain/cert binding. This works as expected.

On App Service instance 2 (region B):

There is no way to get the certificate created for instance 1 copied into instance 2

There is no way to create another Managed Certificate for the same hostname on instance 2
We get the following error message:
"Failed to create App Service Managed Certificate for hostname [customhost] Error Details: The resource '[customhost]' already exists in location '[region A]' in resource group '[resourcegroup]'. A resource with the same name cannot be created in location '[region B]'. Please select a new resource name."

azure-traffic-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TravisCragg-MSFT avatar image
0 Votes"
TravisCragg-MSFT answered CharlesNadolski-5034 commented

This is a limitation with app service managed certificates, and you will only be able to use 1 certificate per web app. The error you got is a limitation on all Azure resources that 2 resources of the same type with the same name cannot exist in the same resource group.

Here is another post where this scenario is discussed in detail, along with workarounds and solutions.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Travis,
Thanks for your response. I have gone through the link before positing this once again. I tried the workaround with powershell script but found to error out while attaching the certificate with the secondary instance. Are there any other workaround available? Please advice.

Regards
Bijesh

0 Votes 0 ·

Hi Bijesh,

Can you share the error you got?

0 Votes 0 ·