OK this one’s not a problem with PSU per se - more a call for help in case someone else (@insomniacc?) has tried this.
I’d like to be able to manage Microsoft Teams from PSU, and I see that
Connect-MicrosoftTeams has an
-Identity parameter to let it connect using a managed identity.
Our PSU app service has its own managed identity (we use it to connect to AzKeyVault) so I’m assuming it’s possible to use that.
I have this script:
Connect-MicrosoftTeams -Identity Get-Team
… and it appears to connect, but then throws this when it gets to the
Code: InvalidAuthenticationToken Message: CompactToken parsing failed with error code: 80049217 InnerError: RequestId: 846f64f5-51fb-4c3a-84ff-ad324428ca06 DateTimeStamp: 2022-01-13T04:01:05 HttpStatusCode: InvalidAuthenticationToken
I’ve granted the “Group.ReadWrite.All” Graph role to the managed identity as best I can tell, so I think it should have permission.
Has anyone else tried connecting to Teams from an Azure-hosted instance of PSU?
Product: PowerShell Universal Version: 2.7.0