Please make sure the VM has access to the private endpoint of the recovery vault. Please verify you are able to connect:
You might see an "Exception caught while connecting to target" error message.
- Ensure the machine where the script is run meets the access requirements.
- Verify the connection to the Azure target IPs. Run one of the following commands from an elevated command prompt:
ornslookup download.microsoft.com
ping download.microsoft.com
- Ensure access to iSCSI outbound port 3260.
- Check for a firewall or NSG blocking traffic to Azure target IPs or recovery service URLs.
- Make sure your antivirus software isn't blocking the execution of the script.
If you are still unable to connect please let me know and we can investigate with you directly.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!