'Deploy synapse pipeline using JSON file

I am trying to create a synapse pipeline using CLI task in Azure DevOps release pipeline. Below is the cli inline script I am using

az synapse pipeline create --file @"$(System.DefaultWorkingDirectory)/_MyFirstCloudService-CI (4)/drop/synapsepipeline/CopytoADLS.json" --name testpipeline --workspace-name neonatesynapse

JSON file I have as simple wait task in the pipeline:


{
    "name": "Test Pipeline",
    "properties": {
        "activities": [
            {
                "name": "Wait1",
                "type": "Wait",
                "dependsOn": [],
                "userProperties": [],
                "typeProperties": {
                    "waitTimeInSeconds": 1
                }
            }
        ],
        "annotations": []
    }
}

but it always gives below error:

enter image description here

Any help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source