Hi @Sadaqah Aid
To restore an Azure VM snapshot and recover your server, follow the steps below.
Note: This will help you only if the VM OS corruption situation not network related issues.
- Navigate to the Azure Portal > "Snapshots" and find the snapshot of the VM that you want to restore.
- Create a Managed Disk from the Snapshot
- In the Azure portal, go to "Snapshots" and select the snapshot > Click on "Create Disk" > Click "Create" to generate a managed disk from the snapshot.
Note: Create a new Disk in the same region/zone where the current VM is running
If you suspect any network-related issues with the existing VM, do not swap the OS disk to the current VM, as it may cause the same issue again. It is better to create a new VM using the same disk
- Swap the OS disk
If there are no network-related issues, you can simply swap the OS disk with the newly created disk."
- Go to the Azure Portal and navigate to Virtual Machines.
- Select the VM that you're unable to access.
- Under Settings, click on Disks.
- Select Swap OS disk and choose the newly created disk.
Reference: Change the OS disk used by an Azure VM using PowerShell
Ways to troubleshoot RDP issues
I hope this helps to resolve your query.
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.