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-onboarding.md
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
---
2
2
title: Onboarding machines for management by Azure Automation State Configuration
3
-
description: How to setup machines for management with Azure Automation State Configuration
3
+
description: How to set up machines for management with Azure Automation State Configuration
4
4
services: automation
5
5
ms.service: automation
6
6
ms.subservice: dsc
7
7
author: mgoedtel
8
8
ms.author: magoedte
9
9
ms.topic: conceptual
10
-
ms.date: 08/08/2018
10
+
ms.date: 12/10/2019
11
11
manager: carmonm
12
12
---
13
13
# Onboarding machines for management by Azure Automation State Configuration
14
14
15
15
## Why manage machines with Azure Automation State Configuration?
16
16
17
17
Azure Automation State Configuration is a configuration management service
18
-
for DSC nodes in any cloud or on-premises datacenter.
18
+
for Desired State Configuration (DSC) nodes in any cloud or on-premises datacenter.
19
19
It enables scalability across thousands of machines quickly and easily from a central, secure location.
20
20
You can easily onboard machines,
21
21
assign them declarative configurations,
@@ -41,10 +41,16 @@ State Configuration can also be used as a report-only endpoint.
41
41
This allows you to set (push) configurations through DSC and view reporting details in Azure Automation.
42
42
43
43
> [!NOTE]
44
-
> Managing Azure VMs with State Configuration is included at no extra charge if the virtual machine DSC extension installed is greater than 2.70. Refer to the [**Automation pricing page**](https://azure.microsoft.com/pricing/details/automation/) for more details.
44
+
> Managing Azure VMs with State Configuration is included at no extra charge if the virtual machine DSC extension installed is greater than 2.70. For more information, see [**Automation pricing page**](https://azure.microsoft.com/pricing/details/automation/).
45
45
46
46
The following sections outline how you can onboard each type of machine to Azure Automation State Configuration.
47
47
48
+
> [!NOTE]
49
+
>Deploying DSC to a Linux node uses the `/tmp` folder and modules like **nxAutomation** are temporarily downloaded for verification before installing them in their appropriate location. To ensure the modules install correctly, the Log Analytics agent for Linux needs read/write permission on `/tmp` folder. The Log Analytics agent for Linux runs as the `omsagent` user.
50
+
>
51
+
>To grant write permission to `omsagent` user, run the following commands: `setfacl -m u:omsagent:rwx /tmp`
52
+
>
53
+
48
54
## Azure virtual machines
49
55
50
56
Azure Automation State Configuration lets you easily onboard Azure virtual machines for
@@ -75,7 +81,7 @@ Azure virtual machines can be deployed and onboarded to Azure Automation State C
75
81
Azure Resource Manager templates. See [Server managed by Desired State Configuration service](https://azure.microsoft.com/resources/templates/101-automation-configuration/)
76
82
for an example template that onboards an existing VM to Azure Automation State Configuration.
77
83
If you are managing a Virtual Machine Scale Set, see the example template
78
-
[VM Scale Set Configuration managed by Azure Automation](https://azure.microsoft.com/resources/templates/201-vmss-automation-dsc/).
84
+
[Virtual machine scale set Configuration managed by Azure Automation](https://azure.microsoft.com/resources/templates/201-vmss-automation-dsc/).
79
85
80
86
### PowerShell
81
87
@@ -114,7 +120,7 @@ can also be onboarded to Azure Automation State Configuration, as long as they h
114
120
```
115
121
116
122
1. If you cannot apply the PowerShell DSC metaconfigurations remotely, copy the metaconfigurations folder from step 2 onto each machine to onboard. Then call **Set-DscLocalConfigurationManager** locally on each machine to onboard.
117
-
1. Using the Azure portal or cmdlets, check that the machines to onboard now show up as State Configuration nodes registered in your Azure Automation account.
123
+
1. Using the Azure portal or cmdlets, check that the machines to onboard appear as State Configuration nodes registered in your Azure Automation account.
118
124
119
125
## Physical/virtual Linux machines on-premises, or in a cloud other than Azure
120
126
@@ -123,7 +129,7 @@ can also be onboarded to Azure Automation State Configuration, as long as they h
123
129
[outbound access to Azure](automation-dsc-overview.md#network-planning):
124
130
125
131
1. Make sure the latest version of [PowerShell Desired State Configuration for Linux](https://github.com/Microsoft/PowerShell-DSC-for-Linux) is installed on the machines you want to onboard to Azure Automation State Configuration.
126
-
1. If the [PowerShell DSC Local Configuration Manager defaults](/powershell/scripting/dsc/managing-nodes/metaConfig4) match your use case, and you want to onboard machines such that they **both** pull from and report to Azure Automation State Configuration:
132
+
2. If the [PowerShell DSC Local Configuration Manager defaults](/powershell/scripting/dsc/managing-nodes/metaConfig4) match your use case, and you want to onboard machines such that they **both** pull from and report to Azure Automation State Configuration:
127
133
128
134
- On each Linux machine to onboard to Azure Automation State Configuration, use `Register.py` to onboard using the PowerShell DSC Local Configuration Manager defaults:
129
135
@@ -133,8 +139,8 @@ can also be onboarded to Azure Automation State Configuration, as long as they h
133
139
134
140
If the PowerShell DSC Local Configuration Manager defaults **do not** match your use case, or you want to onboard machines such that they only report to Azure Automation State Configuration, follow steps 3 - 6. Otherwise, proceed directly to step 6.
135
141
136
-
1. Follow the directions in the following [**Generating DSC metaconfigurations**](#generating-dsc-metaconfigurations) section to generate a folder containing the needed DSC metaconfigurations.
137
-
1. Remotely apply the PowerShell DSC metaconfiguration to the machines you want to onboard:
142
+
3. Follow the directions in the following [**Generating DSC metaconfigurations**](#generating-dsc-metaconfigurations) section to generate a folder containing the needed DSC metaconfigurations.
143
+
4. Remotely apply the PowerShell DSC metaconfiguration to the machines you want to onboard:
@@ -153,7 +159,7 @@ The machine this command is run from must have the latest version of [WMF 5](htt
153
159
154
160
`/opt/microsoft/dsc/Scripts/SetDscLocalConfigurationManager.py -configurationmof <path to metaconfiguration file>`
155
161
156
-
1. Using the Azure portal or cmdlets, check that the machines to onboard now show up as DSC nodes registered in your Azure Automation account.
162
+
2. Using the Azure portal or cmdlets, check that the machines to onboard now show up as DSC nodes registered in your Azure Automation account.
157
163
158
164
## Generating DSC metaconfigurations
159
165
@@ -356,7 +362,7 @@ number of reasons why you may need to re-register that node in the future:
356
362
- To change any [PowerShell DSC Local Configuration Manager values](/powershell/scripting/dsc/managing-nodes/metaConfig4) that were set during initial registration of the node, such as ConfigurationMode. Currently, these DSC agent values can only be changed through re-registration. The one exception is the Node Configuration assigned to the node -- this can be changed in Azure Automation DSC directly.
357
363
358
364
re-registration can be performed in the same way you registered the node initially, using any of the
359
-
onboarding methods described in this document. You do not need to un-register a node from Azure
365
+
onboarding methods described in this document. You do not need to unregister a node from Azure
360
366
Automation State Configuration before re-registering it.
0 commit comments