Integrate web app with VM over internal vnet?

Kristian Reed 1 Reputation point
2020-01-10T13:13:16.797+00:00

Hi,

Issue:
I want to place a web service from a VM behind a Azure AD sign on portal.

Attempted solution:
Set up a simple Nginx proxy with Web app for container and let this proxy redirect to VM though Vnet integration. From azure web app service it is easy to enable authentication with Azure ad.

This does not seem to work as there is a problem connecting to the exposed port:

nginx: [emerg] bind() to 0.0.0.0:4527 failed (98: Address already in use)

For web app for containers it does also seem to be impossible to ssh into the container

Timeout Error, Unable to establish a connection

Anyone know if this a reasonable way to achieve SSO or is there any easier ways to achieve this from azure?

Regards,
Kristian Reed

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,034 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,846 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Cogan 10,322 Reputation points MVP
    2020-01-10T17:56:40.193+00:00

    I would take a look at Azure Application Proxy, it is designed to do just this, allowing pre-auth with Azure AD.

    It does however require Azure AD Premium licences.

    0 comments No comments