[az lab vm delete] The resource of type 'microsoft.devtestlab/labs/virtualmachines' is not yet ready for the requested operation
Open
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
Assessment
This issue has not been assessed yet.