Step 5 is where I messed up.
https://video2.skills-academy.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps
I guess I didn't hit the save button or something like that.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to connect to exchange using the v2 powershell module. Logging in with regular user accounts works fine. I ensured I upgraded to the preview edition so I could use apps and certificates for powershell automation. I've got a self signed cert and imported it to the app. When I try to connect I get the following error:
Using ConnectionUri:'https://outlook.office365.com/powershell-liveid/', in the environment:'O365Default'.
New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : ᨰ緱ɋ For
more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.3\ExchangeOnlineManagement.psm1:481 char:30
Step 5 is where I messed up.
https://video2.skills-academy.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps
I guess I didn't hit the save button or something like that.
Looks like I didn't fully apply the application permissions for the app to the security role. I just completed the change. I'm hoping this will resolve the issue.
Yeah that was it. It works.