question

PhucMai-8671 avatar image
0 Votes"
PhucMai-8671 asked PhucMai-8671 commented

Azure pipeline copy files from Azure repo to remote WIndows machine

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.



not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

tbgangav-MSFT avatar image
1 Vote"
tbgangav-MSFT answered PhucMai-8671 commented

Hi @PhucMai-8671,

Azure DevOps is currently not supported in this Microsoft Q&A platform. You may ask Azure DevOps related questions in this developer community.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @tbgangav-MSFT , thanks for the redirection!

0 Votes 0 ·