How to Disable the Network Discovery Banner on Azure VMSS Windows Agents for UI Tests?

Matthieu 6 Reputation points
2025-04-08T15:33:50.78+00:00

User's image

I am using VMSS on Azure to generate Windows agents.

My test team runs automated tests on these agents using Maven/Selenium. The issue is that, by default, Windows opens the network discovery banner when a session starts. This causes the automated tests, which focus on the UI, to fail.

When using Microsoft-hosted cloud agents with the same YAML configuration, this problem does not occur.

How can I ensure that the agents are instantiated without this banner appearing during UI tests?

I have tried modifying the registry and applying GPO settings, but nothing works.

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
443 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.