Hello Sijin N P,
It looks like you're facing an issue with your Azure VM booting as Generation 1 instead of Generation 2, which can indeed mess with your ability to connect via RDP. This kind of mismatch often arises during the replication process with Azure Site Recovery (ASR).
You want to ensure the VM was properly configured as Generation 2 before the replication. Unfortunately, Azure doesn't provide a straightforward way to convert a Generation 1 VM to Generation 2, especially once the VM has been created.
Confirm Source VM Is Generation: On your on-premises Hyper-V or VMware host, verify the VM is configured as Generation 2.
- Go to Azure portal > In the Recovery Services Vault,
- Navigate to Replicated Items and check the Target VM Generation under Compute and Network.
- Ensure that ASR is set to replicate Generation 2 VMs properly,
If it shows Generation 1, this mismatch will cause boot issues during failover. re-trigger the replication process to ensure it reflects the correct generation.
Update Target VM Generation: In the Compute and Network section > Click Edit > Change the Target VM Generation to Generation 2 > Save the changes.
If the option is unavailable, you may need to disable replication, clean up the failed-over VM, and re-enable replication from scratch with the correct generation setting.
Recreate the VM Using ASR (Generate a New VM in Azure):
You do manual cleanup of incorrect VM:
- Go to the Recovery Services Vault in Azure.
- Locate the Replicated Item for the affected VM.
- If a Test Failover VM was created as Generation 1:
- Stop and delete the failed-over VM.
- Detach the OS disk if needed for reuse.
Disable and Re-enable Replication:
- In the Recovery Services Vault:
- Disable replication for the VM.
- Confirm cleanup of associated resources (replicated disks, configuration).
- Re-enable replication:
- During setup, ensure the Target VM Generation is explicitly set to Generation 2 under Compute and Network settings.
After making the necessary changes, conduct a test failover again to see if the VM boots correctly as a Generation 2 instance. Monitor the process in the Azure portal for any error messages.
Reference document:
Cannot connect with RDP to a Windows VM in Azure - Virtual Machines | Microsoft Learn
Azure boot diagnostics - Azure Virtual Machines | Microsoft Learn
If you're still having trouble, here are a few follow-up questions that could help narrow down the cause:
- Is there any errors or alerts during the replication setup in ASR?
- Have you checked the Boot diagnostics for any specific error messages during the boot process after the failover?
- Is the version of the Azure Site Recovery tools and agents up to date?
I hope this helps, If you encounter any issue, please let us know, Thanks