Hi @Abimbola Adeniran ,
make sure you have a working backup of your Azure VM (full backup) before you start!
Rename OS Disk:
- Shutdown the VM
- Create a Snapshot of the OS Disk
- Create a new OS Disk from this Snapshot (choose the name of the new disk as you like)
- Swap the OS Disk in VM
- Start the VM and do your testing
Rename Data Disks:
- Shutdown the VM
- Create a Snapshot of each Data Disk
- Create a new Disk from each Snapshot (choose the name of the new disk as you like)
- Detach old Data Disk(s)
- Attach new Data Disk(s)
- Start the VM and do your testing
If everything is working fine you can delete the old OS Disk and the Data Disk(s)
Rename VM:
- Shutdown the VM
- Delete the VM but don't delete the disks!
- Navigate to the existing OS disk in the Azure Portal
- Click on
Create VM
and follow the steps to create a new VM based on the existing OS Disk - Attach the Data Disk(s) the the new created VM
- Start the VM and do your testing
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten