Forum Discussion

NidalT's avatar
NidalT
Brass Contributor
Oct 04, 2018

Enable MFA with AzureAD Module V2

Hi there,

 

I have written a lot of Powershell scripts to automate and report Office 365/Azure in the last couple of years.

 

Now I'm in the process of re-writing some of them to utilize the new AzureAD v2 module instead of the old MSOL module.

Whih, I think, will be deprecated soon?

 

One of the benefits of this will be that will will be able to enable MFA on ALL admin accounts.

The only thing that's holding me back is the fact that I can't figure out how to enable MFA with the new AzureAD module.

 

Our user provisioning script will enable MFA for all new users.

With the old MSOL cmdlets it is a piece of cake. But how to do it with AzureAD Module?

 

Thanks

Resources