Search code examples
unixazure-devopsazure-pipelinesazure-pipelines-release-taskazure-devops-hosted-agent

Azure DevOps Pipeline Task to connect to Unix Server and execute commands


I am seeking to set up a Release Pipeline in Azure DevOps Services that will deploy an application to a Unix server, where it then executes some unix commands as part of the deployment.

Would appreciate some guidance on which pipeline Task(s) I can set up to therefore achieve the following objectives:

  1. Connect to the Unix server.
  2. Execute the required Unix commands.

By the way, the Agents are currently installed on Windows hosts but we are looking to extend that to Unix servers in due course, so a solution that fits both setups would be ideal, even though the former is the priority.


Solution

  • In the end, due to concerns raised about the install of private keys on the target server which is part of the SSH Deployment setup, we opted for the use of Deployment Groups which has enabled us to set up a persistent connection to our Linux server.