Cloud Automation Advanced < >
Table of content
Error Handling
The deployment log of an ARM template deployment can be access by the Get-AzureRMLog
function.
$ResourceGroupName = 'deploymentGroupName'
$correlationId = ((Get-AzureRMLog -x $ResourceGroupName)[0]).CorrelationId
$logentry = (Get-AzureRMLog -CorrelationId $correlationId -DetailedOutput)
#$logentry
$rawStatusMessage = $logentry.Properties
$status = $rawStatusMessage.Content.statusMessage | ConvertFrom-Json
$status.error.details
$status.error.details.details
Azure Log Analytics Integration
Logs into Operations Management Suite (OMS) Log Analytics TODO: Add setup and further description
Chat Ops
See Runbook gallery Slack Webhook