[Feature]: Remove-AzVmss - remove-instance should be separated from remove-vmss like in az cli
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
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: |
|
| Milestone: | - |
@hilaryw29 please work with the team to see if this is reasonable to separate the commends to 2 different commands
Thanks @oriwolman, I'm in contact with the PowerShell team about feasibility of this change.
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.
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!