Resize-VHD is an offline operation; the virtual hard disk must not be attached when the operation is initiated. Therefore we must dismount the vhd first
The shrink operation is allowed only on VHDX virtual hard disks. Therefore we must convert the vhd to vhdx
The answer is A, Dismount-VHD. Convert-VHD will throw an exception if the source VHD is mounted. The correct sequence of events is:
A: Dismount-VHD
D: Convert-VHD
C: Resize-VHD
B: Mount-VHD
0
0
Agree with Gordon Freeman
Resize-VHD is an offline operation; the virtual hard disk must not be attached when the operation is initiated. Therefore we must dismount the vhd first
The shrink operation is allowed only on VHDX virtual hard disks. Therefore we must convert the vhd to vhdx
then resize
then mount again
https://technet.microsoft.com/en-us/library/hh848535.aspx
0
0