How do I deploy a VM after importing it in VMWare? - deployment

Once I have made a build of my branch and run the specialise-vm job. How do I actually deploy the VM I have built on my Zdev?

Related

Set up Azure Pipeline for Test Automation Framework

I need assistance in running my test scripts built-in Java platform with selenium webdriver using Eclipse IDE for my repo and used git to push my repo to Azure DevOps. The project is set up in Maven. How do I run my test scripts using pipelines in Azure DevOps?
Not sure get more details from you. So here just share my suggestion on how to run Selenium tests in the release pipeline for Java application.
In my scenario, I deploy my Java application to azure web app service then run it. If you don't want, you can also deploy to local tomcat by using this extension.
1) After the Java application build, copy the project to the artifact of the release during Build pipeline via copy files and publish artifact task.
2) Create release pipeline, then add Azure app service task to deploy my Java application to azure.
3) Add a Maven task to the release pipeline, configure the task to make it point to pom.xml file which located in artifact.
4) Trigger the Selenium tests in pom.xml.
Now you can run browser to view the test.
You can check this lab blog to get more details. Just focus on the design logic of pipeline execution, because the sample in that blog is running with vstest.exe.

how to deploy an application to a particular ubuntu server using azure-devops?

I have my code in the azure repos.I have created the release pipeline which runs the task "npm install" and "npm run start".This will deploy my application.But I want to deploy this application to my ubuntu server 206.189.22.155 from the azure release pipeline.Is there any way I can configure the release pipeline to use my ubuntu server?
The only agent pool available for me is "Azure Pipelines" and for agent specification I used "ubuntu-16.04".Iam totally confused about how this works.
I just want my application to run on http://206.189.22.155:5000. I can run the application directly in the server, but the whole point is to run it from the release pipeline.So how do I connect the pipeline to my ubuntu server?I think my default azure uses some kind of virtual machine for deployment.
You can create a deployment group in Azure DevOps. Deployment groups in Azure pipelines make it easier to organize the servers you want to use to host your app. In Azure pipelines -> Devployment group, select “+New” button and type of target to register. Copy and run the Registration script in your Ubuntu server.
You can refer to https://learn.microsoft.com/en-us/azure/devops/pipelines/apps/cd/deploy-linuxvm-deploygroups?view=azure-devops&tabs=java-script#define-your-ci-build-pipeline and https://learn.microsoft.com/en-us/azure/devops/pipelines/release/deployment-groups/index?view=azure-devops for more detailed information
After you create the deployment group, you can choose it in your release pipeline
And after you configure you deployment group, you can deploy your app to the specific server.

vsts - devops best way to run tests on dynamic vm

my vsts continuous integration flow is:
create dynamic linux vm
copy the latest builds artifact to the new dynamic vm
running some scripts on the new dynamic vm
runing tests on the new dynamic vm
destroy the dynamic vm
im using Azure RG Deployment to create the dynamic vm from arm template,
but im not sure about the best practice how to copy the latest artifact and running script and tests on the new vm
(dynamic vm cant be be in my Service connections list and the ps tasks in vsts not works in linux)
so how to access to my latest artifact and copy it to dynamic vm and run scripts and tests on the dynamic vm using vsts azure devops ?
You can use "Azure File Copy" -task to copy files to virtual machine and afterwards you can use "PowerShell on Target Machines" -task to run PowerShell -scripts (you didn't specify what kind of scripts, but that is how in case of PowerShell -scripts).
What kind of tests are you talking about? You should check the Azure DevOps task gallery for test tasks that come out of the box.
Then you can use the same Azure RG Deployment -task to remove the whole vm/resource group).

Are there seperate VSTS agents for build vs release?

I am getting my first VSTS build and release definitions setup.
Test server destination, on prem
project is using VS 2017 professional
Earlier I setup a private agent for doing the build, following this.
https://learn.microsoft.com/en-us/vsts/build-release/actions/agents/v2-windows?view=vsts
The agent installed fine and I can see it from build & release / agent pools
However, have now switched to using a hosted agent for that so I can remove the need to install visual studio on a test server.
Now I want to deploy the build to my test server, which is on premises. Do I need yet another agent or can I use the one I setup already. In other words are build agents separate from release agents? The agent I setup earlier is running as a service.
The build agent can be used in VSTS build and release, also the deployment group agent is configuring with build agent too.
You don’t need to setup another build/release agent, there are many tasks to deploy app to another server, such as IIS Web App Deployment Using WinRM, PowerShell on Target machine, Windows Machine File Copy.
The build and release agents are the same, but you have to install an on-premise agent to deploy your projects in your network. Is not that you can not use the hosted agent, but you would have to use WinRM and open you network, which may not be a good idea.
After you installed your on-premise agent, you don't have to install VS on the machine to run tests. You can add the following task to your release.

Connect Test Controller on Azure VM to on-premises TFS to run automated Coded UI Test

I have the following scenario:
TFS On-Premises installation, 2013.4 with Release Management and Build Server.
Azure hosted environment where the application gets deployed to with Release Management vNext PowerShell
Single Windows Server 2012R2 machine in Azure that's used as a Client to run webbased Coded UI tests.
I've used the following blog for the setup:
How to run Microsoft Test Manager Suite in vNext Deployment
I have configured a Test Controller and Agent on the Client machine in Azure. I can create a Standard Lab environment from MTM, run a release from RM and see a new test run appear in MTM.
However, the test run keeps waiting in the status 'Waiting for Test Controller'.
What have I done wrong? Any pointers on how to fix my configuration?