Azure-Player / azure.datafactory.tools

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

pipelineReturnValue is not getting set as expected after deployment with PowerShell deployment #373

Closed bharanigit closed 7 months ago

bharanigit commented 1 year ago

Describe the bug We are using pipelineReturnValue to get value from Databricks activity and assigning to a variable. pipelineReturnValue is not getting set as expected after deployment with PowerShell deployment

To Reproduce

image
"userProperties": [],
"typeProperties": {
    "variableName": "pipelineReturnValue",
    "value": [
        {
            "key": "templatecheck",
            "value": {
                "type": "Expression",
                "content": "@activity('Template Validation').output.runOutput"
            }
        }
    ],

Expected behaviour Pipeline return value should get set correctly after deployment

Screenshots

image

Screenshot showing json (after deployment) not reflecting as in pipeline json:

image

Version of PowerShell module of:

Provide all files to reproduce the issue

NowinskiK commented 1 year ago

Provide the files that allow to reproduce the issue.

bharanigit commented 1 year ago

image I have attached our pipeline json, if its too lengthy.. to replicate pls create one pipeline with pipeline return variable set as shown in above image and try to deploy using the pipeline using azure-player powershell module. pipeline.txt

bharanigit commented 1 year ago

Hi, I have uploaded pipline.txt in previous comment to reproduce the issue. pls let me know if it is sufficient.

NowinskiK commented 1 year ago

Not sufficient, unfortunately. I don't have spare time to build script to reproduce the issue, so please do so and share here.

Prefix42 commented 6 months ago

Sorry to comment on a closed issue @bharanigit the issue you describe is with the function Set-AzDataFactoryV2Pipeline from the official Az.DataFactory module which this module uses to do the pipeline deploy.

I opened a bug on this back when pipeline return values were still in preview https://github.com/Azure/azure-powershell/issues/21683