Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Enable MFA with AzureAD Module V2

Brass Contributor

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

6 Replies

Not possible yet, but once they release the new MFA API, it should also be part of the Azure AD module.

@Vasil Michev Sorry to bother you, but is there any ETA on when this new API will be released?

 

Also, for reference there are many users including myself that would also like to be notified when this functionality becomes available: https://github.com/MicrosoftDocs/azure-docs/issues/10926

No idea, we haven't heard any updates about this lately :\

Thanks anyways, hopefully Microsoft adds this feature soon. I even looked into the "AzureADPreview" module, but I don't see anything about MFA mentioned in it either. I guess I'll just use the old msonline module in the meantime.

One year later and still no possibility to enable MFA with the new module.

MSOnline is depricated. I do want to move to the new module, but unfortunately not yet possible.

 

There is this case on Github which they closed:

https://github.com/MicrosoftDocs/azure-docs/issues/10926

 

And here is a Uservoice you can vote on:

https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/36816202-set-mfa-using-a...

@NidalT  I see in the April 2019 webinar that there is a section titled "Secure Your Identities with Azure Active Directory and Multi Factor Authentication". Maybe they will also address the Powershell module, though I'm not holding my breath.