Apply and Autocorrect does not work for PowerShell DSC

Neeraj Kumar 41 Reputation points
2022-05-03T06:07:45.98+00:00

Is it necessary to create a pull server for State Configuration? I created the PowerShell DSC file, which was compiled to a MOF File and for the first time when I attach a node, it works fine, but to test the DSC if I delete a file from the node (my virtual machine), it shows as non-compliant n Azure Portal, but does not autocorrect it. Need urgent help.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,113 questions
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,376 Reputation points
    2022-05-09T07:57:56.177+00:00

    Hi @Neeraj Kumar ,

    As mentioned in this official Azure document, it is not necessary to create a pull server for Azure Automation State Configuration as it provides a built-in pull server.

    On the other hand, it looks to be similar to this question. Please review it for more information and see if it helps. If this doesn't help then please share more details like OS of your virtual machine, your config file, few screenshots of your setup if possible, etc. so I can try to reproduce with the same set of things in my lab and get back to you with additional insights.

    0 comments No comments