Azure default devops agent how to connect to azure VM win os and upload exe and start stop services

0 votes

I've currently got a VM (win os) running in Azure. The vm has a service running. I would like the devops pipelines to:

  • access the VM
  • stop the service
  • upload the new built service (built artifact)
  • start the updated service

rdp and ssh are disabled on the vm

The main problem is that I've no idea how to access/be in the VM from devops pipelines.

Was wondering if there is specific powershell package I can use or any simple solution?

There is another similar question that takes in consideration creating custom agents in Azure and connected to devops How to access Azure VM from AzureDevOps Pipelines? But I would like to use the default devops agent available

Mar 16, 2022 in DevOps & Agile by Edureka
• 13,670 points

1 answer to this question.

0 votes
If you use Azure Pipelines for your pipelines, you can use a Microsoft-hosted agent to run your jobs. Maintenance and upgrades are handled automatically with Microsoft-hosted agents. You get a new virtual machine for each job in the pipeline each time you run it. After one job, the virtual machine is deleted (which means any change that a job makes to the virtual machine file system, such as checking out code, will be unavailable to the next job). Jobs can be run directly on a VM or in a container using Microsoft-hosted agents.

Azure Pipelines comes with a pre-defined agent pool called Azure Pipelines, which is made up of Microsoft-hosted agents.

Agents that are self-hosted
A self-hosted agent is a job-running agent that you set up and administer yourself. In Azure Pipelines and Azure DevOps Server (previously Team Foundation Server), you can employ self-hosted agents (TFS). Self-hosted agents provide you more control over the software you require for your builds and deployments by allowing you to install it yourself. Furthermore, machine-level caches and configuration are persistent from run to run, which can improve performance.
answered Mar 24, 2022 by gaurav
• 23,260 points

Related Questions In DevOps & Agile

–1 vote
1 answer

How to Install and configure puppet agent on the slave node (Job 1)

Hey @Kavitha, where do u want to ...READ MORE

answered Feb 25, 2020 in DevOps & Agile by Sirajul
• 59,230 points
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

how to use azure devOps?

What is azure DevOps and how do ...READ MORE

Dec 20, 2022 in DevOps & Agile by Edureka
• 13,620 points
+5 votes
2 answers

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl within the ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by Atul
• 10,240 points
0 votes
1 answer
0 votes
1 answer
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP