0
votes

I'm trying to use the Pipelines Agent artifact (windows-vsts-build-agent) to setup a new agent`:

  • using Azure's Windows 10 image
  • configured interactively (with autologon = true)
  • with the goal to run UI Tests on it (through Azure Pipelines).

While the agent configuration succeeds (an entry is created in Agent Pool on Azure Pipelines), it shows as offline.

After logging in to this VM manually, I can see this screen:

Choose Privacy Settings

After confirming this screen and logging into the VM manually, the agent comes up as expected.

Any ideas/hints what we can do, so the agent comes 'online' without the need for manual intervention?

1
Are you using a custom image? Have you looked at tenforums.com/tutorials/…Matt
Yes, I have created a custom image with this setting disabled. now this issue is solved and I am able to login without any issue. but, I am trying to find any way using custom script extention or any script which will disable this setting during vm creation.sai kartheek challa

1 Answers

0
votes

You can try below steps to disable the Privacy settings screen on VM startup.

1, Login Azure VM as adminstrator.

2, Press win+r and run gpedit.msc to Open the Local Group Policy Editor.

3, Navigate to Computer Configuration\Administrative Templates\Windows Components\OOBE In the left pane of Local Group Policy Editor

4, Double click on the Don't launch privacy settings experience on user logon policy to edit it

5, Select Enabled to disable Privacy Settings Experience at Sign-in , click on OK,

If Local Group Policy Editor is unavailable in you Azure Vm. You can try edit the registry to disable it.

1, Press win+r and run regedit

2, navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OOBE

3, Change DisablePrivacyExperience DWORD to value 1

See this blog for more information.