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/quickstarts/dsc-configuration.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: This article helps you get started configuring an Azure VM with Des
4
4
services: automation
5
5
ms.subservice: desired-state-config
6
6
keywords: dsc, configuration, automation
7
-
ms.date: 04/12/2023
7
+
ms.date: 08/08/2024
8
8
ms.topic: quickstart
9
9
ms.custom: mvc, mode-other
10
10
ms.service: azure-automation
@@ -13,19 +13,19 @@ ms.service: azure-automation
13
13
# Configure a VM with Desired State Configuration
14
14
15
15
> [!CAUTION]
16
-
> This article references CentOS, a Linux distribution that is End Of Life (EOL) status. Please consider your use and planning accordingly. For more information, see the [CentOS End Of Life guidance](~/articles/virtual-machines/workloads/centos/centos-end-of-life.md).
16
+
> Azure Automation DSC for Linux has retired. For more information, see the [announcement](https://azure.microsoft.com/updates/migrate-from-linux-dsc-extension-to-the-guest-configuration-feature-of-azure-policy-by-may-1-2025/#:~:text=The%20DSC%20extension%20for%20Linux%20machines%20in%20Azure%2C,no%20longer%20be%20supported%20after%2030%20September%202023.).
17
17
18
18
> [!NOTE]
19
19
> Before you enable Azure Automation DSC, we would like you to know that a newer version of DSC is now generally available, managed by a feature of Azure Policy named [Azure Machine Configuration](../../governance/machine-configuration/overview.md). The Azure Machine Configuration service combines features of DSC Extension, Azure Automation State Configuration, and the most commonly requested features from customer feedback. Azure Machine Configuration also includes hybrid machine support through [Arc-enabled servers](../../azure-arc/servers/overview.md).
20
20
21
-
By enabling Azure Automation State Configuration, you can manage and monitor the configurations of your Windows and Linux servers using Desired State Configuration (DSC). Configurations that drift from a desired configuration can be identified or auto-corrected. This quickstart steps through enabling an Azure Linux VM and deploying a LAMP stack using Azure Automation State Configuration.
21
+
By enabling Azure Automation State Configuration, you can manage and monitor the configurations of your Windows servers using Desired State Configuration (DSC). Configurations that drift from a desired configuration can be identified or auto-corrected. This quickstart steps through enabling an Azure VM and deploying a LAMP stack using Azure Automation State Configuration.
22
22
23
23
## Prerequisites
24
24
25
25
To complete this quickstart, you need:
26
26
27
27
* An Azure subscription. If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/).
28
-
* An Azure Resource Manager virtual machine running Red Hat Enterprise Linux, or Oracle Linux. For instructions on creating a VM, see [Create your first Linux virtual machine in the Azure portal](../../virtual-machines/linux/quick-create-portal.md)
28
+
* An Azure Resource Manager virtual machine.
29
29
30
30
## Sign in to Azure
31
31
Sign in to the [Azure portal](https://portal.azure.com).
@@ -43,8 +43,6 @@ There are many different methods to enable a machine for Automation State Config
43
43
5. Select the DSC settings appropriate for the virtual machine. If you have already prepared a configuration, you can specify it as `Node Configuration Name`. You can set the [configuration mode](/powershell/dsc/managing-nodes/metaConfig) to control the configuration behavior for the machine.
44
44
6. Click **OK**. While the DSC extension is deployed to the virtual machine, the status reported is `Connecting`.
45
45
46
-

47
-
48
46
## Import modules
49
47
50
48
Modules contain DSC resources and many can be found in the [PowerShell Gallery](https://www.powershellgallery.com). Any resources that are used in your configurations must be imported to the Automation account before compiling. For this quickstart, the module named **nx** is required.
@@ -54,7 +52,6 @@ Modules contain DSC resources and many can be found in the [PowerShell Gallery](
54
52
1. Click on the module to import.
55
53
1. Click **Import**.
56
54
57
-

58
55
59
56
## Import the configuration
60
57
@@ -116,11 +113,10 @@ You can assign a compiled node configuration to a DSC node. Assignment applies t
116
113
1. In the left pane of the Automation account, select **State Configuration (DSC)** and then click the **Nodes** tab.
117
114
1. Select the node to which to assign a configuration.
118
115
1. Click **Assign Node Configuration**
119
-
1. Select the node configuration `LAMPServer.localhost` and click **OK**. State Configuration now assigns the compiled configuration to the node, and the node status changes to `Pending`. On the next periodic check, the node retrieves the configuration, applies it, and reports status. It can take up to 30 minutes for the node to retrieve the configuration, depending on the node settings.
120
-
1. To force an immediate check, you can run the following command locally on the Linux virtual machine:
1. Select the node configuration `LAMPServer.localhost` and click **OK**. State Configuration now assigns the compiled configuration to the node, and the node status changes to `Pending`. On the next periodic check, the node retrieves the configuration, applies it, and reports status.
117
+
118
+
It can take up to 30 minutes for the node to retrieve the configuration, depending on the node settings.
122
119
123
-

124
120
125
121
## View node status
126
122
@@ -130,7 +126,7 @@ You can view the status of all State Configuration-managed nodes in your Automat
130
126
131
127
## Next steps
132
128
133
-
In this quickstart, you enabled an Azure Linux VM for State Configuration, created a configuration for a LAMP stack, and deployed the configuration to the VM. To learn how you can use Azure Automation State Configuration to enable continuous deployment, continue to the article:
129
+
In this quickstart, you enabled an Azure VM for State Configuration, created a configuration for a LAMP stack, and deployed the configuration to the VM. To learn how you can use Azure Automation State Configuration to enable continuous deployment, continue to the article:
134
130
135
131
> [!div class="nextstepaction"]
136
132
> [Set up continuous deployment with Chocolatey](../automation-dsc-cd-chocolatey.md)
0 commit comments