Set MFA using Azure Active Directory Powershell Module
Add support in Azure Active Directory PowerShell module to set Multi-Factor Authentication (MFA).
Carmine Punella commented
Hello there in Microsoft! Any news on this?
Mark Ziesemer commented
Needed cross-references here:
The only other option with fixing the MFA issue with the MSOL module would be using a Service Principal (https://docs.microsoft.com/en-us/powershell/azure/active-directory/signing-in-service-principal?view=azureadps-2.0) - but this isn't supported in MSOL, either.
Kory Olson commented
Since the MSOL module doesn't support passing a Username when using MFA to sign in, it is impossible to automate. A user has to put in their username in the popup. AzureAD v2 module supports username and can be automated but you can't use this module to get/set MFA settings on the user account. Now that the MSOnline module is deprecated. it is a must to get this into the v2 module to stay supported.
Brent Durksen commented
This is a must for automating new user creation with PowerShell
Without this the module is useless to be honest.