I’m having trouble using the Octopus Certificate Store with the Azure PowerShell step to upload a certificate to an Azure App Service.
I am trying to use Azure PowerShell, but I’m having trouble getting the -CertificateFilePath parameter to work. Is the full path of the certificate file available as a parameter during the Azure PowerShell step?
$OctopusParameters[“Certificate.Thumbprint”], $OctopusParameters[“Certificate.Password”] appear to be working fine for those values.
Thanks for getting in touch with us. Octopus Deploy doesn’t output the certificate as a file during deployment. Instead it’s stored in a variable that you can access alongside the thumbprint and password.
Here is some PowerShell that takes the certificate and writes it to disk. Then you can execute the Azure command and use that file.
I want to add that the site must exist and the domain must already be assigned (and validated with CNAME) in the web app in Azure for this script to successfully install and bind the certificate