Skip to content

Commit ef9b8d7

Browse files
Merge pull request #303152 from jasongroce/jasongroce-patch-1
Submitting updates to reflect product changes
2 parents a068291 + 9fccb9d commit ef9b8d7

File tree

2 files changed

+11
-40
lines changed

2 files changed

+11
-40
lines changed

articles/governance/machine-configuration/how-to/develop-custom-package/1-set-up-authoring-environment.md

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: How to install the machine configuration authoring module
33
description: Learn how to install the PowerShell module for creating and testing machine configuration policy definitions and assignments.
4-
ms.date: 02/01/2024
4+
ms.date: 07/22/2025
55
ms.topic: how-to
66
---
77
# How to set up a machine configuration authoring environment
@@ -24,7 +24,7 @@ Support for applying configurations through machine configuration is introduced
2424

2525
Operating systems where the module can be installed:
2626

27-
- Ubuntu 20
27+
- Ubuntu 20+
2828
- Windows
2929

3030
The module can be installed on a machine running PowerShell 7.x. Install the versions of PowerShell
@@ -33,46 +33,13 @@ listed in the following table for your operating system.
3333
| OS | Minimum Required PowerShell Version | Installation |
3434
|------------|:-----------------------------------:|----------------------------------------|
3535
| Windows | `7.1.3` | [Installing PowerShell on Windows][01] |
36-
| Ubuntu 20 | `7.2.4` | [Installing PowerShell on Ubuntu][02] |
37-
38-
For Linux, the following shell script downloads and installs PowerShell 7.2.4.
39-
40-
```sh
41-
###################################
42-
# Prerequisites
43-
44-
# Update the list of packages
45-
sudo apt-get update
46-
47-
# Install pre-requisite packages.
48-
sudo apt-get install -y wget
49-
50-
# Download the PowerShell package file
51-
wget https://github.com/PowerShell/PowerShell/releases/download/v7.2.4/powershell_7.2.4-1.deb_amd64.deb
52-
53-
###################################
54-
# Install the PowerShell package
55-
sudo dpkg -i powershell_7.2.4-1.deb_amd64.deb
56-
57-
# Resolve missing dependencies and finish the install (if necessary)
58-
sudo apt-get install -f
59-
60-
# Delete the downloaded package file
61-
rm powershell_7.2.4-1.deb_amd64.deb
62-
63-
# Switch the user to root before launching PowerShell
64-
sudo su
65-
66-
# Start PowerShell
67-
pwsh
68-
```
36+
| Ubuntu 20+ | `7.2.4` | [Installing PowerShell on Ubuntu][02] |
6937

7038
The **GuestConfiguration** module requires the following software:
7139

7240
- Azure PowerShell 5.9.0 or higher. The required Az PowerShell modules are installed automatically
7341
with the **GuestConfiguration** module, or you can follow [these instructions][03].
7442

75-
7643
### Install the GuestConfiguration module from the PowerShell Gallery
7744

7845
To install the **GuestConfiguration** module on either Windows or Linux, run the following command

articles/governance/machine-configuration/how-to/develop-custom-package/2-create-package.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: How to create custom machine configuration package artifacts
33
description: Learn how to create a machine configuration package file.
4-
ms.date: 02/01/2024
4+
ms.date: 07/22/2025
55
ms.topic: how-to
66
ms.custom:
77
- build-2025
@@ -52,7 +52,9 @@ variable sets to `'This was set by machine configuration'`.
5252

5353
```powershell
5454
Install-Module -Name PSDscResources
55-
Import-Module -Name PSDscResources
55+
```
56+
57+
```powershell
5658
Configuration MyConfig {
5759
Import-DscResource -Name 'Environment' -ModuleName 'PSDscResources'
5860
Environment MachineConfigurationExample {
@@ -70,7 +72,9 @@ This example configuration is for Linux machines. It creates a file at the path
7072

7173
```powershell
7274
Install-Module -Name nxtools
73-
Import-Module -Name nxtools
75+
```
76+
77+
```powershell
7478
Configuration MyConfig {
7579
Import-DscResource -ModuleName 'nxtools'
7680
nxFile MyFile {
@@ -88,7 +92,7 @@ With that definition saved in the `MyConfig.ps1` script file, you can run the sc
8892
configuration.
8993

9094
```powershell
91-
& .\MyConfig.ps1
95+
. .\MyConfig.ps1
9296
```
9397

9498
```output

0 commit comments

Comments
 (0)