0
votes

My project has UI Automated Tests which are to be run every week. till now we are using a utility to trigger the tests in different sets of OS configurations. Now, we are planning to use Azure pipelines to automate the process. I have configured a build pipeline which will pull the code from multiple repos to VMs using self hosted agents and build the test projects and run the tests. But for initial part I have manually created a vm in azure dev test lab and configured the agent manually and ran the pipeline. Now I need to find an approach to create VMs(7 versions of windows OS) in dev test labs automatically using pipelines and once the VMs are created, install the custom artifacts and configure agents using unattended config method. and finally run the tests. can anyone suggest the best way to achieve this goal? thanks in advance :)

1
Have you checked my reply? Is it helpful?Cece Dong - MSFT
Hey, I just checked your reply. thank you for the detailed information. I got to know that there is a task in pipeline "Azure Dev Test Lab Create VM", but did not started to use it as there is a permissions issue internally. One question here is, Is it possible to create VMs using build pipeline?? with out using a release pipeline?sai kartheek challa
You may try to add Azure Resource Group Deployment task in your build pipeline to see how's the result.Cece Dong - MSFT

1 Answers

0
votes

You could build an Azure virtual machine using an Azure RM template by following the link below:

https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/cd/azure/build-azure-vm-template?view=azure-devops

enter image description here

And then create a release pipeline to provision your virtual machine:

https://docs.microsoft.com/en-us/azure/devops/pipelines/apps/cd/azure/deploy-provision-azure-vm?view=azure-devops

enter image description here enter image description here

Notice: You need to choose v2 of Azure Resource Group Deployment task, as v3 has removed all the VM related actions.

enter image description here