title: Can certificates be created and deployed to an Azure Key Vault as part of a Resource Manager deployment?
body: <p>I'm trying to deploy an Azure Service Fabric Cluster in an automated process from Octopus Deploy. Part of the process of deploying a new Cluster involves creating an Azure Key Vault and populating it with certificates and other secrets specific to that cluster.</p>
  
  <p>I have an ARM template to deploy the Key Vault and another to deploy the Cluster. I've found that secrets (in general) can be deployed to Azure Key Vault as part of the ARM template, but haven't found any information on how to do that when the secret is a certificate. Ideally, I would like to create and deploy Cluster-specific certificates to the Key Vault as part of that deployment, so they can be accessed during Cluster deployment, but just being able to deploy the certificates when provisioning the Key Vault would be more than good enough.</p>