Hi everyone,
I am having a problem to enroll automated Powershells with service principals.
I am trying to connect to Exchange Online & Teams Online by using this doc
https://docs.microsoft.com/en-us/powershell/azure/active-directory/signing-in-service-principal?view=azureadps-2.0
I created the App - i assigned it the right directory roles.
But neither Exchange nor Teams is working - i am getting:
get-team : Forbidden in /v1.0/teams/ endpoint
or
New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30
The signin says "Success" in the logs.
any directions where i should go next?
BR
Stephan
