@@ -24,7 +24,7 @@ Support for applying configurations through machine configuration is introduced
24
24
25
25
Operating systems where the module can be installed:
26
26
27
- - Ubuntu 18 or higher
27
+ - Ubuntu 20
28
28
- Windows
29
29
30
30
The module can be installed on a machine running PowerShell 7.x. Install the versions of PowerShell
@@ -33,15 +33,47 @@ listed in the following table for your operating system.
33
33
| OS | Minimum Required PowerShell Version | Installation |
34
34
| ------------| :-----------------------------------:| ----------------------------------------|
35
35
| Windows | ` 7.1.3 ` | [ Installing PowerShell on Windows] [ 01 ] |
36
- | Ubuntu 18+ | ` 7.2.4 ` | [ Installing PowerShell on Ubuntu] [ 02 ] |
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
+ ```
37
69
38
70
The ** GuestConfiguration** module requires the following software:
39
71
40
72
- Azure PowerShell 5.9.0 or higher. The required Az PowerShell modules are installed automatically
41
73
with the ** GuestConfiguration** module, or you can follow [ these instructions] [ 03 ] .
42
74
43
75
44
- ### Install the module from the PowerShell Gallery
76
+ ### Install the GuestConfiguration module from the PowerShell Gallery
45
77
46
78
To install the ** GuestConfiguration** module on either Windows or Linux, run the following command
47
79
in PowerShell 7.
@@ -55,7 +87,32 @@ Validate that the module has been imported:
55
87
56
88
``` powershell
57
89
# Get a list of commands for the imported GuestConfiguration module
58
- Get-Command -Module 'GuestConfiguration'
90
+ Get-Command -Module GuestConfiguration
91
+ ```
92
+
93
+ ### Install the PSDesiredStateConfiguration module from the PowerShell Gallery
94
+
95
+ On Windows, to install the ** PSDesiredStateConfiguration** module, run the following command in PowerShell 7.
96
+
97
+ ``` powershell
98
+ # Install PSDesiredStateConfiguration version 2.0.7 (the stable release)
99
+ Install-Module -Name PSDesiredStateConfiguration -RequiredVersion 2.0.7
100
+ Import-Module -Name PSDesiredStateConfiguration
101
+ ```
102
+
103
+ On Linux, to install the ** PSDesiredStateConfiguration** module, run the following command in PowerShell 7.
104
+
105
+ ``` powershell
106
+ # Install PSDesiredStateConfiguration prerelease version 3.0.0
107
+ Install-Module -Name PSDesiredStateConfiguration -RequiredVersion 3.0.0-beta1 -AllowPrerelease
108
+ Import-Module -Name PSDesiredStateConfiguration
109
+ ```
110
+
111
+ Validate that the module has been imported:
112
+
113
+ ``` powershell
114
+ # Get a list of commands for the imported PSDesiredStateConfiguration module
115
+ Get-Command -Module PSDesiredStateConfiguration
59
116
```
60
117
61
118
## Next step
0 commit comments