{Quick Tip} Azure Function deployment error “ERROR_CERTIFICATE_VALIDATION_FAILED”

Today while deploying Azure Function into a new environment I got this error:

Web deployment task failed. (Connected to the remote computer (“https://mytestfunapp.azurewebsites.net/ “) using the specified process (“Web Management Service”), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CERTIFICATE_VALIDATION_FAILED.) [C:\Users\3176\source\repos\Solution\Integration_Functions.csproj]

 

This error is not limited to Azure or Azure Functions. It occurs if SSL certificate is invalid or not configured correctly. To allow untrusted certificates we will need to set <AllowUntrustedCertificate>True</AllowUntrustedCertificate> in *.pubxml

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s