Hi @Phuc Mai ,
Azure DevOps is currently not supported in this Microsoft Q&A platform. You may ask Azure DevOps related questions in this developer community.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi everyone,
I'm learning to write an Azure DevOps pipeline. Just a simple task to copy files from an Azure repo to a remote Windows machine.
trigger:
- main
stages:
- stage: Deploying
jobs:
- job: Deploying
displayName: Copying files to test machine
steps:
- task: WindowsMachineFileCopy@2
inputs:
SourcePath: '<one of the current project's repos>'
MachineNames: '192.168.***.***'
AdminUserName: '<admin>'
AdminPassword: '$(Password)'
TargetPath: 'c:\Folder\'
The pipeline failed with [error]The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.
Copying files through SSH would be a solution as well, but I would love to avoid having to setup all the keys and stuff, especially if later I need to work on multiple target machines.
Would be grateful for any suggestions from you. Thanks.