Azure Guest Configuration doesn't download updated custom module

chrisgibsonMSDN 1 Reputation point
2021-03-18T14:09:33.173+00:00

I recently created a custom guest configuration policy using the docs and the guest configuration project. I then assign this to a subscription (top level) to be picked up by the VMs in that subscription. When I want to update this module, I follow the docs to update the policy and push this to a storage account, then updated the policy (also following the docs) to reference this new zip (content uri contains a sastoken) and push this to azure.

I can see the policy definition has updated. I then update part of the assignment, normally the non-compliance message, to trigger the clients to update their policies. If I then leave the machines to do their thing for an hour, I can still see the old version of the module in "C:\ProgramData\GuestConfig\Configuration\gcPolSqlIaaSServices\Modules". If I manually update the files in this folder with a later version, it errors. So clearly somewhere on the machine, it is still set to use the older version of the module

The Error:

The PowerShell DSC resource gcPolSqlIaaSServices from module <gmyModuleName,1.4.0> does not exist at the PowerShell module path nor is it registered as a WMI DSC resource.  

How can I trigger this module to be updated?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,204 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
799 questions
{count} votes

2 answers

Sort by: Most helpful
  1. olufemia-MSFT 2,861 Reputation points
    2021-03-25T22:28:32.567+00:00

    Hello @chrisgibsonMSDN ,

    Just so we are on the same page, please confirm these are the steps you followed - snipped below?
    Found this stackoverflow thread that addresses a similar scenario. Perhaps some of the responses may help you resolve this issue.

    81675-policy-lifecycle.png

    Dont hesitate to ping if issue persists. happy to help investigate further.

    cheers.

    0 comments No comments

  2. Michael Greene 21 Reputation points Microsoft Employee
    2021-08-23T16:03:48.85+00:00

    @chrisgibsonMSDN following up to make sure the platform is working for you. Thank you!

    0 comments No comments