Skip to content

Commit c02fc3c

Browse files
committed
fix command issue
1 parent 3a6c6e8 commit c02fc3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/virtual-machines/troubleshooting/troubleshoot-recovery-disks-windows.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ Stop-AzureRmVM -ResourceGroupName myResourceGroup -Name $vm.Name -Force
234234
$disk = Get-AzureRmDisk -ResourceGroupName myResourceGroup -Name newDisk
235235
236236
# Set the VM configuration to point to the new disk
237-
Set-AzureRmVMOSDisk -VM $vm -ManagedDiskId $disk.Id -Name $disk.Name
237+
Set-AzureRmVMOSDisk -VM $vm -ManagedDiskId $disk.Id -Name $disk.Name -sto
238238
239-
# Update the VM with the new OS disk
240-
Update-AzureRmVM -ResourceGroupName myResourceGroup -VM $vm
239+
# Update the VM with the new OS disk. Possible values of StorageAccountType include: 'Standard_LRS' and 'Premium_LRS'
240+
Update-AzureRmVM -ResourceGroupName myResourceGroup -VM $vm -StorageAccountType <Type of the storage account >
241241
242242
# Start the VM
243243
Start-AzureRmVM -Name $vm.Name -ResourceGroupName myResourceGroup

0 commit comments

Comments
 (0)