File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Generated/VirtualMachineScaleSet/Config Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 20
20
21
21
-->
22
22
## Upcoming Release
23
+ * Fixed a bug when 1 data disk attached to VMSS for Remove-AzVmssDataDisk [ #13368 ]
23
24
24
25
## Version 4.10.0
25
26
* Added parameter ` -EnableHotpatching ` to the ` Set-AzVMOperatingSystem ` cmdlet for Windows machines.
Original file line number Diff line number Diff line change @@ -88,10 +88,6 @@ protected override void ProcessRecord()
88
88
this . VirtualMachineScaleSet . VirtualMachineProfile . StorageProfile . DataDisks . Remove ( vDataDisks ) ;
89
89
}
90
90
91
- if ( this . VirtualMachineScaleSet . VirtualMachineProfile . StorageProfile . DataDisks . Count == 0 )
92
- {
93
- this . VirtualMachineScaleSet . VirtualMachineProfile . StorageProfile . DataDisks = null ;
94
- }
95
91
WriteObject ( this . VirtualMachineScaleSet ) ;
96
92
}
97
93
}
You can’t perform that action at this time.
0 commit comments