Open helgiarnarson opened 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.
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.