Forum Discussion
Shampy
Jul 15, 2021Copper Contributor
Email alerts not working in Azure automation using powershell script
Hi All, Can someone help. I am working on creating a failure alert for my runbooks in Azure automation account using powershell. I am using Send-MailMessage command to send email when I catch an er...
lukemurraynz
Jul 17, 2021Learn Expert
I wonder if it can't find the server name as it is not running internally - ie on a Hybrid Worker, so it can't resolve the server.
You may be better off leveraging SendGrid to send the emails instead - https://docs.microsoft.com/en-us/azure/automation/automation-send-email
You may be better off leveraging SendGrid to send the emails instead - https://docs.microsoft.com/en-us/azure/automation/automation-send-email