Connecting a Azure Devops build pipeline to a virtual snet in Azure

Hi all, I was wondering if there is a way to connect a Azure Devops build pipeline to a virtual snet in Azure.

My plan is to run some tests against a stable machine before building the artifact, so I need to be able to connect to a sub net from a Build Pipeline.

You would need a self hosted agent, in Azure on the same vnet and then use this from the pipeline to run your tests.

If the stable machine has internet access maybe install the agent directly on it and add it to a pool or create a dedicated one. Unless there are reasons to keep it remote from the test server. That way there is no need for an additional VM to run the agent.