@Kevin ,
Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to access Azure spring app via a Private EndPoint from a third party cloud connected to the VNET.
Please note,
- HTTPS requires that there is a Host Name available.
- So, directly accessing the Service via just the IP, such as https://10.0.1.4 will not work.
Work around stated by Silvia Wibowo ,
- Is to make your source resolve {service-name}.private.azuremicroservices.io to 10.0.1.4
- Now, since the source is a third party cloud provider, we cannot comment on how you may achieve this.
- In case your source is a Windows VM in the third party cloud, you can follow the steps mentioned below.
- If this is a Linux VM, you can search for the host file location in the respective DistrOS's forums.
- If this is a PaaS Service in the third party cloud provider, please work with the cloud provider on how to change the DNS/Host configuration of this specific PaaS Service.
To edit Host files in Windows,
- Press the Windows key and search for Notepad.
- Once Notepad is available, right-click and select Run as administrator.
- In your Notepad, Click File > Open and search for the following file: c:\Windows\System32\Drivers\etc\hosts
- Add an entry *
10.0.1.4 {service-name}.private.azuremicroservices.io
* - Click File > Save to save your changes.
Hope this helps.
Cheers,
Kapil