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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors