SSL error when installing Sitecore with ARM templates.

2. March 2018 16:40 by martijn in azure, sitecore

If you have used the Sitecore ARM templates recently to roll out a Sitecore environment your might come accross the following error (I encountered it while trying to deploy a Sitecore 8.2.3 environment):

Failed to download package.\r\nAppGallery Deploy Failed: 'System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel

It took me quite a while to figure out what was going on but after looking on my App Service instance with excellent Kudu tools I got a good hint. In the MSDeploy log there was a error about the following package not being downloaded ""setCompatibilityLevelMsDeployPackage". This package is hosted on Github and the Sitecore ARM template refers to it. However due to security measures on Github (https://githubengineering.com/crypto-removal-notice/) the download no longer works from Azure.

 

So how to fix? Just upload the package to your storage account and update the parameters json.

"setCompatibilityLevelMsDeployPackageUrl":{
"value": "https://<mijblob>.blob.core.windows.net/sitecore/SetCompatibilityLevel.scwdp.zip?<your SAS token>"
},
 
Easy fix when you know what's going on :)