Is is possible to setup Azure AD OAUTH2 with an app that resides on an Azure V-Net that is not accessible from the internet?

JohnSebastian-3934 441 Reputation points
2023-03-24T21:46:01.4866667+00:00

I'm trying to integrate Ansible Automation Platform with Azure AD OAUTH2.

According to the Ansible Automation Platform documentation, I need to create an App Registration in Azure AD with a secret which I have done and then provide the Azure AD App Registration with the Callback URL that the Ansible Automation Platform creates. The user has no ability to configure this callback URL.

This suggests to me that the Callback URL MUST be accessed over the open internet from Azure AD. So I must put a DNS Entry into a DNS server that makes the hostname of the callback URL (which happens to be: https://towerhost/sso/complete/azuread-oauth2/) reachable via the internet. Does this sound right?

The host on which I run my Ansible Automation is a virtual machine located in my Azure V-Net. This host has no public IP address and is not accessible from the internet. Is it still possible for me to integrate an application that is in a private Azure V-Net with Azure AD?

This has been very confusing and I need help from experts in modern authentication with Azure AD to chime in.

Thank you,

John

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Ayomide Oluwaga 906 Reputation points
    2023-03-26T01:49:53.2+00:00

    Yes, you are correct that the Callback URL must be accessible over the internet from Azure AD. In order to achieve this, you can create a public DNS entry that points to the private IP address of your Ansible Automation Platform host in the Azure V-Net. This can be done using Azure DNS, or any other DNS provider that you prefer.

    As for integrating an application in a private Azure V-Net with Azure AD, it is still possible. You can use Azure AD Application Proxy to publish your application securely and make it accessible from the internet. This allows you to keep your application in your private V-Net and still have it integrated with Azure AD for authentication and authorization.

    Alternatively, you can also use Azure Private Link to securely access your application within the V-Net. This allows you to expose your application privately to specific Azure V-Net resources, such as your Azure AD tenant, without exposing it to the public internet.

    I hope this helps! Let me know if you have any further questions.


0 additional answers

Sort by: Most helpful

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.