question

dhavaldrp avatar image
0 Votes"
dhavaldrp asked dhavaldrp commented

SSL cert binding using ARM templates

I am getting error while binding SSL cert to a custom domain from ARM template as part of Azure web app deployment pipeline. First time the binding works as expected but next deployment, the ARM tries to create another copy of cert in same resource group and throws following error.

Another certificate exists with same thumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx at location xxxxx in the Resource Group RG-xxxx.

The similar functionality works as expected using CLI. Any idea folks?

azure-webapps
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

YutangL avatar image
0 Votes"
YutangL answered dhavaldrp commented

We have a blog post that addresses common errors and the one you're asking about is on it. Hope this article helps.


· 1
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.

I see in the blog post the suggestion is to delete the cert using PowerShell and run the ARM template again as part of CI/CD.

As I mentioned earlier, using script it is possible. Is there a way to override using ARM or ignore the upload if same cert exists and use it?

0 Votes 0 ·