Have tried to send an email from Azure.
$Credential = Get-AutomationPSCredential -Name \'email@contoso.com\' $Username = $Credential.Username $Password = $Crede