-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compute: Update-AzVmss cannot be canceled with Ctrl+C #15213
Labels
Comments
Sandido
added
the
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
label
Jun 8, 2021
ghost
removed
the
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
label
Jun 10, 2021
The cancellation token is not supported for this cmdlet var result = VirtualMachineScaleSetVMsClient.Update(resourceGroupName, vmScaleSetName, instanceId, parameters); To support cancellation, Comoute module should use UpdateAsync instead of Update.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
After creating a VMSS, I call Update-AzVmss to change the SkuCapacity.
"Update-AzVmss -ResourceGroupName adsandorctrlc -VMScaleSetName vmssctrlc -SkuCapacity 10 -Debug"
The option appears asking if I want to continue and asks me to continue running the job with a Y.
After I input Y and hit enter, the job starts, but then I try to Ctrl+C to cancel the job. This does not work, nothing happens.
However, when I run the command in Azure CLI,
"az vmss update --name vmssctrlc --resource-group adsandorctrlc --set sku.capacity=20 --debug", and confirm to run the job, I can Ctrl+C.
Desired behavior: Ctrl+C should allow me to cancel the cmdlet like it does in Az CLI.
Steps to reproduce
Environment data
Module versions
Debug output
Error output
The text was updated successfully, but these errors were encountered: