Azure runbook output to email
问题 I am trying to send the output of a VM status from Azure automation runbook into email, I use the below code: function Send-EMail { Param ( [Parameter(Mandatory=$true)] [String]$EmailTo, [Parameter(Mandatory=$true)] [String]$Subject, [Parameter(Mandatory=$true)] [String]$Body, [Parameter(Mandatory=$false)] [String]$EmailFrom="noreply@idlebytes.com", #This gives a default value to the $EmailFrom command [parameter(Mandatory=$false)] [String] $SmtpServer = (Get-AutomationVariable -Name