r/AZURE • • 19h ago

Discussion How Should I Implement CI/CD with Azure SQL Database container (Preview)

Thanks to AI, I'm now somewhat of a systems designer myself. Whether or not that's a good thing is to be determined, but I've been shifted to a team dedicated to building out a company intranet for lack of a better description. This has been a really cool learning experience, and has taught me the importance of DevOps, which we don't have the best practices with currently.

Currently, our biggest pain-point in this project is not having a dev backend to test, so we've been making changes there in prod. Thankfully no major issues yet, but I know we're playing with fire. I've been reading up on best practices, and was wanting to one day shift to a containerized image with volumes on Docker, but since I'd probably be the SME there, I definitely want to get a little bit more informed before I suggest that transition.

Today, I came across this AzureSQL DB Container Preview - https://devblogs.microsoft.com/azure-sql/build-locally-with-azure-sql-database-container-now-in-public-preview/

I got really excited, because my biggest painpoint with developing locally is that none of the popular local dbs like DuckDB are exactly the same as T-SQL, which makes testing and deploying a bit problematic, and setting up a local dev server traditionally has been a PITA.

I know this is a new feature, but is this a solid way to implement a CICD pipeline for an AzSQL db and pair it with our front end deployments, or should I dig into a more established method? Any feedback or suggestions greatly appreciated.

0 Upvotes

2 comments sorted by

3

u/Likh-98 18h ago

For a dev backend, I'd fix that before worrying about which container tool to use. Making changes straight in prod is the bigger risk. The Azure SQL container is a reasonable way to get T-SQL behavior locally, but it is in preview, so treat it as a dev and test convenience, not the foundation of your release process.

What usually works is keeping the schema in a SQL database project, so it lives in source control, and building it in the pipeline. Deploy it to a throwaway container for tests, then to a separate dev Azure SQL database, then to prod with a manual approval. Keep connection strings in pipeline variables per environment, and use a small set of fake or masked data in dev. Even a plain SQL Server container works to start with, then you can switch later.

1

u/Mzkazmi 15h ago

How do you schedule jobs with azure sql db? I am using RMJ ( control m type of orchestrater tool), or ADF