- First take a snapshot
https://learn.microsoft.com/en-us/azure/virtual-machines/snapshot-copy-managed-disk?tabs=portal
-
createnewdisk.ps1
-
attachnewdisk.ps1
-
RDP to VM
PowerShell: F:> cd '.\Windows Server 2022'
.\setup.exe /auto upgrade /dynamicupdate disable
for 2012 .\setup.exe
https://learn.microsoft.com/en-us/azure/virtual-machines/windows-in-place-upgrade