web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error in Rotate Secrets from LCS

(0) ShareShare
ReportReport
Posted on by 505

Hi All,

Seeking your assistance in below issue

I am getting below error when I try to rotate secrets of cloud VM through LCS. 

When I click on "Rotate secrets" in LCS, it started processing for some time and after that status shows incomplete.

pastedimage1646722415410v1.png

I tried 

1) Restarting Machine

2) Tried the steps mentioned 

https://cloudblogs.microsoft.com/dynamics365/it/2018/04/22/rotate-the-expired-or-nearly-expired-ssl-certificate-on-your-subscriptions-one-box-environments/

3) Tried the troubleshooting steps in 

https://cloudblogs.microsoft.com/dynamics365/it/2018/04/23/known-issues-with-ssl-certificate-rotation-feature-in-lcs/

4) Account password is never changed

5) Also tried to perform from Powershell, steps mentioned in 

https://cloudblogs.microsoft.com/dynamics365/it/2018/05/02/how-to-update-the-winrm-ssl-certificate-on-environments-deployed-in-your-subscription/?source=lcs

Screen shot of error occurred in Step 5

pastedimage1646723098426v3.png

I have the same question (1)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi,

    Did you install the latest Azure powershell module before running the script? You can check this link to get that done.

  • Ishu.caddengg@hotmail.com Profile Picture
    505 on at

    Hi Gunjan,

    Yes I am using powershell 7.2.1, which is downloaded from the link you provided.

    Thanks for reply

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Have you installed the Az module as mentioned here as well? I am re-confirming because most of the errors as per your screenshot say that the command is not recognized.

  • Ishu.caddengg@hotmail.com Profile Picture
    505 on at

    I downloaded from [View:https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2#msi:320:240]

    and used msi installer highlighted in yellow

    pastedimage1646750463918v1.png

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi,

    Once you have installed powershell, you will need to run Powershell as an admin and run the following commands -

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

    Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force

    This will install Az module in Powershell, which is needed for connecting to your Azure subscription.

  • Ishu.caddengg@hotmail.com Profile Picture
    505 on at

    I already executed above command

    There could be possibility that I am putting wrong subscription ID and resourcegroup name in below

    Could you please suggest where i can get these details?

    .\RenewWinRMCertificate.ps1 -AzureSubscriptionId <SubscriptionId> -ResourceGroupNameForVM

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    You can go to portal.azure.com and search for Virtual Machines. Click on Virtual machines in the search results which will list all the VMs deployed for you.

    pastedimage1646760752967v1.png

    Go to the VM you are having the issue with (You can find the VM name from LCS). Click on the VM which should get you the details. Subscription Id and resource name should be mentioned here.

    pastedimage1646761020355v2.png

  • Ishu.caddengg@hotmail.com Profile Picture
    505 on at

    Unfortunately its same. No change

    Is it require to run command with the azure account who has created/deployed this VM?

    The account I am using to execute command has access to VM in LCS but not in portal.azure.com.

    .\RenewWinRMCertificate.ps1 -AzureSubscriptionId <SubscriptionId> -ResourceGroupNameForVM

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Can you see your VM under the Azure portal list of VMs? This is to make sure you have the correct subscription Id and resource group name.

  • Ishu.caddengg@hotmail.com Profile Picture
    505 on at

    Hi Gunjan,

    I am not able to see VM in Azure portal. The same credential is used to run the command in Azure powershell.

    I got the Subscription ID and Resource group from LCS

    pastedimage1646893470744v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 465 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans