Connect to Azure from PowerShell Runbook using a System assigned Managed Identity
Create a PowerShell Runbook using the Azure Portal
Send email from Automation Runbook using SendGrid and PowerShell