azure-cli: Azure CLI failing to finish/return from az vm start ... command
Describe the bug We have an Azure DevOps Release Pipeline with the Azure CLI task where we run the following command:
az vm start --ids $(az vm list --resource-group myResourceGroup --query "[].id" -o tsv)
Today we experienced an issue from 2pm-4pm BST whereby the command did not return any output, despite the VMs being started successfully. I cancelled the task twice after running for over 50 minutes, and then ran it manually from my local machine and got the same result.
Trying the pipeline again at 4.30pm BST ran successfully.
When running locally, I could see that the operations checks always returned InProgress
, even after the machine is showing as running within the portal.
To Reproduce
- az vm start --ids $(az vm list --resource-group myResourceGroup --query “[].id” -o tsv)
Note: In my case, az vm list --resource-group myResourceGroup --query "[].id" -o tsv
returns 7 VMs
Expected behavior The command completes after the VMs are started, allowing either the Azure CLI release pipeline task to continue or the CLI command prompt to return to user.
Environment summary Azure DevOps windows-2022 VM image
Local
Windows-10-10.0.19044-SP0
Python 3.10.4
Installer: MSI
azure-cli 2.36.0
Additional context
My issues appears to replicate this one: https://github.com/Azure/azure-cli/issues/14841
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 19 (1 by maintainers)
@AkechiShiro OMS agent plans to eventually support Debian 11, but has no timetable on when that will happen. Moving to AMA is highly recommended going forward.