question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure Synapse Pipeline Deployment using ARM Template through Azure CLI

See original GitHub issue

Describe the bug

I have a pipeline published in Azure Synapse studio. I tried to export as template and deploy this template in an another workspace using Azure CLI (version 2.40.0). But the command is failing with a generic error. I checked to import the pipeline in the Synapse Studio UI and it worked.

Command Name az deployment group create

Errors:

{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"BadRequest\",\r\n    \"message\": \"\"\r\n  }\r\n}"},{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"BadRequest\",\r\n    \"message\": \"\"\r\n  }\r\n}"},{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"BadRequest\",\r\n    \"message\": \"\"\r\n  }\r\n}"},{"code":"NotFound","message":"{\r\n  \"error\": {\r\n    \"code\": \"BadRequest\",\r\n    \"message\": \"\"\r\n  }\r\n}"}]}}

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • Create pipeline in synapse studio.
  • Click in export template.
  • Run the below CLI command in local powershell terminal to deploy the template in another synapse studio.
  • az deployment group create --name {DEPLOYMENT_NAME} --resource-group {RG_NAME} --template-file {path to deploymentTemplate JSON file}

Expected Behavior

It must create the desired Synapse pipeline in synapse studio.

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.40.0

Extensions:
application-insights 0.1.16

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RakeshMohanMSFTcommented, Sep 19, 2022

@zhoxing-ms I am looking into it. @Abhinavgundapaneni Can you you verify if these resources referred/used in your deployment exists? /subscriptions/SubscriptionId/resourcegroups/rgroup/providers/Microsoft.Synapse/workspaces/wid/datasets/DS_JSON_File?api-version=2019-06-01-preview

/subscriptions/subscriptionid/resourcegroups/rgroup/providers/Microsoft.Synapse/workspaces/wid/managedVirtualNetworks/default?api-version=2019-06-01-preview

0reactions
msftbot[bot]commented, Sep 26, 2022

Hi, we’re sending this friendly reminder because we haven’t heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don’t hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy an Azure Synapse Analytics workspace using an ARM ...
Here's how to deploy an Azure Synapse Analytics workspace using an Azure Resource Manager (ARM) template.
Read more >
Azure deployment templates with Azure CLI - Microsoft Learn
This article explains how to use Azure CLI with Azure Resource Manager templates (ARM templates) to deploy your resources to Azure.
Read more >
Continuous integration & delivery in Azure Synapse Analytics
First, use an Azure Resource Manager template (ARM template) to create or update workspace resources (pools and workspace). Then, migrate ...
Read more >
Quickstart: Create an Azure Data Factory using ARM template
This quickstart describes how to use an Azure Resource Manager template (ARM template) to create an Azure data factory. The pipeline you ...
Read more >
Create an Azure Synapse workspace using an ARM template
Deploy the template · Subscription: Select an Azure subscription. · Resource group: Select Create new and enter a unique name for the resource ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found