Azure Site Recovery Enable Protection failing with error "Protection couldn't be enabled for the virtual machine". Error 45004
Symptom
Enabling protection for a virtual machine fails.
Error message
Protection couldn't be enabled for the virtual machine.
Error code
45004
Resolution
- Refer Troubleshooting Hyper-V issues for more details. Ensure that you fix any issues in the Event Viewer logs on the Hyper-V host server.
- Applications and Service Logs-Microsoft-Windows-Hyper-V-VMMS-Admin
- Applications and Service Logs - MicrosoftAzureRecoveryServices
- Fix the issues then disable protection for the virtual machine and re-enable it again.