Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Edited

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

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
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

156 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you