Skip to content

Commit 3e78fec

Browse files
authored
Merge pull request #98502 from MGoedtel/Task4871347
updated doc about agent rights to TMP folder
2 parents b417138 + de8ce9d commit 3e78fec

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

articles/automation/automation-dsc-onboarding.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
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
44
services: automation
55
ms.service: automation
66
ms.subservice: dsc
77
author: mgoedtel
88
ms.author: magoedte
99
ms.topic: conceptual
10-
ms.date: 08/08/2018
10+
ms.date: 12/10/2019
1111
manager: carmonm
1212
---
1313
# Onboarding machines for management by Azure Automation State Configuration
1414

1515
## Why manage machines with Azure Automation State Configuration?
1616

1717
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.
1919
It enables scalability across thousands of machines quickly and easily from a central, secure location.
2020
You can easily onboard machines,
2121
assign them declarative configurations,
@@ -41,10 +41,16 @@ State Configuration can also be used as a report-only endpoint.
4141
This allows you to set (push) configurations through DSC and view reporting details in Azure Automation.
4242

4343
> [!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/).
4545
4646
The following sections outline how you can onboard each type of machine to Azure Automation State Configuration.
4747

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+
4854
## Azure virtual machines
4955

5056
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
7581
Azure Resource Manager templates. See [Server managed by Desired State Configuration service](https://azure.microsoft.com/resources/templates/101-automation-configuration/)
7682
for an example template that onboards an existing VM to Azure Automation State Configuration.
7783
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/).
7985

8086
### PowerShell
8187

@@ -114,7 +120,7 @@ can also be onboarded to Azure Automation State Configuration, as long as they h
114120
```
115121

116122
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.
118124

119125
## Physical/virtual Linux machines on-premises, or in a cloud other than Azure
120126

@@ -123,7 +129,7 @@ can also be onboarded to Azure Automation State Configuration, as long as they h
123129
[outbound access to Azure](automation-dsc-overview.md#network-planning):
124130

125131
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:
127133

128134
- On each Linux machine to onboard to Azure Automation State Configuration, use `Register.py` to onboard using the PowerShell DSC Local Configuration Manager defaults:
129135

@@ -133,8 +139,8 @@ can also be onboarded to Azure Automation State Configuration, as long as they h
133139

134140
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.
135141

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:
138144

139145
```powershell
140146
$SecurePass = ConvertTo-SecureString -String '<root password>' -AsPlainText -Force
@@ -153,7 +159,7 @@ The machine this command is run from must have the latest version of [WMF 5](htt
153159
154160
`/opt/microsoft/dsc/Scripts/SetDscLocalConfigurationManager.py -configurationmof <path to metaconfiguration file>`
155161
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.
157163
158164
## Generating DSC metaconfigurations
159165
@@ -356,7 +362,7 @@ number of reasons why you may need to re-register that node in the future:
356362
- 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.
357363
358364
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
360366
Automation State Configuration before re-registering it.
361367
362368
## Troubleshooting Azure virtual machine onboarding

0 commit comments

Comments
 (0)