How we can setup rollback strategy Azure devops Pipeline for Synapse workspace ?

Siddharth Joshi 206 Reputation points
2023-03-29T03:32:51.4266667+00:00

Hi,

I have setup CI/CD pipeline to promote Synapse Artifacts from one Dev to UAT but now I want to setup rollback strategy via DevOps Pipeline so I can quickly clean the UAT workspace and re-deploy artifacts with previous release version.

Let me know Is there any other way to deploy previous version but existing artifacts should not be present.

Please let me know Is there any another way to setup rollback strategy or any in-build feature of Azure DevOps ?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,253 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 30,101 Reputation points Microsoft Employee
    2023-03-29T17:05:50.5366667+00:00

    @Siddharth Joshi ,

    Thankyou for using Microsoft Q&A platform and thanks for posting your query here.

    As I understand your query, you want to know how to rollback the changes to the previous version of deployment . Please let me know if that is not the case.

    You can use inline powershell task for this requirement and try following command :

    To redeploy the last successful deployment, add the -RollbackToLastDeployment parameter as a flag.

    New-AzResourceGroupDeployment -Name ExampleDeployment02 `
      -ResourceGroupName $resourceGroupName `
      -TemplateFile c:\MyTemplates\azuredeploy.json `
      -RollbackToLastDeployment
    
    

    To redeploy a specific deployment, use the -RollBackDeploymentName parameter and provide the name of the deployment. The specified deployment must have succeeded.

    New-AzResourceGroupDeployment -Name ExampleDeployment02 `
      -ResourceGroupName $resourceGroupName `
      -TemplateFile c:\MyTemplates\azuredeploy.json `
      -RollBackDeploymentName ExampleDeployment01
    
    

    For more info , kindly visit: Rollback on error to successful deployment


    Hope it helps. Kindly consider accepting the answer as accepted answer helps community. Thanks

    0 comments No comments

0 additional answers

Sort by: Most helpful