This is a website of Barne.org

How to Set Up Hardware Key MFA With Azure AD

Article · · 3 minutes to read · Jacob Barnes

Security tokens are hardware devices that can act as a secondary (or sometimes primary) authentication method for online services. I recently purchased two YubiKey 5 tokens from Yubico, a popular security key vendor, and wanted to set them up so that they can be used as a MFA device with Azure AD.

This is a quick tutorial to set up your Azure AD tenant to allow hardware tokens for MFA and allow users to enroll their tokens.

Tutorial

Enable FIDO2 security key authentication

  1. Navigate to the Microsoft Azure portal and open the “Azure Active Directory” product Screenshot showing Azure Active Directory link
  2. In the sidebar, select “Security” and then select “Authentication methods” Screenshot showing security tab Screenshot showing authentication methods tab
  3. On the default “Policies” page, select “FIDO2 security key” in the list of authentication methods Screenshot showing list of authentication methods with FIDO2 security key highlighted
  4. Under “Enable” select “Yes” and under “Target” select “All users” Screenshot showing enable and target options
  5. Click the “Configure” tab at the top of the page. On this page, select “Yes” for “Allow self-service set up” and “Enforce attestation” Screenshot showing allow self-service set up and enforce attestation enabled
  6. Save your changes by clicking “Save” at the bottom of the page. Users will be able to enroll their security tokens as a MFA device after 30-60 minutes.

Enrolling users with hardware security keys

  1. Have users navigate to https://myaccount.microsoft.com/ and sign in.
  2. Click “UPDATE INFO” in the “Security info” card. Screenshot showing my account page with security info link highlighted
  3. On the “Security info” page, click “Add sign-in method” and click “Security Key”. Screenshot showing sign in methods Screenshot showing add a method modal
  4. You will be prompted to select the kind of security key that you have. If you have a Yubikey, or other type of security key that uses a port on your computer to authenticate (USB, USB-C, etc.), select “USB device”. Some other hardware security devices use NFC (like some smart cards), for which you would select “NFC device”. Screenshot showing security key configuration modal
  5. After selecting the type of key, click “Next” on the following screen. You will be redirected to a new page. A Windows Security screen will show with instructions to insert your USB device. Screenshot showing windows security screen
  6. If you are setting up the key for the first time, you will be prompted to create a pin. Otherwise, you will enter the pin you created when the device was set up.
  7. After entering a name for your security key, your device will be completely set up and you will be able to use it as a MFA device.