We can install Powershell Dsc extenstion via Azure policy to Azure VMs?

Saravana 1 Reputation point
2022-12-23T05:05:01.327+00:00

I'm trying to enable the Powershell Dsc extension via azure policy. need to know this is possible or not?

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
513 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roderick Bant 2,021 Reputation points
    2022-12-23T15:06:09.637+00:00

    Hi @Saravana

    You can enable the DSC extension via Azure Policy as you can add the DSC extension when the right conditions apply when a resource is a VM. e.g. the operating system being windows. You can use the deploy if not exists pattern to deploy the extension.

    Hope this helps in solving your issue

    No comments