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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to delete an environment in LCS with no subscription in Azure

(0) ShareShare
ReportReport
Posted on by 122
Hi,
 
I have an environment - DEV1 in LCS with a subscription - AzureSubDEV1.
Thus, I have a VM DEV1 in Azure under the subscription - AzureSubDEV1.
 
One day, the Azure subscription AzureSubDEV1 expired and was deleted by Azure, which means I can't find any VM/Subscription instance in Azure.
However, the environment DEV1 still exists in LCS with an incomplete status.

I tried to click /Deallocate/ in DEV1 but received an error message below.
I assume this is because LCS can't find any instance in Azure.
Does anyone know how to delete the environment DEV1 in LCS?
 
Many thanks.

//
 
I have the same question (0)
  • Layan Jwei Profile Picture
    8,118 Super User 2025 Season 2 on at
    Hi JoBox,

    Did you try to stop the VM before deallocating it?

    Also are you sure the old subscription is deleted an not expired?

    if you go to subscriptions page and filter on All, you'll see expired subscriptions by looking at the status


    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future. You can do this by ticking the box "Does this answer your question"
  • Verified answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    You can view this following document, which refers to the relevant content that cannot delete a cloud-hosted dev environment. You can check according to the document:
    Deploy and access development environments - Finance & Operations | Dynamics 365 | Microsoft Learn
    Best Regards,
    Hana
  • André Arnaud de Calavon Profile Picture
    301,109 Super User 2025 Season 2 on at
    Hi JoBox,
     
    In case the environment was stopped in LCS and you keep getting this error, you can contact Microsoft Support. There is no functional workaround apart from trying to delete the LCS project.
  • JoBox Profile Picture
    122 on at
    Hi Layan Jwei,

    Yes, I am sure the old subscription was deleted by Azure because I received the deletion notification email from Azure.
    Additionally, I have reviewed all the resources visible in Azure, and the DEV1 VM cannot be found.
    I assume Azure will automatically delete related resources, including LCS's environment.

    Thanks for your information. : )
  • JoBox Profile Picture
    122 on at
    Hi Hana Xue, 

    Thanks for your information. : )

    After checking the link you provided, it can be deleted by selecting "Delete LCS metadata" on the cloud-hosted environment page.
    The VM DEV1 has been deleted in LCS; therefore, I can't see it in the LCS environment lists anymore.

    PS: I can't mark your reply as answered because it is continually loading. I will try again later.

    Below information for reference.
  • André Arnaud de Calavon Profile Picture
    301,109 Super User 2025 Season 2 on at
    Hi JoBox,
     
    Thanks for providing feedback about your progress. I learned something as well that the LCS environments can be deleted in an alternative way.
     
    I have marked the reply from Hana for you.
  • JoBox Profile Picture
    122 on at
    Hi Andre, 

    Thanks for your help in marking the answer.
    How can you do this?
    Just check 'Does this answer your question?'
    I have tried several times, the browser always loads when I mark it.

     
     
  • André Arnaud de Calavon Profile Picture
    301,109 Super User 2025 Season 2 on at
    Hi JoBox,
     
    It is indeed just marking the tick box you shared. When I did it, it is not loading and nothing happened. You can try using an in-private browsing mode next time if you then still have the same issue.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans