Skip to content

Commit c0c74bb

Browse files
authored
Update migrating-from-dsc-extension.md
1 parent 2546d85 commit c0c74bb

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

articles/governance/machine-configuration/whats-new/migrating-from-dsc-extension.md

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ The DSC extension included **privateSettings** where secrets could be passed to
3737
such as passwords or shared keys. Secrets management hasn't yet been implemented for machine
3838
configuration.
3939

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+
4044
### Considerations for whether to migrate existing machines or only new machines
4145

4246
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
7579

7680
### Test content in Azure machine configuration
7781

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
7983
whether your content from the DSC extension can be used with machine configuration.
8084

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
8286
package as the basis for creating a new MOF file and custom DSC resources. You must have the custom
8387
PowerShell modules available in `$env:PSModulePath` before you can create a machine configuration
8488
package.
8589

8690
#### Update deployment templates
8791

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
8993
required.
9094

9195
First, replace the DSC extension with the [extension for the machine configuration feature][01].
9296

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
9498
(and hash value) with the machine.
9599

96100
#### Do I need to add the Reasons property to custom resources?
97101

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
99103
a configuration assignment from the Azure portal. If the `Get` method in a module doesn't include
100104
**Reasons**, generic output is returned with details from the properties returned by the `Get`
101105
method. Therefore, it's optional for migration.
@@ -111,23 +115,24 @@ Configuration Manager (LCM). It's recommended to remove the DSC extension and re
111115
> to stop managing the assigned configuration. The settings remain in place.
112116
113117
Use the `Remove-DscConfigurationDocument` command as documented in
114-
[Remove-DscConfigurationDocument][07]
118+
[Remove-DscConfigurationDocument][08]
115119

116120
## Next steps
117121

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
120124
management of your environment.
121-
- [Assign your custom policy definition][10] using Azure portal.
125+
- [Assign your custom policy definition][11] using Azure portal.
122126

123127
<!-- Reference link definitions -->
124128
[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

Comments
 (0)