How to connect to Exchange Online using System Managed Identity from an Azure Runbook: Create an Azure Automation account and enable System Managed Identity. Assign Exchange Administrator role and Graph permissions to System Managed Identity. Import PowerShell Modules to Automation Account and create a PowerShell Runbook
