Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Stuck with deleting a Azure VM that ended in a failed state.

$
0
0

Hi I have a issue while managing my Azure VM service.

The issue started when I tried to stop the VM (AD-2k19), before i realized it was stopped I made some changes to the networking portion. It was stuck at deallocating afterwards for a few hours. Tired of waiting, I clicked on the delete VM to continue but I was left with a VM that was stuck in "Deleting" state for over an hour plus now. 

I tried Azure Cloud powershell with the command "Stop-AzureRmVM" but it does not work because it was marked for deletion.

After 6 hours or so, the VM stopped deleting and turned the status to Stopped (deallocated) as shown below. Also indicating a failed state in the event.

Knowing it is the network adapter (ad-2k19367) issue, i tried to update it via the command:
"az network nic update -g ResourceGroup -n ad-2k19367"

But it was failed with the error:
"Operation 'startTenantUpdate' is not allowed on VM 'AD-2k19' since the VM is marked for deletion. You can only retry the Delete operation (or wait for an ongoing one to complete)."

I have no other solution left. Please kindly help..Is there a way to unmark the VM from deletion so I could remove the network adapter?

Many Thanks..




Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>