Swap Boot Disk in Azure VM

Customer lost login credentials for a Azure VM. Azure provide a way to reset Password for VM using Azure portal or via Azure cli/powershell.

Before you swith disk, make sure you note down current name of the boot disk, so if anything went wrong with new disk, you can swap back.

You can run following commands in Azure Powershell

If you want to revert changes, replace

With old disk name. Then run the commands again.

https://azure.microsoft.com/en-us/blog/os-disk-swap-managed-disks/

See Azure

Add a Comment

Your email address will not be published. Required fields are marked *