Exchange Online Powershell CBA behaves strangely

Quadrotech LAB Administrator 0 Reputation points
2023-02-14T13:12:36.76+00:00

I m connecting to Exchnage Online Powershell through .Net application. I passing appId, certificate and organization domain as parameters. However my organization domain doesn't contain "onmicrosoft.com" part which is why I got "For AppOnly flow Tenant in token doesn't match with Tenant in request Url" in production. But when I run the same code locally everything is working fine. I don't understand why

Microsoft Exchange Online
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.