Title: Deploy exe from Azure Devops to on-prem server
Tags: azure-devops;azure-pipelines
Question: Is it possible to copy an executable file from an Azure Devops pipeline to an on-premise server?
There's some confusion around the term &quot;on-premise&quot; server. I have gotten the impression that in the Azure Devops context that this means an Azure VM.
What I want to do is deploy/publish/upload/copy (more interchangeable terms) an executable, which is a build artifact, from a pipeline to a server that is on our company's network.
If anyone knows how to do this, please post some YAML to help me.
Comment: *I have gotten the impression that in the Azure Devops context that this means an Azure VM.* You have gotten the wrong impression. You need to install the pipeline agent on a machine with a line-of-sight to your internal network. This can be any machine as long as it can talk to `dev.azure.com` over port 443. Or you can take advantage of the deployment group feature (if using classic pipelines) or the environments feature (if using YAML pipelines) to run pipeline tasks directly on an on-prem machine. Refer to the documentation for more details.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:11/23/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<azure-devops><azure-pipelines>', 'Title': 'Deploy exe from Azure Devops to on-prem server', 'ViewCount': 161, 'id': 70074348, 'user_AboutMe': '', 'user_AccountId': 2354582.0, 'user_DisplayName': 'Andrew Terwiel', 'user_Reputation': 721.0, 'user_Views': 30.0, 'user_id': 2062698.0}}