Azure-Player / azure.datafactory.tools

Tools for deploying Data Factory (v2) in Microsoft Azure
https://azureplayer.net/adftools
MIT License
209 stars 69 forks source link

whitespace is removed during deployment #274

Closed regisbaccaro closed 1 year ago

regisbaccaro commented 1 year ago

I am deploying ADF using DevOps pipeline, lately I have observed that when I look at the result of the deployment all whitespace is removed from ADF.

Deployment succeeds but all pipelines are not in runnable state.

Any suggestion about how that was introduced. My yaml code is very straightforward and the source repo has all the right whitespaces.

Thanks in advance Régis Baccaro

MarliesVeenes commented 1 year ago

I encounter the same issue since yesterday. For me the workaround is to switch from the default method AzResource to the method AzDataFactory on the function Publish-AdfV2FromJson.

It is explained here that its an unstable method, but for the moment gives better results than AzRecource.

NowinskiK commented 1 year ago

Hello @regisbaccaro, my friend! Thanks for raising the ticket here.

This issue has nothing to do with #adftools , the problem was created by Microsoft some time ago. Please check this thread: Tool removing all spaces from code #265

Let me know if this resolved the problem. It should.