You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a VMSS.
Attempt to update the VMSS SkuCapacity with Update-AzVMSS.
Update-AzVmss-ResourceGroupName adsandorctrlc -VMScaleSetName vmssctrlc -SkuCapacity 10-Debug;
Confirm
Are you sure you want to perform this action?
Performing the operation "Update" on target "vmssctrlc".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y
Environment data
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Linux 5.4.0-1048-azure #50~18.04.1-Ubuntu SMP Fri May 14 15:30:12 UTC 2021
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
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.
//
// Summary:
// Updates a virtual machine of a VM scale set.
//
// Parameters:
// operations:
// The operations group for this extension method.
//
// resourceGroupName:
// The name of the resource group.
//
// vmScaleSetName:
// The name of the VM scale set where the extension should be create or updated.
//
// instanceId:
// The instance ID of the virtual machine.
//
// parameters:
// Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
public static VirtualMachineScaleSetVM Update(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, VirtualMachineScaleSetVM parameters);
//
// Summary:
// Updates a virtual machine of a VM scale set.
//
// Parameters:
// operations:
// The operations group for this extension method.
//
// resourceGroupName:
// The name of the resource group.
//
// vmScaleSetName:
// The name of the VM scale set where the extension should be create or updated.
//
// instanceId:
// The instance ID of the virtual machine.
//
// parameters:
// Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
//
// cancellationToken:
// The cancellation token.
[AsyncStateMachine(typeof(<UpdateAsync>d__9))]
public static Task<VirtualMachineScaleSetVM> UpdateAsync(this IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, VirtualMachineScaleSetVM parameters, CancellationToken cancellationToken = default);
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: