Apple Keychain (available in Safari on iOS 15+ and macOS 10.15+)
If you had an MFA reset it should prompt you to set up a new method on login otherwise you can go to https://mysignins.microsoft.com/security-info and use the Add sign-in method option on that page.

It should then present you with the type of method you would like to add. Choose Microsoft Authenticator even though that is not the authentication app we will be using.

It will then instruct you to install the app. On this dialog there is an option for I want to use a different authenticator app that you will need to click.

It will then give an option to set up your account. You would proceed by clicking Next.

It should now present you with a dialog that displays the secret key needed to set up the verification code. If you touch the icon below the secret key it will copy it to the clipboard.

If you have a login saved already in your Passwords app for the Microsoft login you would need to go into either the app or the Passwords portion in Settings and search for the correct Microsoft login.

You would need to choose to edit the saved password with the Edit button in the top right.

When editing the saved login choose the Set Up Code option.

In the dialog that pops up paste in the secret key that had been copied and confirm with Use Setup Key After that is done you can save the edit you made to the login.

Go back to the browser and choose Next it should ask for the verification code. You should be able to autofill the code as you would with a saved password.

If you are unable to autofill the code, you can access the code by going into your Passwords app and selecting either Codes or by locating your saved Microsoft login under All.

Once you hit next it should show up in the list of methods for authentication.

If you use iCloud for passwords it will also sync across your Apple devices. If you have the Microsoft Authenticator app setup it will default to that method when logging in and you would need to choose the “cannot use the Microsoft Authenticator” option and then it will give you an option to use a verification code instead.