Azure / ArcEnabledServersGroupPolicy

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

fails to run command taken from Arc onbarding script #45

Closed nbsdpease closed 2 months ago

nbsdpease commented 2 months ago

When trying to onboard some on prem machines I am running into an issue with the DeployGPO powershell script. It fails at the tags portion because we don't want to onboard these as SQL instances.

C:\installs\DeployGPO.ps1 : Cannot process argument transformation on parameter 'Tags'. Cannot convert the "ArcSQLServerExtensionDeployment=Disabled" value of type "System.String" to type "System.Collections.Hashtable". At C:\installs\WindowsOnboardingScriptGPOadd.ps1:4 char:378

hhcrayon commented 2 months ago

I got the same error and solved it with the following change:

-Tags @{ArcSQLServerExtensionDeployment="Disabled"}

nbsdpease commented 2 months ago

Thank you for the update, that worked for me as well.