Microsoft Teams 5.8.1 Preview Managed Identity support for *-cs cmdlets

Hi All,
Microsoft has releaseed the MicrosoftTeams 5.8.1 Preview Module
- PowerShell Gallery MicrosoftTeams 5.8.1-preview


Release Notes
- 5.8.1-preview* (The project - MicrosoftTeams contains changes till this release)
- Adds support for managed identity based auth for *-Cs cmdlets using -Identity parameter in Connect-MicrosoftTeams.
- Few cmdlets that don’t support application-based authentication are not supported for this as well.
This is very exiting. Back in August i tried to use MicrosoftTeams on Azure Automation with the Managed Identity. The Setup and the Permissions needed are documented there.
- Blog Article from August 2023 Use Managed Identity with Microsoft Teams on Azure Automation


I used the “Deploy to Azure Automation” to deploy the Module to my Azure Automation Account


Deployment


Installation of the Preview Module has been completed


Here is my Test Code from the Azure Automation Runbook
###############################################################################
# Demo Teams Runbook
###############################################################################
Write-Output "Connect Teams"
Connect-MicrosoftTeams -Identity
Write-Output "Getting Teams"
$Teams = Get-Team
Write-Output "Found $($teams.Count) teams"
Write-Output "Get-CsOnlineUser"
Get-CsOnlineUser -Identity a.bohren@icewolf.ch | fl *Ent*,*host*,*voice*, *line*
Write-Output "Disconnect Teams"
Disconnect-MicrosoftTeams


I can confirm that ManagedIdentity with the Preview Module now works for *-cs commandlets 🤩


Regards
Andres Bohren

Azure Logo


PowerShell Logo


Teams Logo
