change the operating system in azure virtual machine

can123123123 61 Reputation points
2020-06-09T14:54:03.857+00:00

hello, when I click the change the operating system disk in the disks section in azure virtual machine, the disk I created earlier does not appear. How can I change the operating system disk there?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,043 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 85,821 Reputation points
    2020-06-09T15:22:06.873+00:00

    Hi,

    Try using Azure PowerShell instead, I've used it and it works:

    Change the OS disk used by an Azure VM using PowerShell
    https://learn.microsoft.com/en-gb/azure/virtual-machines/windows/os-disk-swap

    Best regards,
    Leon

    1 person found this answer helpful.
    0 comments No comments

  2. Ronen Ariely 15,191 Reputation points
    2020-06-09T15:29:34.18+00:00

    Good day,

    change the operating system disk

    I assume that you mean "Swap OS Disk" option

    the disk I created earlier does not appear.

    You can only swap to another disk which is Azure OS disk, and not a new disk which you create. The option swap OS disk is a DR solution (DR = Disaster Recovery), and not meant to provide a way to build your own freely virtual hard disk (vhd)

    You can swap for example to a backup of the OS disk (created with the Azure Backup service)

    Check if the following tutorial helps more: https://petri.com/swapping-os-disk-azure-virtual-machine

    1 person found this answer helpful.
    0 comments No comments

Your answer

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