@Irin Sultana
Thank you for getting back and sharing additional details.
Based on the error received I think you can follow the steps mentioned below to help troubleshoot the issue.
- For the error the issue is usually due to selection of incorrect IKE parameters. You can go through the documentation here to understand the default IKE parameters for IKE Phase 1 and Phase 2.
- If above does not help, then you can Enable Diagnostic logging for the VPN Gateway and check if you can find any issue in IKEDiagnosticLog for the VPN connection.
- Check if the on-prem device is listed in the validated devices list here for Azure VPN.
I hope this has been helpful! Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!