Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.21 KB

03_Cloud_Automation_Advanced.md

File metadata and controls

42 lines (29 loc) · 1.21 KB

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

Links

Next Cloud Automation Version Control