question

can123123123 avatar image
can123123123 asked ·

change the operating system in azure virtual machine

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
1 comment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@can123123123 Any update on the issue?

If the suggested response helped you resolve your issue, do click on "Mark as Answer" and "Up-Vote" for the answer that helped you for benefit of the community.

Thanks.

0 Votes 0 · ·
LeonLaude avatar image
LeonLaude answered ·

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://docs.microsoft.com/en-gb/azure/virtual-machines/windows/os-disk-swap


Best regards,
Leon

Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

pituach avatar image
pituach answered ·

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


Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.