Plan an Azure AD Multi-Factor Authentication deployment

People are connecting to organizational resources in increasingly complicated scenarios. People connect from organization-owned, personal, and public devices on and off the corporate network using smart phones, tablets, PCs, and laptops, often on multiple platforms. In this always-connected, multi-device and multi-platform world, the security of user accounts is more important than ever. Passwords, no matter their complexity, used across devices, networks, and platforms are no longer sufficient to ensure the security of the user account, especially when users tend to reuse passwords across accounts. Sophisticated phishing and other social engineering attacks can result in usernames and passwords being posted and sold across the dark web.

Azure AD Multi-Factor Authentication (MFA) helps safeguard access to data and applications. It provides an additional layer of security using a second form of authentication. Organizations can use Conditional Access to make the solution fit their specific needs.

This deployment guide shows you how to plan and then test an Azure AD Multi-Factor Authentication roll-out.

To quickly see Azure AD Multi-Factor Authentication in action and then come back to understand additional deployment considerations:


Before starting a deployment of Azure AD Multi-Factor Authentication, there are prerequisite items that should be considered.

Scenario Prerequisite
Cloud-only identity environment with modern authentication No additional prerequisite tasks
Hybrid identity scenarios Azure AD Connect is deployed and user identities are synchronized or federated with the on-premises Active Directory Domain Services with Azure Active Directory.
On-premises legacy applications published for cloud access Azure AD Application Proxy is deployed.
Using Azure AD MFA with RADIUS Authentication A Network Policy Server (NPS) is deployed.
Users have Microsoft Office 2010 or earlier, or Apple Mail for iOS 11 or earlier Upgrade to Microsoft Office 2013 or later and Apple mail for iOS 12 or later. Conditional Access is not supported by legacy authentication protocols.

Plan user rollout

Your MFA rollout plan should include a pilot deployment followed by deployment waves that are within your support capacity. Begin your rollout by applying your Conditional Access policies to a small group of pilot users. After evaluating the effect on the pilot users, process used, and registration behaviors, you can either add more groups to the policy or add more users to the existing groups.

User communications

It is critical to inform users, in planned communications, about upcoming changes, Azure AD MFA registration requirements, and any necessary user actions. We recommend communications are developed in concert with representatives from within your organization, such as a Communications, Change Management, or Human Resources departments.

Microsoft provides communication templates and end-user documentation to help draft your communications. You can send users to to register directly by selecting the Security Info links on that page.

Deployment considerations

Azure AD Multi-Factor Authentication is deployed by enforcing policies with Conditional Access. A Conditional Access policy can require users to perform multi-factor authentication when certain criteria are met such as:

  • All users, a specific user, member of a group, or assigned role
  • Specific cloud application being accessed
  • Device platform
  • State of device
  • Network location or geo-located IP address
  • Client applications
  • Sign-in risk (Requires Identity Protection)
  • Compliant device
  • Hybrid Azure AD joined device
  • Approved client application

Use the customizable posters and email templates in multi-factor authentication rollout materials to roll out multi-factor authentication to your organization.

Enable Multi-Factor Authentication with Conditional Access

Conditional Access policies enforce registration, requiring unregistered users to complete registration at first sign-in, an important security consideration.

Azure AD Identity Protection contributes both a registration policy for and automated risk detection and remediation policies to the Azure AD Multi-Factor Authentication story. Policies can be created to force password changes when there is a threat of compromised identity or require MFA when a sign-in is deemed risky by the following events:

  • Leaked credentials
  • Sign-ins from anonymous IP addresses
  • Impossible travel to atypical locations
  • Sign-ins from unfamiliar locations
  • Sign-ins from infected devices
  • Sign-ins from IP addresses with suspicious activities

Some of the risk detections detected by Azure Active Directory Identity Protection occur in real time and some require offline processing. Administrators can choose to block users who exhibit risky behaviors and remediate manually, require a password change, or require a multi-factor authentication as part of their Conditional Access policies.

Define network locations

We recommend that organizations use Conditional Access to define their network using named locations. If your organization is using Identity Protection, consider using risk-based policies instead of named locations.

Configuring a named location

  1. Open Azure Active Directory in the Azure portal
  2. Select Security
  3. Under Manage, choose Named Locations
  4. Select New Location
  5. In the Name field, provide a meaningful name
  6. Select whether you are defining the location using IP ranges or Countries/Regions
    1. If using IP Ranges
      1. Decide whether to Mark as trusted location. Signing in from a trusted location lowers a user's sign-in risk. Only mark this location as trusted if you know the IP ranges entered are established and credible in your organization.
      2. Specify the IP Ranges
    2. If using Countries/Regions
      1. Expand the drop-down menu and select the countries or regions you wish to define for this named location.
      2. Decide whether to Include unknown areas. Unknown areas are IP addresses that can't be mapped to a country/region.
  7. Select Create

Plan authentication methods

Administrators can choose the authentication methods that they want to make available for users. It is important to allow more than a single authentication method so that users have a backup method available in case their primary method is unavailable. The following methods are available for administrators to enable:


Microsoft recommends using the Microsoft Authenticator (mobile app) as the primary method for Azure AD Multi-Factor Authentication for a more secure and improved user experience. The Microsoft Authenticator app also meets the National Institute of Standards and Technology Authenticator Assurance Levels.

Notification through mobile app

A push notification is sent to the Microsoft Authenticator app on your mobile device. The user views the notification and selects Approve to complete verification. Push notifications through a mobile app provide the least intrusive option for users. They are also the most reliable and secure option because they use a data connection rather than telephony.


If your organization has staff working in or traveling to China, the Notification through mobile app method on Android devices does not work in that country/region. Alternate methods should be made available for those users.

Verification code from mobile app

A mobile app like the Microsoft Authenticator app generates a new OATH verification code every 30 seconds. The user enters the verification code into the sign-in interface. The mobile app option can be used whether or not the phone has a data or cellular signal.

Call to phone

An automated voice call is placed to the user. The user answers the call and presses # on the phone keypad to approve their authentication. Call to phone is a great backup method for notification or verification code from a mobile app.

Text message to phone

A text message that contains a verification code is sent to the user, the user is prompted to enter the verification code into the sign-in interface.

Choose verification options

  1. Browse to Azure Active Directory, Users, Multi-Factor Authentication.

    Accessing the Multi-Factor Authentication portal from Azure AD Users blade in Azure portal

  2. In the new tab that opens browse to service settings.

  3. Under verification options, check all of the boxes for methods available to users.

    Configuring verification methods in the Multi-Factor Authentication service settings tab

  4. Click on Save.

  5. Close the service settings tab.

Plan registration policy

Administrators must determine how users will register their methods. Organizations should enable the new combined registration experience for Azure AD MFA and self-service password reset (SSPR). SSPR allows users to reset their password in a secure way using the same methods they use for multi-factor authentication. We recommend this combined registration because it's a great experience for users, with the ability to register once for both services. Enabling the same methods for SSPR and Azure AD MFA will allow your users to be registered to use both features.

Registration with Identity Protection

If your organization is using Azure Active Directory Identity Protection, configure the MFA registration policy to prompt your users to register the next time they sign in interactively.

Registration without Identity Protection

If your organization does not have licenses that enable Identity Protection, users are prompted to register the next time that MFA is required at sign-in. Users may not be registered for MFA if they don't use applications protected with MFA. It's important to get all users registered so that bad actors cannot guess the password of a user and register for MFA on their behalf, effectively taking control of the account.

Enforcing registration

Using the following steps a Conditional Access policy can force users to register for Multi-Factor Authentication

  1. Create a group, add all users not currently registered.
  2. Using Conditional Access, enforce multi-factor authentication for this group for access to all resources.
  3. Periodically, reevaluate the group membership, and remove users who have registered from the group.

You may identify registered and non-registered Azure AD MFA users with PowerShell commands that rely on the MSOnline PowerShell module.

Identify registered users

Get-MsolUser -All | where {$_.StrongAuthenticationMethods -ne $null} | Select-Object -Property UserPrincipalName | Sort-Object userprincipalname 

Identify non-registered users

Get-MsolUser -All | where {$_.StrongAuthenticationMethods.Count -eq 0} | Select-Object -Property UserPrincipalName | Sort-Object userprincipalname 

Convert users from per-user MFA to Conditional Access based MFA

If your users were enabled using per-user enabled and enforced Azure AD Multi-Factor Authentication the following PowerShell can assist you in making the conversion to Conditional Access based Azure AD Multi-Factor Authentication.

Run this PowerShell in an ISE window or save as a .PS1 file to run locally.

# Sets the MFA requirement state
function Set-MfaState {


    Process {
        Write-Verbose ("Setting MFA state for user '{0}' to '{1}'." -f $ObjectId, $State)
        $Requirements = @()
        if ($State -ne "Disabled") {
            $Requirement =
            $Requirement.RelyingParty = "*"
            $Requirement.State = $State
            $Requirements += $Requirement

        Set-MsolUser -ObjectId $ObjectId -UserPrincipalName $UserPrincipalName `
                     -StrongAuthenticationRequirements $Requirements

# Disable MFA for all users
Get-MsolUser -All | Set-MfaState -State Disabled


We recently changed the behavior and PowerShell script above accordingly. Previously, the script saved off the MFA methods, disabled MFA, and restored the methods. This is no longer necessary now that the default behavior for disable doesn't clear the methods.

Plan Conditional Access policies

To plan your Conditional Access policy strategy, which will determine when MFA and other controls are required, refer to Common Conditional Access policies.

It is important that you prevent being inadvertently locked out of your Azure AD tenant. You can mitigate the impact of this inadvertent lack of administrative access by creating two or more emergency access accounts in your tenant and excluding them from your Conditional Access policy.

Create Conditional Access policy

  1. Sign in to the Azure portal using a global administrator account.
  2. Browse to Azure Active Directory > Security > Conditional Access.
  3. Select New policy. Create a Conditional Access policy to enable MFA for Azure portal users in pilot group
  4. Provide a meaningful name for your policy.
  5. Under users and groups:
    • On the Include tab, select the All users radio button
    • On the Exclude tab, check the box for Users and groups and choose your emergency access accounts.
    • Click Done.
  6. Under Cloud apps, select the All cloud apps radio button.
    • OPTIONALLY: On the Exclude tab, choose cloud apps that your organization does not require MFA for.
    • Click Done.
  7. Under Conditions section:
    • OPTIONALLY: If you have enabled Azure Identity Protection, you can choose to evaluate sign-in risk as part of the policy.
    • OPTIONALLY: If you have configured trusted locations or named locations, you can specify to include or exclude those locations from the policy.
  8. Under Grant, make sure the Grant access radio button is selected.
    • Check the box for Require multi-factor authentication.
    • Click Select.
  9. Skip the Session section.
  10. Set the Enable policy toggle to On.
  11. Click Create.

Plan integration with on-premises systems

Some legacy and on-premises applications that do not authenticate directly against Azure AD require additional steps to use MFA including:

  • Legacy on-premises applications, which will need to use Application proxy.
  • On-premises RADIUS applications, which will need to use MFA adapter with NPS server.
  • On-premises AD FS applications, which will need to use MFA adapter with AD FS 2016 or newer.

Applications that authenticate directly with Azure AD and have modern authentication (WS-Fed, SAML, OAuth, OpenID Connect) can make use of Conditional Access policies directly.

Use Azure AD MFA with Azure AD Application Proxy

Applications residing on-premises can be published to your Azure AD tenant via Azure AD Application Proxy and can take advantage of Azure AD Multi-Factor Authentication if they are configured to use Azure AD pre-authentication.

These applications are subject to Conditional Access policies that enforce Azure AD Multi-Factor Authentication, just like any other Azure AD-integrated application.

Likewise, if Azure AD Multi-Factor Authentication is enforced for all user sign-ins, on-premises applications published with Azure AD Application Proxy will be protected.

Integrating Azure AD Multi-Factor Authentication with Network Policy Server

The Network Policy Server (NPS) extension for Azure AD MFA adds cloud-based MFA capabilities to your authentication infrastructure using your existing servers. With the NPS extension, you can add phone call, text message, or phone app verification to your existing authentication flow. This integration has the following limitations:

  • With the CHAPv2 protocol, only authenticator app push notifications and voice call are supported.
  • Conditional Access policies cannot be applied.

The NPS extension acts as an adapter between RADIUS and cloud-based Azure AD MFA to provide a second factor of authentication to protect VPN, Remote Desktop Gateway connections, or other RADIUS capable applications. Users that register for Azure AD MFA in this environment will be challenged for all authentication attempts, the lack of Conditional Access policies means MFA is always required.

Implementing your NPS server

If you have an NPS instance deployed and in use already, reference Integrate your existing NPS Infrastructure with Azure AD Multi-Factor Authentication. If you are setting up NPS for the first time, refer to Network Policy Server (NPS) for instructions. Troubleshooting guidance can be found in the article Resolve error messages from the NPS extension for Azure AD Multi-Factor Authentication.

Prepare NPS for users that aren't enrolled for MFA

Choose what happens when users that aren't enrolled with MFA try to authenticate. Use the registry setting REQUIRE_USER_MATCH in the registry path HKLM\Software\Microsoft\AzureMFA to control the feature behavior. This setting has a single configuration option.

Key Value Default
REQUIRE_USER_MATCH TRUE / FALSE Not set (equivalent to TRUE)

The purpose of this setting is to determine what to do when a user is not enrolled for MFA. The effects of changing this setting are listed in the table below.

Settings User MFA Status Effects
Key does not exist Not enrolled MFA challenge is unsuccessful
Value set to True / not set Not enrolled MFA challenge is unsuccessful
Key set to False Not enrolled Authentication without MFA
Key set to False or True Enrolled Must authenticate with MFA

Integrate with Active Directory Federation Services

If your organization is federated with Azure AD, you can use Azure AD Multi-Factor Authentication to secure AD FS resources, both on-premises and in the cloud. Azure AD MFA enables you to reduce passwords and provide a more secure way to authenticate. Starting with Windows Server 2016, you can now configure Azure AD MFA for primary authentication.

Unlike with AD FS in Windows Server 2012 R2, the AD FS 2016 Azure AD MFA adapter integrates directly with Azure AD and does not require an on-premises Azure MFA server. The Azure AD MFA adapter is built into Windows Server 2016, and there is no need for an additional installation.

When using Azure AD MFA with AD FS 2016 and the target application is subject to Conditional Access policy, there are additional considerations:

  • Conditional Access is available when the application is a relying party to Azure AD, federated with AD FS 2016 or newer.
  • Conditional Access is not available when the application is a relying party to AD FS 2016 or AD FS 2019 and is managed or federated with AD FS 2016 or AD FS 2019.
  • Conditional Access is also not available when AD FS 2016 or AD FS 2019 is configured to use Azure AD MFA as the primary authentication method.

AD FS logging

Standard AD FS 2016 and 2019 logging in both the Windows Security Log and the AD FS Admin log, contains information about authentication requests and their success or failure. Event log data within these events will indicate whether Azure AD MFA was used. For example, an AD FS Auditing Event ID 1200 may contain:


Renew and manage certificates

On each AD FS server, in the local computer My Store, there will be a self-signed Azure AD MFA certificate titled OU=Microsoft AD FS Azure MFA, which contains the certificate expiration date. Check the validity period of this certificate on each AD FS server to determine the expiration date.

If the validity period of your certificates is nearing expiration, generate and verify a new MFA certificate on each AD FS server.

The following guidance details how to manage the Azure AD MFA certificates on your AD FS servers. When you configure AD FS with Azure AD MFA, the certificates generated via the New-AdfsAzureMfaTenantCertificate PowerShell cmdlet are valid for two years. Renew and install the renewed certificates prior to expiration to ovoid disruptions in MFA service.

Implement your plan

Now that you have planned your solution, you can implement by following the steps below:

  1. Meet any necessary prerequisites
    1. Deploy Azure AD Connect for any hybrid scenarios
    2. Deploy Azure AD Application Proxy for on any on-premises apps published for cloud access
    3. Deploy NPS for any RADIUS authentication
    4. Ensure users have upgraded to supported versions of Microsoft Office with modern authentication enabled
  2. Configure chosen authentication methods
  3. Define your named network locations
  4. Select groups to begin rolling out MFA.
  5. Configure your Conditional Access policies
  6. Configure your MFA registration policy
    1. Combined MFA and SSPR
    2. With Identity Protection
  7. Send user communications and get users to enroll at
  8. Keep track of who's enrolled


Government cloud users can enroll at

Manage your solution

Reports for Azure AD MFA

Azure AD Multi-Factor Authentication provides reports through the Azure portal:

Report Location Description
Usage and fraud alerts Azure AD > Sign-ins Provides information on overall usage, user summary, and user details; as well as a history of fraud alerts submitted during the date range specified.

Troubleshoot MFA issues

Find solutions for common issues with Azure AD MFA at the Troubleshooting Azure AD Multi-Factor Authentication article on the Microsoft Support Center.

Next steps

To see Azure AD Multi-Factor Authentication in action, complete the following tutorial: