Auto Shutdown task failing to send meail

Moenier Davids 0 Reputation points
2025-10-14T08:00:07.41+00:00

We have a weekly automation task which shuts down a VM which is working fine, however it's failing to send an email to notify us about the task status. The correct email address is maintained. Could you please help or advise on how to resolve this? Why is it failing to send the email

AutoShutdown

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Burlachenko 18,310 Reputation points Volunteer Moderator
    2025-10-14T09:54:44.6966667+00:00

    hi Moenier Davids,

    the shutdown works, but the notification email fails silently. This usually points to a problem with the "Send Email" action in your Automation runbook or the underlying email service configuration.

    check the job logs for your Automation runbook. In the Azure portal, go to your Automation Account, find the runbook, and look at its "Jobs" history. Click into the most recent failed job and examine the detailed output and error streams. This should give you a specific error message explaining why the email action failed.

    most common causes

    Outdated or Invalid Credentials: The runbook uses a credential asset to connect to your email service (like Office 365 SMTP). If the password for that account has expired or changed, the authentication will fail. Check and update the credential asset in the Automation Account.

    SMTP/Send Grid Configuration: If you're using a third party service like SendGrid, the API key or SMTP settings in your runbook's "Send Email" step might be incorrect or outdated.

    Network Restrictions: Your Automation Account might be running in a sandboxed environment that blocks outbound connections to SMTP ports. Check if you need to configure a firewall exception or use a hybrid worker.

    Dig into the runbook job logs to find the specific error. Then, verify and update the email credentials or service configuration used by the runbook.

    regards,

    Alex

    and "yes" if you would follow me at Q&A - personaly thx.
    P.S. If my answer help to you, please Accept my answer
    

    https://ctrlaltdel.blog/

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.