Share via

Upgrade Window Server 2012 R2

Glenn Maxwell 13,761 Reputation points
2022-08-28T09:34:48.88+00:00

Hi All

i have a windows server 2012R2 in Azure, can i perform an inplace upgrade to Windows Server 2016. My question is, for a VM hosted in azure can i do an inplace upgrade.

if i cannot then can i create a snapshot from the VM, create a managed disk, mount it on hyperv upgrade to 2016 and swap the OS drive from Azure

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

Windows for business | Windows Server | User experience | Other
0 comments No comments

Answer accepted by question author

Jackson Martins 10,631 Reputation points MVP
2022-08-28T12:58:49.313+00:00

Hi @Glenn Maxwell

Complementing what Jimmy said, the inplace upgrade is not possible,
But you can do these steps:

download your VM,
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/download-vhd?tabs=azure-portal

deploy to your onpremise Hyper-v,

upgrade,
https://learn.microsoft.com/en-us/windows-server/get-started/perform-in-place-upgrade

generalize the VM and upload to Azure.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/upload-generalized-managed

Reference: https://learn.microsoft.com/en-US/troubleshoot/azure/virtual-machines/in-place-system-upgrade#method-2-download-and-upgrade-the-vhd
Get in touch if you need more help with this issue.

--please don't forget to "[Accept the answer]" if the reply is helpful--

Was this answer helpful?


2 additional answers

Sort by: Most helpful
  1. Glenn Maxwell 13,761 Reputation points
    2022-08-28T14:14:12.63+00:00

    Take a snapshot of the primary partition
    create a disk from snapshot
    mount it on hyperv (attach the disk to another Azure VM which has hyperV installed. Create VM and attach this disk)
    perform the upgrade
    deattach the disk
    swap OS disk of the current VM with this upgraded Disk.

    if i perform the above step is it not enough , do i need to run sysprep?

    Was this answer helpful?


  2. JimmySalian-2011 45,371 Reputation points Volunteer Moderator
    2022-08-28T12:08:42.483+00:00

    Hi Glen,

    Sorry the inplace upgrades are not supported please check the workaround for this process over here. in-place-system-upgrade

    =
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.