79685308

Date: 2025-06-30 21:41:57
Score: 0.5
Natty:
Report link

It might be a cop-out, but if you can make it work in Powershell, you can almost certainly make it work in Azure DevOps Release pipelines. Here's a primer on what that Release powershell script could look like, assuming you can get the cert file onto the machine somehow:
https://lachlanbarclay.net/2022/01/updating-iis-certificates-with-powershell

As for getting the cert onto the server in the first place:

The first way that comes to mind is to have your release pipeline "get" the cert somehow, assuming your servers have fileshare access to the place the cert is stored, or could make a request out to there somehow.

The second (and probably correct) way would be to incorporate Azure Key Vault, and add that as a powershell step (see How to install an Azure Key Vault certificate in an Azure DevOps pipeline?) for an example on that.

Finally, if neither of those worked, you could run some sort of batch powershell ahead of time using some of the methods in How to copy a file to over 50 remote computers to copy the file to all the remote servers

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: WithoutAnAce