You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/automation/automation-dsc-diagnostics.md
+60-48Lines changed: 60 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,35 @@
1
1
---
2
-
title: Forward Azure Automation DSC reporting data to Log Analytics
3
-
description: This article demonstrates how to send Desired State Configuration (DSC) reporting data to Log Analytics to deliver additional insight and management.
2
+
title: Forward Azure Automation State Configuration reporting data to Log Analytics
3
+
description: This article demonstrates how to send Desired State Configuration (DSC) reporting data from Azure Automation State Configuration to Log Analytics to deliver additional insight and management.
4
4
services: automation
5
5
ms.service: automation
6
6
ms.component: dsc
7
-
author: georgewallace
8
-
ms.author: gwallace
9
-
ms.date: 06/12/2018
7
+
author: DCtheGeek
8
+
ms.author: dacoulte
9
+
ms.date: 08/08/2018
10
10
ms.topic: conceptual
11
11
manager: carmonm
12
12
---
13
-
# Forward Azure Automation DSC reporting data to Log Analytics
13
+
# Forward Azure Automation State Configuration reporting data to Log Analytics
14
14
15
-
Automation can send DSC node status data to your Log Analytics workspace.
16
-
Compliance status is visible in the Azure portal, or with PowerShell, for nodes and for individual DSC resources in node configurations.
17
-
With Log Analytics you can:
15
+
Azure Automation State Configuration can send Desired State Configuration (DSC) node status data to
16
+
your Log Analytics workspace. Compliance status is visible in the Azure portal or with PowerShell,
17
+
for nodes and for individual DSC resources in node configurations. With Log Analytics you can:
18
18
19
-
* Get compliance information for managed nodes and individual resources
20
-
* Trigger an email or alert based on compliance status
21
-
* Write advanced queries across your managed nodes
22
-
* Correlate compliance status across Automation accounts
23
-
* Visualize your node compliance history over time
19
+
- Get compliance information for managed nodes and individual resources
20
+
- Trigger an email or alert based on compliance status
21
+
- Write advanced queries across your managed nodes
22
+
- Correlate compliance status across Automation accounts
23
+
- Visualize your node compliance history over time
24
24
25
25
## Prerequisites
26
26
27
-
To start sending your Automation DSC reports to Log Analytics, you need:
27
+
To start sending your Automation State Configuration reports to Log Analytics, you need:
28
28
29
-
* The November 2016 or later release of [Azure PowerShell](/powershell/azure/overview) (v2.3.0).
30
-
* An Azure Automation account. For more information, see [Getting Started with Azure Automation](automation-offering-get-started.md)
31
-
* A Log Analytics workspace with an **Automation & Control** service offering. For more information, see [Get started with Log Analytics](../log-analytics/log-analytics-get-started.md).
32
-
* At least one Azure Automation DSC node. For more information, see [Onboarding machines for management by Azure Automation DSC](automation-dsc-onboarding.md)
29
+
- The November 2016 or later release of [Azure PowerShell](/powershell/azure/overview) (v2.3.0).
30
+
- An Azure Automation account. For more information, see [Getting Started with Azure Automation](automation-offering-get-started.md)
31
+
- A Log Analytics workspace with an **Automation & Control** service offering. For more information, see [Get started with Log Analytics](../log-analytics/log-analytics-get-started.md).
32
+
- At least one Azure Automation State Configuration node. For more information, see [Onboarding machines for management by Azure Automation State Configuration](automation-dsc-onboarding.md)
33
33
34
34
## Set up integration with Log Analytics
35
35
@@ -41,61 +41,67 @@ To begin importing data from Azure Automation DSC into Log Analytics, complete t
1. Run the following PowerShell command, replacing `<AutomationResourceId>` and `<WorkspaceResourceId>` with the _ResourceId_ values from each of the previous steps:
### Send an email when a DSC compliance check fails
91
+
### Send an email when a State Configuration compliance check fails
89
92
90
-
One of our top customer requests is for the ability to send an email or a text when something goes wrong with a DSC configuration.
93
+
One of our top customer requests is for the ability to send an email or a text when something goes
94
+
wrong with a DSC configuration.
91
95
92
-
To create an alert rule, you start by creating a log search for the DSC report records that should invoke the alert. Click the **+ New Alert Rule** button to create and configure the alert rule.
96
+
To create an alert rule, you start by creating a log search for the State Configuration report
97
+
records that should invoke the alert. Click the **+ New Alert Rule** button to create and configure
98
+
the alert rule.
93
99
94
100
1. From the Log Analytics Overview page, click **Log Search**.
95
-
1. Create a log search query for your alert by typing the following search into the query field: `Type=AzureDiagnostics Category=DscNodeStatus NodeName_s=DSCTEST1 OperationName=DscNodeStatusData ResultType=Failed`
101
+
1. Create a log search query for your alert by typing the following search into the query field: `Type=AzureDiagnostics Category='DscNodeStatus' NodeName_s='DSCTEST1' OperationName='DscNodeStatusData' ResultType='Failed'`
96
102
97
-
If you have set up logs from more than one Automation account or subscription to your workspace, you can group your alerts by subscription and Automation account.
98
-
Automation account name can be derived from the Resource field in the search of DscNodeStatusData.
103
+
If you have set up logs from more than one Automation account or subscription to your workspace, you can group your alerts by subscription and Automation account.
104
+
Automation account name can be derived from the Resource field in the search of DscNodeStatusData.
99
105
1. To open the **Create rule** screen, click **+ New Alert Rule** at the top of the page. For more information on the options to configure the alert, see [Create an alert rulelert](../monitoring-and-diagnostics/monitor-alerts-unified-usage.md).
100
106
101
107
### Find failed DSC resources across all nodes
@@ -104,7 +110,7 @@ One advantage of using Log Analytics is that you can search for failed checks ac
104
110
To find all instances of DSC resources that failed.
105
111
106
112
1. From the Log Analytics Overview page, click **Log Search**.
107
-
1. Create a log search query for your alert by typing the following search into the query field: `Type=AzureDiagnostics Category=DscNodeStatus OperationName=DscResourceStatusData ResultType=Failed`
113
+
1. Create a log search query for your alert by typing the following search into the query field: `Type=AzureDiagnostics Category='DscNodeStatus' OperationName='DscResourceStatusData' ResultType='Failed'`
108
114
109
115
### View historical DSC node status
110
116
@@ -183,16 +189,22 @@ Diagnostics from Azure Automation creates two categories of records in Log Analy
183
189
184
190
## Summary
185
191
186
-
By sending your Automation DSC data to Log Analytics, you can get better insight into the status of your Automation DSC nodes by:
192
+
By sending your Automation State Configuration data to Log Analytics, you can get better insight
193
+
into the status of your Automation State Configuration nodes by:
187
194
188
-
* Setting up alerts to notify you when there is an issue
189
-
* Using custom views and search queries to visualize your runbook results, runbook job status, and other related key indicators or metrics.
195
+
- Setting up alerts to notify you when there is an issue
196
+
- Using custom views and search queries to visualize your runbook results, runbook job status, and other related key indicators or metrics.
190
197
191
-
Log Analytics provides greater operational visibility to your Automation DSC data and can help address incidents more quickly.
198
+
Log Analytics provides greater operational visibility to your Automation State Configuration data
199
+
and can help address incidents more quickly.
192
200
193
201
## Next steps
194
202
195
-
* To learn more about how to construct different search queries and review the Automation DSC logs with Log Analytics, see [Log searches in Log Analytics](../log-analytics/log-analytics-log-searches.md)
196
-
* To learn more about using Azure Automation DSC, see [Getting started with Azure Automation DSC](automation-dsc-getting-started.md)
197
-
* To learn more about Log Analytics and data collection sources, see [Collecting Azure storage data in Log Analytics overview](../log-analytics/log-analytics-azure-storage.md)
198
-
203
+
- For an overview, see [Azure Automation State Configuration](automation-dsc-overview.md)
204
+
- To get started, see [Getting started with Azure Automation State Configuration](automation-dsc-getting-started.md)
205
+
- To learn about compiling DSC configurations so that you can assign them to target nodes, see [Compiling configurations in Azure Automation State Configuration](automation-dsc-compile.md)
206
+
- For PowerShell cmdlet reference, see [Azure Automation State Configuration cmdlets](/powershell/module/azurerm.automation/#automation)
207
+
- For pricing information, see [Azure Automation State Configuration pricing](https://azure.microsoft.com/pricing/details/automation/)
208
+
- To see an example of using Azure Automation State Configuration in a continuous deployment pipeline, see [Continuous Deployment Using Azure Automation State Configuration and Chocolatey](automation-dsc-cd-chocolatey.md)
209
+
- To learn more about how to construct different search queries and review the Automation State Configuration logs with Log Analytics, see [Log searches in Log Analytics](../log-analytics/log-analytics-log-searches.md)
210
+
- To learn more about Log Analytics and data collection sources, see [Collecting Azure storage data in Log Analytics overview](../log-analytics/log-analytics-azure-storage.md)
0 commit comments