ADFS re-directs to an office365 home page instead of my organization's external page and internal calls to ADFS STS end up on generic IIS landing page

T-Heron 1 Reputation point

99.9% of my experience up to this point is in on-site/on-premise Active Directory, not Azure, so forgive this question.

I built a small Active Directory integrated to Azure Active Directory lab, integrated with the web domain (you may visit it, it's just a GoDaddy "web builder site" that took all of 5 minutes to build.)

From inside my Active Directory domain network, on any domain-joined machine's web browser, if I navigate to, and enter in, ADFS authentication mechanism kicks in, asking me for a username, after I feed it an internal on-premise AD username I get successfully re-directed to, an Office 365 home page. Looking good, right? A vanilla Active Directory to Azure Active Directory / Office 365 environment. Though I would prefer to ultimately land at instead, but this is not my question.

The question is, from internal, if I navigate to htttp://, ( is a hostname of my internal ADFS server, hosting the STS), I get taken to the below IIS page. A little confused here, as I thought that would also kick in a re-direction to an authentication challenge and ultimate re-direction to my external page at My actual internal Active Directory domain is dev.local, and the Active Directory integrated DNS for that hosts an internal zone for just so internal clients can hit the ADFS servers for any calls to (To make things more self-explanatory in the futurealt text, I will rename to But that's for another day.)

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

2 answers

Sort by: Most helpful
  1. Dave Patrick 426.3K Reputation points MVP
    1 person found this answer helpful.

  2. AmanpreetSingh-MSFT 56,446 Reputation points

    anonymous user You need to use to go to ADFS Authentication page.

    Note: On Windows Server 2016 and later, this page is disabled by default and needs to be enabled by using following command:

    Set-AdfsProperties –EnableIdpInitiatedSignonPage $True  

    If you want to redirect to after authentication, your web application must be federated with ADFS and configured to redirect to after successful authentication. for more information, please search for "ADFS Deep Dive" on

    Also, you should not name any of the actual computer accounts in the ADFS farm, which will cause a duplicate SPN issue and break integrated Windows Authentication.


    Please "Accept as answer" wherever the information provided helps you to help others in the community.

    0 comments No comments