Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to deploy SQL Database (and changes) in Bitbucket pipeline to Azure

Nat June 10, 2020

Asking for an opinion or direction on the current problem.

We are using bitbucket pipeline to deploy ci/cd web applications to Azure. Now what is remaining - the database, also being hosted on Azure.

From my research - everything on SQL Database Projects deployments usually utilizes Azure DevOps pipelines (connects to github repo, allows plural environments, has a built-in SqlAgent allows deploy SQL db to the target server via dacpac file. It allows CI with every check-in, every time you push changes. Nice!

But what if can not (for some reason) use Azure DevOps and have to utilize Bitbucket pipelines instead. To push schema updates? changes? from SQL Database Solution/Project?

is that possible? how? via scripting? a tool? to call in the command line? powershell / Invoke-Sqlcmd but not sure if this is possible or manageable?

 

Any help - highly appreciated.

1 answer

1 accepted

0 votes
Answer accepted
Nat February 2, 2021

We end up using DB UP as solution to push through pipeline and deploy SQL changes. It tracks which SQL scripts have been run already, and runs the change scripts that are needed to get your database up to date.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events