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, ...
Answered

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

(0) ShareShare
ReportReport
Posted on by 124
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,165 Super User 2026 Season 1 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
    303,915 Super User 2026 Season 1 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
    124 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
    124 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
    303,915 Super User 2026 Season 1 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
    124 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
    303,915 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 311 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans