Azure / Azure/azure-cli

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

Open
#11,471 7 comments 1 reaction 0 assignees View on GitHub
act-codegen-extensibility-squad customer-reported Devtestlab needs-team-attention Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.