Open filipvh opened 11 months ago
I believe Exchange Online has stopped supporting PSRemoting endpoints with OAuth as per https://techcommunity.microsoft.com/t5/exchange-team-blog/deprecation-of-remote-powershell-rps-protocol-in-security-and/ba-p/3815432
The timeline of disablements in this blog post applies only to tenants in our World-Wide (WW) cloud. Final RPS disablement for customers in other Microsoft cloud environments as well as WW cloud is scheduled for October 2023.
They have their own REST API now with the new cmdlets wwhich means you can't use the PSRP library for online exchange management anymore.
I used the example provided in the readme MSAL seems to work fine, but I get a 400 error with no other details.
The code I've used (partially modified):