Azure / ArcEnabledServersGroupPolicy

Guidance and sample code to perform at-scale onboarding of servers to Arc via Group Policy
MIT License
9 stars 15 forks source link

fixed logic bug for skipping install on AzureVM #9

Open helgiarnarson opened 1 year ago

helgiarnarson commented 1 year ago

In cases where the VM is an Azure VM, $ArcOnboardingData.AzureVM would be set to true, but the check responsible for exiting the script is looking for a false value. This causes the exit block to be skipped and the onboarding process continues on the Azure VM, when it should be exiting instead.

exproject commented 1 year ago

I just came across this same issue, was going to file it til I saw this PR. I had filtered the GPO, though on review of the script I saw that it shouldn't have allowed this to onboard anyway. I've made the same adjustment to my deployment.