Skip to content

Commit 7f979d6

Browse files
authored
Merge pull request #176080 from mgreenegit/patch-24
module dependencies
2 parents 30917b4 + d928de5 commit 7f979d6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

articles/governance/policy/concepts/guest-configuration-custom.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,27 @@ the same machine. There are no special steps required within the
4242
operating system of guest configuration extension. There's no need to configure
4343
[partial configurations](/powershell/scripting/dsc/pull-server/partialConfigs).
4444

45+
## Dependencies are managed per-configuration
46+
47+
When a configuration is
48+
[packaged using the available tools](../how-to/guest-configuration-create.md),
49+
the required dependencies for the configuration are included in a .zip file.
50+
Machines extract the contents into a unique folder for each configuration.
51+
The agent delivered by the guest configuration extension creates a dedicated
52+
PowerShell session for each configuration, using a `$Env:PSModulePath` that
53+
limits automatic module loading to only the path where the package was
54+
extracted.
55+
56+
Multiple benefits result from this change.
57+
58+
- It's possible to use difference module versions for each configuration, on
59+
the same machine.
60+
- When a configuration is no longer deleted on a machine, the entire folder
61+
where it was extracted is safely deleted by the agent without the need to
62+
manage shared dependencies across configurations.
63+
- It's not requird to manage multiple versions of any module in a central
64+
service.
65+
4566
## Configuration mode is set in the package artifact
4667

4768
When creating the configuration package, the mode is set using the following

0 commit comments

Comments
 (0)