Update your Automation runbooks running exchange online to Modern Authentication
The final date for running basic authentication on Exchange Online is coming fast. Have you updated all your runbooks against Exchange Online from not using Basic authentication? If not it’s highly recommended to start the work ASAP. In this blog I will describe how easy it is to translate scripts in Azure Automation to run Modern Authentication on Exchange Online.
Note; that this Exchange Online V2 module is in Preview
Select Azure Automation and “Deploy to Azure”
Select your automation account and click “ok”
Edit your Runbooks and update your Exchange Connection string and also if you like translate to the improved commands EXO
#Get Credentials from Automation Credentials $cred = Get-AutomationPSCredential -Name "Azure Admin" #Connect to the new Exchange v2 module Connect-ExchangeOnline -Credential $cred #List all mailboxes with the new improved commands Get-ExoMailbox