Using the SendEmail SMA Integration Module in Azure Automation

Over the last couple of days, I’ve spent sometime on Azure Automation (SMA in Azure). The first thing I did was imported and configured the SendEmail and SendPushNotification SMA Integration Modules that I have posted earlier. I created a simple test runbook to send an email and a push notification to my android phone: workflow Test-PushNotification { #Get the contact details $ContactName = ‘tyang’ Write-Verbose “Getting SMA Address Book entry for $ContactName” $Contact = Get-AutomationConnection -Name $ContactName Write-Verbose “Contact: $Contact” #Get SMTP settings Write-Verbose “Getting SMTP configuration” $SMTPSettings = Get-AutomationConnection -Name ‘GmailSMTP’ Write-Verbose $SMTPSettings $Subject = “Test message from Azure

Continue reading
%d bloggers like this: