Set MFA using Azure Active Directory Powershell Module
Add support in Azure Active Directory PowerShell module to set Multi-Factor Authentication (MFA).
Still no updates on this?
There is already a Post for this:
Pratap Singh commented
I am working on parallel processing on users and I need MFA setting from get-azureaduser. Please add as soon as possible
Michael Rüefli commented
We really need something here! It seems, Azure MFA is quite legacy from an API perspective. MSOnline module is currently the only option to automate MFA user settings. But it does not support service principals. So only semi-automation, which is equal to no automation.
-provide graph API support for Azure MFA
-add functionality to the new AzureAD module
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.