Azure / azure-cli

Azure Command-Line Interface
MIT License
3.96k stars 2.94k forks source link

[az lab vm delete] The resource of type 'microsoft.devtestlab/labs/virtualmachines' is not yet ready for the requested operation #11471

Open rolandas-rimkus opened 4 years ago

rolandas-rimkus commented 4 years ago

Our current workflows use Azure DevOps pipelines to create and delete VMs stored on a Azure DevTest Lab. For the the delete action we use az lab vm delete which normally works, but it sometimes returns an error:

call az lab vm delete --lab-name "xxxx" --name "xxxx" --resource-group "xxxx" Command group 'lab' is in preview. It may be changed/removed in a future release. ERROR: The resource 'xxxx' of type 'microsoft.devtestlab/labs/virtualmachines' is not yet ready for the requested operation.

The VM deletion still gets triggered and seems to work as expected so this seems like a false error coming from the Azure CLI command.

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc

jrudley commented 3 years ago

I just ran into this in the portal. I am guessing something with the API on the backend.

rolandas-rimkus commented 3 years ago

20 months since creating this issue and seems this got no acknowledgement or info back from Microsoft. Ouch. Forgot that I created it until someone commented.

yonzhan commented 3 years ago

devtestlab service team should look into this

Kaloszer commented 11 months ago

I'm having the same issue right now, so this seems to still be an issue. VM is stuck in deleting state for >30 minutes now.