title: Adding certificates to Azure VM Scale Set
body: <p>Basically I'm trying to follow this guide.. </p>
  
  <p><a href="http://ronaldwildenberg.com/custom-domain-name-and-certificate-for-your-azure-service-fabric-cluster/" rel="nofollow noreferrer">http://ronaldwildenberg.com/custom-domain-name-and-certificate-for-your-azure-service-fabric-cluster/</a></p>
  
  <p>It says here (regarding Resource Explorer):</p>
  
  <blockquote>
    <p>If you save (PUT) the updated VM Scale Set resource description, the certificate will be installed to all VMs in the scale set.</p>
  </blockquote>
  
  <p>I've done this (adding my new cert to the key vault, then referencing it in the template), upon saving, the portal says provisioning, and completes, but rdp'ing into the VM's the certificate isn't there! And thus my service fails (error given in event viewer is <code>HttpCertCfg returned errorcode 0x80070520</code>)</p>
  
  <p>What's going wrong? :(</p>