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

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Suggested answer

Can’t deallocate cloud-hosted environment stuck in service mode

(0) ShareShare
ReportReport
Posted on by 75

Hello All,

 Last year we had a D365 cloud-hosted environment fail multiple attempts at applying a platform update. After aborting the last try, the deployment status says ‘Deployed’ and the environment is operational but on the full details page in LCS under Environments updates, it still says ‘Servicing status: In progress’? As a result, the start/stop/deallocate buttons are not available. I can turn it on/off in Azure but we no longer use it and would like stop it and delete it in LCS

 Our partner tried to 'Invoke-D365LcsEnvironmentStop' but also got this error:

{

    "IsSuccess": false,

    "OperationActivityId": "5b1d1053-9355-4471-a2f0-05d6c42c6117",

    "ErrorMessage": "The environment is not in a stoppable state. Please verify the environment is not already stopped or if the environment is currently undergoing another operation.",

    "VersionEOL": "9999-12-31T23:59:59.9999999"

}

Anyone experience anything like this or know of any other ideas to get it out of the servicing state – or get LCS to see it as ‘stopped’ so I can delete it from there?  I can delete it in Azure but I would prefer to delete it through LSC so it doesn't continue to show a non-existent environment in deployed status in LCS – which I assume it will if I just delete it in Azure. Any thoughts?

Thanks,

Jason

I have the same question (0)
  • nunomaia Profile Picture
    18 Moderator on at
    RE: Can’t deallocate cloud-hosted environment stuck in service mode

    There is a public document on those procedures  learn.microsoft.com/.../upgrade-latest-platform-update

    I would say, from paste experience, it solved 50% of the cases.  

    Opening a support case, sometimes it's better.

  • Jason1 Profile Picture
    75 on at
    RE: Can’t deallocate cloud-hosted environment stuck in service mode

    Thanks Komi,

    We figured that might be the only solution but I figured I'd check with the community before going to Microsoft. Thanks again for the feedback.

    Jason

  • Jason1 Profile Picture
    75 on at
    RE: Can’t deallocate cloud-hosted environment stuck in service mode

    Thanks Nuno,

    I'll see if that works. Any chance you know the command for that?

    Thanks again,

    Jason

  • Suggested answer
    Komi Siabi Profile Picture
    13,032 Most Valuable Professional on at
    RE: Can’t deallocate cloud-hosted environment stuck in service mode

    Hi Jason1, 

    For cloud hosted environment, there's little you can do it in this case. You need to raise a ticket and Microsoft would help you out. 

  • nunomaia Profile Picture
    18 Moderator on at
    RE: Can’t deallocate cloud-hosted environment stuck in service mode

    You can try to terminate applying platform update from command line directly in VM ?

    We in the past had a similar issue, but we had to report it to MS to reset LCS status

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 169 Super User 2025 Season 2

#2
Yng Lih Profile Picture

Yng Lih 146

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 104 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans