Forum Discussion
c# and MicrosoftTeams PowerShell Modul 3.1.0
- Feb 07, 2022
joergsc_4711 - The engineering team has ran command in C# for a test tenant with MFA enabled and it is working fine in version 3.1.1. Sharing the script and the output.
Script :
Output :
Can you please update version and try again? And if failing again please share the complete screenshot of error and script?
- Meghana-MSFTJan 31, 2022Former Employee
We got an update from the engineering team saying -
MFA is supported only with interactive option, Please refer - https://docs.microsoft.com/en-us/powershell/module/teams/connect-microsoftteams?view=teams-psThanks,
Meghana
---------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- joergsc_4711Jan 31, 2022Copper ContributorWhat - excatly - do they mean with "interactiv option"? Where can I set such an option?
When you connect to Azure AD or Exchange with an MFA enabled account, the interactive Logon Windows pops up and you can log on interactively (same behavior in ISE and C#). When you do the same with Teams, PowerShell throws the error mentioned above. So the behavior of the Teams Modul is not consistent with AAD or Exchange.
By the way: if you issue the command in ISE directly, it works even with Teams. If you issue the same command via C#, it doesn't work.- Meghana-MSFTFeb 07, 2022Former Employee
joergsc_4711 - The engineering team has ran command in C# for a test tenant with MFA enabled and it is working fine in version 3.1.1. Sharing the script and the output.
Script :
Output :
Can you please update version and try again? And if failing again please share the complete screenshot of error and script?