Hi and thanks for your post! Do you have an idea how to connect to MicrosoftTeams and manage user telefon settins?
I could not find anything else out there on this use case!
But I have determined my runbook is getting stuck on:
$MSI = (Get-AzureADServicePrincipal -Filter "displayName eq '$automationAccountDisplayName'"
Pretty sure I got the $automationAccountDisplayName correct, so I am wondering what permissions I need to confirm exist, that perhaps you alluded to?
Kevin L
Great article! Is there any way you can connect with a managed identity locally? I think I'm coming up with an issue you mentioned with Intune where I'm trying to use Get-MgDeviceManagementRoleScopeTag and it's not bringing back anything, (using V2 preview 8) if it was run locally could possibly confirm it didn't like it. Didn't have any luck with the vscode azure automation extension run local to connect-mggraph -identity.
And I've added all the perms to the system management identity.