To deploy the Guest Configuration extension with its prerequisites:
For selected machines, follow the security recommendation Guest Configuration extension should be installed on your machines from the Implement security best practices security control.
At scale, assign the policy initiative Deploy prerequisites to enable Guest Configuration policies on virtual machines.