Arc Server agent installation with group policy

Stefano Colombo 221 Reputation points

I'm trying to deploy the ARC Server agent via group policy but it fails.
We have created the onboarding.ps1 script on the azure portal and used it interactively to onboard some servers and it works.
The we tried to use it in a computer's Start group policy but the execution fails with the following error, which is too generic.

Startup script failed.
GPO File System Path : \xxx.loc\SysVol\cdmlab.loc\Policies{BE0412FF-7793-4193-B6E1-68BD450DC95B}\Machine
Script Name: OnboardingScript.ps1

anyone can give me an hint on how to solve the issue ?

A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,863 questions
Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
340 questions
{count} votes