Hello jihad majed,
Thank you for posting your query on Microsoft Q&A.
The error that you are seeing – “The operating OS disk for Generation 2 virtual machine exceeds the Azure Site Recovery size limit of 300 GB” which is due to a current limitation in Azure Site Recovery when replicating Generation 2 VMs from Hyper-V.
Right now, if a Gen 2 VM (which uses UEFI boot) has an OS disk larger than 300 GB, Azure Site Recovery can’t replicate it.
It’s a known limitation from Microsoft’s side.
Here is the referral document: https://learn.microsoft.com/en-us/azure/site-recovery/hyper-v-deployment-planner-analyze-report
Further workarounds are:
1.Shrink the OS Disk Size: Reduce the OS disk size to below 300 GB.
2.Convert to Generation 1 VM
To help the community find the right answers, please do mark the post which was helpful by clicking on Accept Answer. And, if you have any further questions do let us know.
Thanks,
Suchitra.