@@ -37,6 +37,10 @@ The DSC extension included **privateSettings** where secrets could be passed to
37
37
such as passwords or shared keys. Secrets management hasn't yet been implemented for machine
38
38
configuration.
39
39
40
+ Machine configuration runs in PowerShell version 7.x, while the DSC Extension runs in Windows
41
+ PowerShell 5.1. While most resources are expected to work because of [ implicit remoting] [ 02 ]
42
+ it is a good idea to test existing resources before use.
43
+
40
44
### Considerations for whether to migrate existing machines or only new machines
41
45
42
46
Machine configuration uses DSC version 3 with PowerShell version 7. DSC version 3 can coexist with
@@ -75,27 +79,27 @@ sorted. Keep steps in a configuration together in one package if they must happe
75
79
76
80
### Test content in Azure machine configuration
77
81
78
- Read the page [ How to create custom machine configuration package artifacts] [ 02 ] to evaluate
82
+ Read the page [ How to create custom machine configuration package artifacts] [ 03 ] to evaluate
79
83
whether your content from the DSC extension can be used with machine configuration.
80
84
81
- When you reach the step [ Author a configuration] [ 03 ] , use the MOF file from the DSC extension
85
+ When you reach the step [ Author a configuration] [ 04 ] , use the MOF file from the DSC extension
82
86
package as the basis for creating a new MOF file and custom DSC resources. You must have the custom
83
87
PowerShell modules available in ` $env:PSModulePath ` before you can create a machine configuration
84
88
package.
85
89
86
90
#### Update deployment templates
87
91
88
- If your deployment templates include the DSC extension (see [ examples] [ 04 ] ), there are two changes
92
+ If your deployment templates include the DSC extension (see [ examples] [ 05 ] ), there are two changes
89
93
required.
90
94
91
95
First, replace the DSC extension with the [ extension for the machine configuration feature] [ 01 ] .
92
96
93
- Then, add a [ machine configuration assignment] [ 05 ] that associates the new configuration package
97
+ Then, add a [ machine configuration assignment] [ 06 ] that associates the new configuration package
94
98
(and hash value) with the machine.
95
99
96
100
#### Do I need to add the Reasons property to custom resources?
97
101
98
- Implementing the [ Reasons property] [ 06 ] provides a better experience when viewing the results of
102
+ Implementing the [ Reasons property] [ 07 ] provides a better experience when viewing the results of
99
103
a configuration assignment from the Azure portal. If the ` Get ` method in a module doesn't include
100
104
** Reasons** , generic output is returned with details from the properties returned by the ` Get `
101
105
method. Therefore, it's optional for migration.
@@ -111,23 +115,24 @@ Configuration Manager (LCM). It's recommended to remove the DSC extension and re
111
115
> to stop managing the assigned configuration. The settings remain in place.
112
116
113
117
Use the ` Remove-DscConfigurationDocument ` command as documented in
114
- [ Remove-DscConfigurationDocument] [ 07 ]
118
+ [ Remove-DscConfigurationDocument] [ 08 ]
115
119
116
120
## Next steps
117
121
118
- - [ Develop a custom machine configuration package] [ 08 ] .
119
- - Use the ** GuestConfiguration** module to [ create an Azure Policy definition] [ 09 ] for at-scale
122
+ - [ Develop a custom machine configuration package] [ 09 ] .
123
+ - Use the ** GuestConfiguration** module to [ create an Azure Policy definition] [ 10 ] for at-scale
120
124
management of your environment.
121
- - [ Assign your custom policy definition] [ 10 ] using Azure portal.
125
+ - [ Assign your custom policy definition] [ 11 ] using Azure portal.
122
126
123
127
<!-- Reference link definitions -->
124
128
[ 01 ] : ../overview.md
125
- [ 02 ] : ../how-to/develop-custom-package/2-create-package.md
126
- [ 03 ] : ../how-to/develop-custom-package/2-create-package.md#author-a-configuration
127
- [ 04 ] : /azure/virtual-machines/extensions/dsc-template
128
- [ 05 ] : ../concepts/assignments.md
129
- [ 06 ] : ./psdsc-in-machine-configuration.md#special-requirements-for-get
130
- [ 07 ] : /powershell/module/psdesiredstateconfiguration/remove-dscconfigurationdocument
131
- [ 08 ] : ../how-to/develop-custom-package/overview.md
132
- [ 09 ] : ../how-to/create-policy-definition.md
133
- [ 10 ] : ../../policy/assign-policy-portal.md
129
+ [ 02 ] : /powershell/module/microsoft.powershell.core/about/about_windows_powershell_compatibility
130
+ [ 03 ] : ../how-to/develop-custom-package/2-create-package.md
131
+ [ 04 ] : ../how-to/develop-custom-package/2-create-package.md#author-a-configuration
132
+ [ 05 ] : /azure/virtual-machines/extensions/dsc-template
133
+ [ 06 ] : ../concepts/assignments.md
134
+ [ 07 ] : ./psdsc-in-machine-configuration.md#special-requirements-for-get
135
+ [ 08 ] : /powershell/module/psdesiredstateconfiguration/remove-dscconfigurationdocument
136
+ [ 09 ] : ../how-to/develop-custom-package/overview.md
137
+ [ 10 ] : ../how-to/create-policy-definition.md
138
+ [ 12 ] : ../../policy/assign-policy-portal.md
0 commit comments