Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Saravanan_ameer
Frequent Visitor

Powershell Connection


For the MFA enabled account I need to run the PowerShell scripts without any user intersection for the below connections

1.Connect-MsolService

2.Connect-SPOService

3.Connect-MicrosoftTeams

Please help to get the steps to connect

3 REPLIES 3
lbendlin
Super User
Super User

MFA explicitly requires user interaction.

I understood that MFA required user interaction, here the issue is we are autmoted to run those scriots using those connections and based on that our management is getting reports but since the MFA enabled for that account the scriots are stopped.Is there any way to make the connection by using unattended scripts

Use a service principal account that doesn't need MFA.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors