Failed to Rotate Secrets in LCS? Here’s What to Do Next
Introduction
Working with Lifecycle Services (LCS) may feel a bit outdated as we prepare for its eventual phase-out, but the reality is that many businesses still rely on it daily.
Recently, I encountered an issue while deploying to a new environment after a long break; it kept failing without a clear cause.
After investigating, I discovered the SSL certificate was the culprit, which I’d run into before (I’ve shared that experience in a previous post).
Naturally, I tried rotating the secrets from LCS, but it failed repeatedly without any error message or explanation.
I was ready to raise a ticket with Microsoft when Copilot stepped in with a suggestion that helped me quickly resolve the problem.
Here's what happened and how you can fix it if you face the same issue.
What to do:
You'll see there's a certificate with the same name as your VM and if you observe the "Expiration Date" it is past your current date.
Conclusion
Running into deployment failures because of an expired SSL certificate was a frustrating experience, but fixing it turned out to be pretty straightforward.
After checking the certificates, running Microsoft’s "Renew WinRM Certificate" script, and restarting the environment, I was able to rotate the secrets without a hitch.
Comments
Post a Comment