Azure-Player / azure.datafactory.devops

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

Publish-AdfV2FromJson trimming white spaces in sql queries part of Source Data #120

Closed nikhil-rajan-neu closed 1 year ago

nikhil-rajan-neu commented 1 year ago

Using the PowerShell comands on an ubuntu machine to deploy ADF directly from JSON

`- task: PowerShell@2 enabled: true inputs: targetType: 'inline' script: | Install-Module Az.DataFactory -MinimumVersion "1.10.0" -Force Install-Module -Name "azure.datafactory.tools" -Force Import-Module -Name "azure.datafactory.tools" -Force

After the deployment our Pipelines stopped working

Looking at the source data , we see the whitespaces have been trimmed

image

We moved to use the PowerShell commands instead of using the ADO tasks to support linux build agents

danielmadison84 commented 1 year ago

We experienced this with az_9.2.0 module in Powershell as of January 12 2023. My team found a temporary resolution, switching ubuntu-latest to ubuntu-18.04 in your YML file lets you use az_9.0.1 previous version that does not have this issue.

NowinskiK commented 1 year ago

https://github.com/Azure-Player/azure.datafactory.tools/issues/265