Azure-Player / azure.datafactory.devops

Azure DevOps Deployment Tasks for Azure Data Factory objects
MIT License
39 stars 21 forks source link

Support on Linux based agents #142

Closed akg4281 closed 1 year ago

akg4281 commented 1 year ago

As per the documentation, this module supports Linux based agents. When tried to run on Azure hosted "ubuntu-latest" image with powershell version 7.2.11, it throws below error

[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.

Could you let us know if any additional steps to be executed for Linux agents.

Detailed log: -

a) Checking powershell version

2023-05-26T12:59:20.2808227Z pwsh --version 2023-05-26T12:59:20.2924585Z ========================== Starting Command Output =========================== 2023-05-26T12:59:20.2926750Z [command]/usr/bin/bash /home/vsts/work/_temp/27aabfc2-046e-440e-80ee-8fdf3800f427.sh 2023-05-26T12:59:20.6961943Z PowerShell 7.2.11 2023-05-26T12:59:20.7147374Z ##[section]Finishing: Bash

b) Executing the sql player task

2023-05-26T12:59:20.7167010Z ##[section]Starting: PublishADFTask 2023-05-26T12:59:20.7171604Z ============================================================================== 2023-05-26T12:59:20.7171883Z Task : Publish Azure Data Factory 2023-05-26T12:59:20.7172179Z Description : Deploys entire ADF (v2) from JSON files to ADF instance (adftools) 2023-05-26T12:59:20.7172310Z Version : 1.29.1369 2023-05-26T12:59:20.7172426Z Author : Kamil Nowinski (AzurePlayer) 2023-05-26T12:59:20.7172956Z Help : More Information 2023-05-26T12:59:20.7173153Z ============================================================================== 2023-05-26T12:59:20.7321115Z ##[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. 2023-05-26T12:59:20.7329141Z ##[section]Finishing: PublishADFTask

NowinskiK commented 1 year ago

This was explained in #64