kevchant / GitHub-AzureSynapseLinkforSQLServer2022

A complete CI/CD solution for Azure Synapse Link for SQL Server 2022 using GitHub Actions

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 GitHub 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 secrets inside the YAML file. However, I will add them again below:

AZURE_CREDENTIALS - The credentials for your service principal - Guide for that can be found here.
WORKSPACENAME - Name of your Azure Synapse workspace
LINKNAME - Name of the link for Azure Synapse Link for SQL Server 2022
SQL_SERVER - Name of your SQL Server
SQL_CONNECTION_STRING - The connection string for your SQL Server database

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

About

A complete CI/CD solution for Azure Synapse Link for SQL Server 2022 using GitHub Actions

License:MIT License


Languages

Language:TSQL 100.0%