azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

[Feature]: Remove-AzVmss - remove-instance should be separated from remove-vmss like in az cli

Open dimag99 opened this issue 3 years ago • 4 comments

Description of the new feature

Currently the same az powershell command Remove-AzVmss is used for deleting vmss and deleting vm. As deleting the whole vmss is a risky action, it should be separated into a different command, or adding additional command like Remove-AzVmssInstances. It poses a risk where someone might delete the vmss by mistake

Proposed implementation details (optional)

Add Remove-AzVmssInstances command

dimag99 avatar Jun 18 '23 10:06 dimag99

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TravisCragg-MSFT, @sandeepraichura.

Issue Details

Description of the new feature

Currently the same az powershell command Remove-AzVmss is used for deleting vmss and deleting vm. As deleting the whole vmss is a risky action, it should be separated into a different command, or adding additional command like Remove-AzVmssInstances. It poses a risk where someone might delete the vmss by mistake

Proposed implementation details (optional)

Add Remove-AzVmssInstances command

Author: dimag99
Assignees: -
Labels:

feature-request, Compute - VMSS, Service Attention, customer-reported

Milestone: -

ghost avatar Jun 18 '23 16:06 ghost

@hilaryw29 please work with the team to see if this is reasonable to separate the commends to 2 different commands

oriwolman avatar Jun 22 '23 15:06 oriwolman

Thanks @oriwolman, I'm in contact with the PowerShell team about feasibility of this change.

hilaryw29 avatar Jun 22 '23 18:06 hilaryw29

Hi @dimag99, unfortunately we won't be able to separate Remove-AzVmss into two different commands at this time.

You can use the -InstanceId parameter from Remove-AzVmss to delete specific instances in the VMSS. There should be a Confirm pop-up to verify your selection in case you forget to specify -InstanceId.

image

If you have a VMSS with Flexible orchestration, you can use either Remove-AzVmss with -InstanceId or Remove-AzVM to delete individual instances on the scale set.

If you have a VMSS with Uniform orchestration, please use Remove-AzVmss with -InstanceId.

Thanks!

hilaryw29 avatar Jun 29 '23 17:06 hilaryw29