How to access azure spring app in a private vnet through IP instead of FQDN

Kevin 0 Reputation points
2024-04-03T00:52:53.53+00:00

I am having trouble understanding what I need to do with my system. I have a java spring boot service hosted on azure spring app. It is deployed to a private vnet. I was able to link a private dns, create a dns record and assign the FQDN with the given IP. I was able to access it through a jump box on the same vnet. Now I am trying to access this spring app service through another cloud provider by using a vpn tunnel. The issue is the vpn tunnel requires an IP to be passed through. How do I access my spring app service using an IP which is reachable through the vpn tunnel? Or is there a way to configure my other cloud provider to call Azure using the private FQDN.

Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
517 questions
Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
126 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 47,046 Reputation points Microsoft Employee
    2024-04-04T10:10:28.2633333+00:00

    @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,

    1. Press the Windows key and search for Notepad.
    2. Once Notepad is available, right-click and select Run as administrator.
    3. In your Notepad, Click File > Open and search for the following file: c:\Windows\System32\Drivers\etc\hosts
    4. Add an entry *10.0.1.4 {service-name}.private.azuremicroservices.io *
    5. Click File > Save to save your changes.

    Hope this helps.

    Cheers,

    Kapil


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.