This article records information as of February 17, 2021. The Outlook REST API has been retired. Use Microsoft Graph for new application development. The current app registration procedures for EWS and Exchange Online PowerShell may have changed; see the current documentation for using OAuth with EWS and app-only authentication for Exchange Online PowerShell.
The steps in this article are based on Microsoft Graph PowerShell SDK 1.6.1. Authentication methods and command parameters may differ in the current SDK. For the latest steps, see the installation and authentication documentation. Azure Active Directory is now called Microsoft Entra ID.
The transactionId property was added to the Microsoft Graph Event resource in the September 2020 update. It can help prevent an application from creating the same event multiple times, for example when the network connection is unreliable.
When creating an event, send a request with a transactionId as shown below. The value can be arbitrary. This example uses a GUID as a random value with no special meaning.
This article records procedures as of December 2022. Connecting to Exchange Online using Remote PowerShell has been retired, and connections using the old module or New-PSSession are no longer available. For current automation, see app-only authentication or Azure managed identities. Portal names and procedures have also changed. Protect credentials and certificate private keys, and do not embed passwords in scripts.