kevchant / AzureDevOps-AzureSynapseLinkforSQLServer2022

CI/CD for Azure Synapse Link for SQL Server 2022

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Synapse Link for SQL Server 2022 Database Project

Example of a state-Based deployment for Azure Synapse Link for SQL Server 2022.

It first stops the link running. It then deploys updates to a database running in SQL Server 2022 before starting the link again. Based on a blog post I wrote called 'A complete CI/CD experience for Azure Synapse Link for SQL Server 2022'.

You can see this template in the video for the March 2023 edition of the Azure Synapse Analytics and MVP series. Click on the link to view.

It contains an example YAML file that you can use as a YAML pipeline in Azure Pipelines. You can find it in the AzureDevOpsTemplates folder. In order to use it in Azure Pipelines you can either import or fork this repository into another GitHub repository, or into Azure Repos.

Afterwards, you can select the YAML file in Azure Pipelines and tailor the pipeline to suit your needs. You can find a guide on how to select the YAML file whilst setting up a YAML Pipeline this in a blog post I wrote called 'Connect a Database Project in Azure Repos to Azure Pipelines'.

You can find the recommended variables inside the YAML file. Avoid putting sensitive information directly into the YAML file (like your connection details). One thing I must stress here is that the password MUST be wrapped in single quotes in the secret for it to work.

You can use the logic in 'Classic Editor' instead by adding the tasks into the GUI and transferring the logic over. Alternatively, you can build an artifact for it using the 'Classic Editor' and use the 'Releases' feature for deployments. Personally, I prefer doing the deployment using a YAML pipeline.

This repository is provided "as is" based on the MIT license. Basically, I am not responsible for your use of it.

About

CI/CD for Azure Synapse Link for SQL Server 2022

License:MIT License


Languages

Language:TSQL 100.0%