Azure Guest Configuration: 'PsDesiredStateConfiguration' module is not supported by GuestConfiguration.

Reinout Pennings 6 Reputation points
2021-10-22T13:40:31.16+00:00

Hi,

I'm trying to move my existing DSC deployment from Automation to Azure Guest configuration. I've followed al the instructions as published on learn.microsoft.com .

But why does it refer to PSDSCResources in Pshell while the documentation tells PsDesiredStateConfiguration is supported as of version 2.0.5...Am i missing something?

Configuration: C:\Repo\xxxxxxxxx\scripts\xxxxxxxxxx\localhost.mof
Exception: C:\Program Files\WindowsPowerShell\Modules\GuestConfiguration\3.5.2\Modules\GuestConfigurationPolicy\GuestConfigurationPolicy.psm1:2314
Line |
2314 | … throw "'PsDesiredStateConfiguration' module is not suppor …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 'PsDesiredStateConfiguration' module is not supported by GuestConfiguration. Please use
| 'PSDSCResources' module instead of 'PsDesiredStateConfiguration' module in DSC configuration.

Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,199 questions
0 comments No comments
{count} vote