RasmusW
RasmusW

Reputation: 3461

Will ARM template deployment overwrite web app certificate?

I have an Azure Web App where our corp IT has installed an SSL certificate.

I would like to update the app settings with an ARM template. If the ARM template does not contain the SSL certificate, will it be removed from the web app?

We are not using key vault.

Upvotes: 1

Views: 626

Answers (2)

scott_lotus
scott_lotus

Reputation: 3277

Arm templates are designed to be idempotent, that is, if a resources exists it will not be deleted, but configuration changes are applied if the template has been changed, linked resources like an SSL cert remain in place.

When you add an SSL thumbprint to an ARM template the thumbprint refers to an SSL certificate that is already uploaded against the resource its used for therefore nothing changes.

Its the principle used behind Continuous Integration / Continuous Deployment process from VSTS. Triggers deploy code amendments automatically to existing resources, ARM templates deploy new resources or amend environmental factors of existing resource , everything still has to work.

Hope that helps.

Upvotes: 1

4c74356b41
4c74356b41

Reputation: 72171

The certificate will be unlinked, but the certificate resource (invisible on the portal) will remain intact.

Upvotes: 2

Related Questions