I have been working on a requirement to run the automated tests (Test Plans/ Test Suites) in a test agent -
Requirements -
Leverage test slicing for Visual Studio automated tests with hosted azure containers
Run them on hosted cloud agents (Serverless/ACI or any) - since our tests access on-prem servers to execute tests, Express route has been configured and successful network has been established.
Options Tried
- Tried with Setting up test agent on window container on-prem and locally -it worked fine, when I deploy the windows container test agent to ACI onto an existing VNET - I get the error -
Az Container create --- {{ to Existing Vnet }}
- Tried the same above approach on Linux container(locally) - Unfortunately "Visual Studio Test Task is not supported" to run our automated tests. Hence felt no point of deploying Linux container agent image to ACI
Does Azuredevops support running automated tests from test plans on Linux/Ubuntu agent
- Tried with function app - with ACR container image (which has test agent running) unfortunately its not supported for Windows containers to deploy on existing VNET
Every step that I took led me nowhere. Since we are planning to migrate all of our infra to Azure, our only solution is to run the tests on Cloud!
Is there a better way to run tests in hosted cloud to reduce time/cost?
Note - The only option I see is to to have a VM in existing Hybrid VNET or AKS in Hybrid VNet and run the test process in it.
-
Regarding Azure DevOps Agents on Azure Container Instances (ACI), this documentation provides details explanation: devblogs.microsoft.com/devops/…. But Windows Container doesn't support to deploy on VNET, it seems deploy Azure DevOps Agents on a VM is a good choice.Cece Dong - MSFT– Cece Dong - MSFT2021年04月12日 10:13:32 +00:00Commented Apr 12, 2021 at 10:13
-
Is the following reply helpful?Cece Dong - MSFT– Cece Dong - MSFT2021年04月27日 09:13:37 +00:00Commented Apr 27, 2021 at 9:13
1 Answer 1
Azure ACI does not support Windows Container in VNet, here you can see it:
Currently, only Linux containers are supported in a container group deployed to a virtual network.
So ACI is not available for you when you want to deploy the image to the VNet. And the options you find are the only two solutions while the containers need to access the on-prem servers. Compare with the single VM, the AKS cluster will cost more, so I recommend you use the single VM.
6 Comments
Explore related questions
See similar questions with these tags.