Skip to content

Commit 481a262

Browse files
authored
module dependencies
1 parent 304a75c commit 481a262

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),
49+
the required dependencies for the configuration are included in a .zip file.
50+
Machines that request the configuration extract the contents into a unique
51+
folder for each configuration. The agent delivered by the guest configuration
52+
extension creates a dedicated PowerShell session for each configuration, using a
53+
`$Env:PSModulePath` that limits automatic module loading to only the path where
54+
the package was extracted.
55+
56+
Multiple benefits result from this change.
57+
58+
- It is 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 is 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)