We are using the following command to connect to ExchangeOnline using Service Principal: Connect-ExchangeOnline -AppId $Application.AppId -

Ginny Selli 0 Reputation points
2024-07-22T18:24:38.5933333+00:00

We are using the following command to connect to ExchangeOnline using Service Principal: Connect-ExchangeOnline -AppId $Application.AppId -

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,258 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 149.1K Reputation points MVP
    2024-07-22T18:26:56.6833333+00:00

    Does that work? :)

    Be sure to follow:

    https://learn.microsoft.com/en-us/powershell/exchange/app-only-auth-powershell-v2?view=exchange-ps

    Example:

    Connect-ExchangeOnline -CertificateThumbPrint "012THISISADEMOTHUMBPRINT" -AppID "36ee4c6c-0812-40a2-b820-b22ebd02bce3" -Organization "contosoelectronics.onmicrosoft.com"
    
    0 comments No comments

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.