Skip to content

Ulysses Neves

Microsoft Entra ID, authentication, and hybrid identity troubleshooting.

Menu
  • Home
  • Microsoft Azure
  • Microsoft AD FS
  • Microsoft 365
  • Contact
  • Troubleshooting Index
Menu

AD FS – Integrating Microsoft Entra Multifactor Authentication with AD FS

Posted on April 8, 2020

Update notice — September 2026: This article contains commands from the Azure AD and MSOnline PowerShell modules, kept as they were at original publication. Microsoft has deprecated these modules and recommends Microsoft Graph PowerShell for current automation. Do not use the legacy commands in new implementations.

Source: Migration guidance for Microsoft Graph: “Azure AD, Azure AD Preview and MSOnline PowerShell modules are deprecated.”

Hello, everyone. In today’s article, we’ll show how to integrate Microsoft Entra multifactor authentication with AD FS to allow users to use passcodes generated by Microsoft Authenticator when accessing an application.

In federated environments, Microsoft Entra multifactor authentication integrated with AD FS can be used to eliminate the use of passwords, whether configured as the primary authentication method or as the secondary authentication method, giving users a more secure way to access resources.

Requirements

To configure the integration of MFA with AD FS, the following requirements are necessary:

  • An AD FS server federated with Microsoft Entra ID.
    – Communication from the AD FS server to the URLs below on port 443:
    https://adnotifications.windowsazure.com and https://login.microsoftonline.com.
  • Global Admin permission in the Microsoft Entra ID tenant you want to integrate.
  • Enterprise Administrator permission on the AD FS servers.

Configuring the AD FS Servers

Let’s start by generating a certificate to be used by Microsoft Entra multifactor authentication on the AD FS server.

Open PowerShell in administrator mode and run the following command:

$certbase64 = New-AdfsAzureMfaTenantCertificate -TenantID 'entre com seu dominio no Azure'

The generated certificate can be found in the computer certificate store on the AD FS server.

Adding Credentials to the Microsoft Entra Multifactor Authentication Client Service

Let’s install the MSOnline module by running the following command:

Install-Module msonline

Let’s connect to the MSOnline service by running the following command:

Connect-MsolService

Enter credentials with Global Admin permission in the Azure domain and click Next.

After connecting to Microsoft Online Services, run the command below:

New-MsolServicePrincipalCredential -AppPrincipalId 981f26a1-7f43-403b-a875-f8b09b8cd720 -Type asymmetric -Usage verify -Value $certBase64

Configuring the AD FS Server

Now let’s configure the integration of the Microsoft Entra multifactor authentication client with AD FS. Run the command below on the AD FS server using PowerShell:

Set-AdfsAzureMfaTenant -TenantId  -ClientId 981f26a1-7f43-403b-a875-f8b09b8cd720

Let’s restart the AD FS service so the settings take effect.

Restart-Service adfssrv

Enabling MFA on the AD FS Server

Now let’s enable MFA as an authentication method in AD FS. Open the AD FS management service and follow the steps below:
1 – Right-click the Authentication Methods option.
2 – Select Edit Primary Authentication Methods…

Let’s select Azure MFA for Extranet and Intranet.

Click Apply and Ok.

Accessing Services in Azure Using MFA on AD FS

When testing access to any Azure service that requires authentication via AD FS, we notice the Azure Multi-Factor Authentication option available.

By clicking Azure Multi-Factor Authentication, the user is prompted to fill in the fields below:
1 – Username
2 – Temporary verification code generated by the Microsoft Authenticator device.
3 – Click Sign in.

With the code verified, access was granted without the user needing to use a password, making access more secure.

Summary

In today’s article, we showed how to integrate Microsoft Entra multifactor authentication with AD FS to allow the use of codes generated by the Microsoft Authenticator app as an authentication method when users access an application.

I hope this content has contributed to enriching your knowledge of Microsoft Entra ID.

Did you like the post? Like and share it. 🙂

If you have any suggestions or comments, leave a comment.

[ ]’s

Ulysses Neves

Related guides: Browse the Microsoft Identity Troubleshooting Index or the Microsoft AD FS topic archive.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Microsoft Defender for Identity domain investigation: six questions to ask first September 10, 2026
  • Microsoft Entra Kerberos key rotation: what changes—and what administrators should check September 6, 2026
  • Microsoft Authenticator Will Block Jailbroken Devices in 2026 — What You Need to Know March 17, 2026
  • Enhancing Azure role activation security with FIDO2/Passkeys September 23, 2024
  • Microsoft Entra ID CAP | Enforcing WHfB using Authentication Strength April 21, 2024

Archives

  • September 2026
  • March 2026
  • September 2024
  • April 2024
  • February 2024
  • December 2023
  • September 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019

Tags

#aaddownleveldevice #adfs #adfscertificate #adfscertificates #adfsmfaadapter #azureauth #azureCA #azuredevice #capolicy #cloudsummit2021 #conditionalaccess #conditionalaccesspolicy #deviceregistration #farmbehavior #gopasswordless #mfaserver #msidentity #namedlocation #securingazure #securingazuread #sslprivatekey #troubleshootingadfs #troubleshootingwaptrust #tshootadfs #waptrust #webapplicationproxy #WHFBcerttrust #whfbdeployment #WHfBhybridsetup #WHfBprovisioning #widdatabase adconnect AD FS authenticationstrength az500 azurepim Azure security cloudsecurity microsoft365 Microsoft Azure Microsoft Entra hybrid join Microsoft Entra ID Microsoft Entra MFA PowerShell WHfB
©2026 Ulysses Neves | Design: Newspaperly WordPress Theme
Ulysses Neves
Gerenciar Consentimento de Cookies
Para fornecer as melhores experiências, usamos tecnologias como cookies para armazenar e/ou acessar informações do dispositivo. O consentimento para essas tecnologias nos permitirá processar dados como comportamento de navegação ou IDs exclusivos neste site. Não consentir ou retirar o consentimento pode afetar negativamente certos recursos e funções.
Funcional Always active
O armazenamento ou acesso técnico é estritamente necessário para a finalidade legítima de permitir a utilização de um serviço específico explicitamente solicitado pelo assinante ou utilizador, ou com a finalidade exclusiva de efetuar a transmissão de uma comunicação através de uma rede de comunicações eletrónicas.
Preferências
O armazenamento ou acesso técnico é necessário para o propósito legítimo de armazenar preferências que não são solicitadas pelo assinante ou usuário.
Estatísticas
O armazenamento ou acesso técnico que é usado exclusivamente para fins estatísticos. O armazenamento técnico ou acesso que é usado exclusivamente para fins estatísticos anônimos. Sem uma intimação, conformidade voluntária por parte de seu provedor de serviços de Internet ou registros adicionais de terceiros, as informações armazenadas ou recuperadas apenas para esse fim geralmente não podem ser usadas para identificá-lo.
Marketing
O armazenamento ou acesso técnico é necessário para criar perfis de usuário para enviar publicidade ou para rastrear o usuário em um site ou em vários sites para fins de marketing semelhantes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Ver preferências
  • {title}
  • {title}
  • {title}