Can't access private FQDN for Azure Spring Apps

Kevin 0 Reputation points
2024-03-19T18:15:20.1+00:00

Hey everyone! I was running into some trouble creating a test application using Azure spring apps deployed onto a private virtual network. I created a separate subnet for the services and apps, deployed the sample app, then followed https://learn.microsoft.com/en-us/azure/spring-apps/enterprise/access-app-virtual-network?tabs=azure-portal#access-application-private-fqdn to expose the app internally through the virtual network. I am able to access the fqdn using a jump box which lives on the same vnet but it is giving me 502 bad gateway. The service itself is running, and I can confirm that it cannot be access from the internet on my local machine outside the network. What am I doing wrong?

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.
110 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Lee 85 Reputation points Microsoft Employee
    2024-03-19T22:49:43.8633333+00:00

    Hi Kevin,

    You need to expose the application to Internet if you want to access it from outside of the private virtual network like your laptop. There are two ways to do that. One is using Azure Application gateway, and the other is assigning a public endpoint. You can refer to these links.

    https://learn.microsoft.com/en-us/azure/spring-apps/enterprise/how-to-access-app-from-internet-virtual-network?tabs=azure-portal

    Regards,

    0 comments No comments