SlideShare a Scribd company logo
DEPLOYMENT PIPELINE Eduardo Piairo
Azure SQL Databases
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Eduardo Piairo
Operations Engineer
DevOps Porto Founder
About me
@EdPiairo
https://pt.linkedin.com/in/jesuspiairo
eduardopiairo@gmail.com
http://www.eduardopiairo.com/
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Deployment pipeline / flow / value stream
Source
Control
Continuous
Integration
Continuous
Delivery
Database
+
Application
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
What’s so special about databases?
The database challenge
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
The database challenge
Databases became a bottleneck in an
agile delivery process
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
The database challenge - The solution
Source
Control
Continuous
Integration
Continuous
Delivery
Automation
+
Change control
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
The value of automation
• Enable control over database development
• Increase speed of response to change
• Keep a versioned “history” of database states
• Greater reliability of the release process
• Remove/reduce human intervention in the release process
From
(Re)Learn and forget it
to
Improve and forget it
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Source Control – Change description
• First step in your database deployment pipeline
• Traceability through change history
• SQL as documentation
• Shared code-base and shared process
• Enforceable standards to reduce conflicts
• Fundamental resource: SQL script
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Source Control – Migrations vs State
• State based solutions
• Script represents the current database state
• Your source of truth is how the database should be
• Migrations based solutions
• Script represents a migration
• Migration represents how to transition to the next database version
• Your source of truth is how the database should change
SQL Source Control
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Continuous Integration – Change validation
• Integrate and validate changes
• Small batches
• Unit, Integration, Acceptance tests
• What tests should be done?
• Before, during and after the deployment?
• What happens if tests breaks?
• Depends on what was broken, when was broken
• Manual intervention, automation?
• Rollback, roll front?
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Continuous Delivery – Change implementation
• Delivering the change(s) in the target environment
• Build once, deploy any (promote)
• Deployment considerations
• Time to recover
• Small batches – low risk
• Downtime
• Affected applications
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Rollback
• At what point did it fail?
• What changed?
• Do I have partially updated data?
• Do I have partially objects changed?
• How can I go back to the last known state?
• Rollback database objects
• Rollback the full database
• Rollback scripts (or should I call roll front?)
• Very fast
• Do not make mistakes
• Do I have partially objects changed?
• Backups (before deploy)
• Safer method
• Slower deployments (database is down during deploy)
• Keep databases small
• Avoid share databases between applications
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Azure SQL Database
• Relational database-as-a service
• Keep your databases small and independent
• You pay for each database
• ARM templates
• “Infrastructure” orchestration
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Deployment pipeline – Scenario #1
Source Control Continuous Integration Continuous Delivery
APP
DB
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Deployment pipeline – Scenario #2
Source Control Continuous Integration Continuous Delivery
APP
DB
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Deployment pipeline – Scenario #3
Source Control Continuous Integration Continuous Delivery
APP
DB
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Deployment pipeline – Scenario #4
Source Control Continuous Integration Continuous Delivery
APP
DB
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Deployment pipeline & DevOps
• DevOps as a Contract – collaboration and communication mechanism for change management
• Should be reflected in your deployment pipeline
• The better/clearer your pipeline, the less you need to document (your code is your documentation)
• Everything is negotiable in the contract, except its application
DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES
Reading material
OPERATIONS FOR DATABASES
Q&A
@EdPiairo
https://pt.linkedin.com/in/jesuspiairo
eduardopiairo@gmail.com
http://www.eduardopiairo.com/

More Related Content

PPTX
Continuous database deployment
POTX
SharePoint 24x7x365 Architecting for High Availability, Fault Tolerance and D...
PPTX
Reduce latency and boost sql server io performance
PPTX
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
PPTX
Ultimate Free SQL Server Toolkit
PPTX
11 Goals of High Functioning SQL Developers
PPTX
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
PPTX
A lap around microsofts business intelligence platform
Continuous database deployment
SharePoint 24x7x365 Architecting for High Availability, Fault Tolerance and D...
Reduce latency and boost sql server io performance
Unbreakable SharePoint 2013 with SQL Server Always On Availability Groups (HA...
Ultimate Free SQL Server Toolkit
11 Goals of High Functioning SQL Developers
Haute Disponibilité et Reprise sur incidents en SharePoint 2013 avec Sql Serv...
A lap around microsofts business intelligence platform

What's hot (18)

PPT
Enterprise Beacon Object Hive - Siebel Version Control
PPTX
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
PDF
KoprowskiT_InfoTRAMS_TrustThePrimer
PPTX
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015
PDF
Fundamental Paradigms for Java Developers: NoSQL and OSGI
PDF
AWS RDS Oracle - What is missing for a fully managed service?
PDF
Stream Collections - Scala Days
PPTX
PaaSport to Paradise: Lifting & Shifting with Azure SQL Database/Managed Inst...
PPTX
Project RedDwarf - Database Services in the Cloud.pptx
PDF
Siebel Monitoring Tools
PPTX
Wrapper formulas saltconf 2016
PPTX
AWS Elasticity and Auto Scaling
PPTX
Deploy Office Web Apps Server 2013 in Azure
PPTX
SQL Server Tips & Tricks
ODP
MySQL HA Alternatives 2010
PDF
Engineered Systems: Environment-as-a-Service Demonstration
ODP
Zero Downtime JEE Architectures
PDF
Cloud Native Camel Riding
Enterprise Beacon Object Hive - Siebel Version Control
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
KoprowskiT_InfoTRAMS_TrustThePrimer
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015
Fundamental Paradigms for Java Developers: NoSQL and OSGI
AWS RDS Oracle - What is missing for a fully managed service?
Stream Collections - Scala Days
PaaSport to Paradise: Lifting & Shifting with Azure SQL Database/Managed Inst...
Project RedDwarf - Database Services in the Cloud.pptx
Siebel Monitoring Tools
Wrapper formulas saltconf 2016
AWS Elasticity and Auto Scaling
Deploy Office Web Apps Server 2013 in Azure
SQL Server Tips & Tricks
MySQL HA Alternatives 2010
Engineered Systems: Environment-as-a-Service Demonstration
Zero Downtime JEE Architectures
Cloud Native Camel Riding
Ad

Similar to Deployment pipeline for Azure SQL Databases (20)

PDF
Deployment Pipeline for databases (Azure SQL Database, SQL Server)
PDF
Eduardo Piairo - Deployment pipeline for databases (Azure SQL Database, SQL S...
PDF
Deployment pipeline for databases
PDF
Deployment pipeline for databases
PPTX
Database Deployment Pipeline - SQL In The City Workshop 2014
PPTX
Automate Database Deployment - SQL In The City Workshop
PPTX
Continuous Database Delivery - 7/12/2018
PDF
Delivering Changes for Applications and Databases
PDF
Delivering changes for databases and applications
PPTX
Building an automated database deployment pipeline
PDF
Delivering changes for applications and databases @ Azure
PDF
Delivering changes for applications and databases
PDF
Workshop: Delivering chnages for applications and databases
PPTX
XP Days Ukraine 2016 Building CD Pipeline in Azure
PPTX
Geek Sync | Deployment and Management of Complex Azure Environments
PDF
Operations for databases: the agile/devops journey
PDF
ADDO 2021: Why and how to include database changes in the deployment pipeline
PDF
Operations for databases – the agile/devops journey
PPTX
Moving from application automation to true DevOps by including the database
PPTX
Microsoft Azure Platform-as-a-Service (PaaS)
Deployment Pipeline for databases (Azure SQL Database, SQL Server)
Eduardo Piairo - Deployment pipeline for databases (Azure SQL Database, SQL S...
Deployment pipeline for databases
Deployment pipeline for databases
Database Deployment Pipeline - SQL In The City Workshop 2014
Automate Database Deployment - SQL In The City Workshop
Continuous Database Delivery - 7/12/2018
Delivering Changes for Applications and Databases
Delivering changes for databases and applications
Building an automated database deployment pipeline
Delivering changes for applications and databases @ Azure
Delivering changes for applications and databases
Workshop: Delivering chnages for applications and databases
XP Days Ukraine 2016 Building CD Pipeline in Azure
Geek Sync | Deployment and Management of Complex Azure Environments
Operations for databases: the agile/devops journey
ADDO 2021: Why and how to include database changes in the deployment pipeline
Operations for databases – the agile/devops journey
Moving from application automation to true DevOps by including the database
Microsoft Azure Platform-as-a-Service (PaaS)
Ad

More from Eduardo Piairo (18)

PDF
Adding unit tests to the database deployment pipeline
PDF
Start by changing the way of work
PDF
Adding unit tests to the database deployment pipeline
PDF
Adding unit tests with tSQLt to the database deployment pipeline
PDF
Adding unit tests with tSQLt to the database deployment pipeline
PDF
Operations for databases – The DevOps journey
PDF
Adding unit tests with tSQLt to the database deployment pipeline
PDF
Setting a WordPress website using Azure Web Apps And Azure Database for MySQL
PDF
SQL Server 2017 CLR
PDF
SQL Server 2017 CLR
PDF
Database Source Control: Migrations vs State
PDF
Road to database automation: database source control
PPTX
Database Source Control: Migrations vs State
PDF
DbOps, DevOps and Ops
PDF
Road to database automation: database source control
PDF
Database Source Control: Migrations vs State
PDF
Road to database automation: database source control
PDF
Road to database automation - Database source control
Adding unit tests to the database deployment pipeline
Start by changing the way of work
Adding unit tests to the database deployment pipeline
Adding unit tests with tSQLt to the database deployment pipeline
Adding unit tests with tSQLt to the database deployment pipeline
Operations for databases – The DevOps journey
Adding unit tests with tSQLt to the database deployment pipeline
Setting a WordPress website using Azure Web Apps And Azure Database for MySQL
SQL Server 2017 CLR
SQL Server 2017 CLR
Database Source Control: Migrations vs State
Road to database automation: database source control
Database Source Control: Migrations vs State
DbOps, DevOps and Ops
Road to database automation: database source control
Database Source Control: Migrations vs State
Road to database automation: database source control
Road to database automation - Database source control

Recently uploaded (20)

PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Digital Strategies for Manufacturing Companies
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
System and Network Administraation Chapter 3
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
ai tools demonstartion for schools and inter college
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
medical staffing services at VALiNTRY
PDF
Nekopoi APK 2025 free lastest update
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Transform Your Business with a Software ERP System
PPTX
assetexplorer- product-overview - presentation
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Digital Strategies for Manufacturing Companies
VVF-Customer-Presentation2025-Ver1.9.pptx
How to Choose the Right IT Partner for Your Business in Malaysia
System and Network Administraation Chapter 3
2025 Textile ERP Trends: SAP, Odoo & Oracle
Computer Software and OS of computer science of grade 11.pptx
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
ai tools demonstartion for schools and inter college
Design an Analysis of Algorithms I-SECS-1021-03
medical staffing services at VALiNTRY
Nekopoi APK 2025 free lastest update
Which alternative to Crystal Reports is best for small or large businesses.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Upgrade and Innovation Strategies for SAP ERP Customers
Navsoft: AI-Powered Business Solutions & Custom Software Development
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Transform Your Business with a Software ERP System
assetexplorer- product-overview - presentation

Deployment pipeline for Azure SQL Databases

  • 1. DEPLOYMENT PIPELINE Eduardo Piairo Azure SQL Databases
  • 2. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Eduardo Piairo Operations Engineer DevOps Porto Founder About me @EdPiairo https://pt.linkedin.com/in/jesuspiairo eduardopiairo@gmail.com http://www.eduardopiairo.com/
  • 3. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Deployment pipeline / flow / value stream Source Control Continuous Integration Continuous Delivery Database + Application
  • 4. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES What’s so special about databases? The database challenge
  • 5. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES The database challenge Databases became a bottleneck in an agile delivery process
  • 6. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES The database challenge - The solution Source Control Continuous Integration Continuous Delivery Automation + Change control
  • 7. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES The value of automation • Enable control over database development • Increase speed of response to change • Keep a versioned “history” of database states • Greater reliability of the release process • Remove/reduce human intervention in the release process From (Re)Learn and forget it to Improve and forget it
  • 8. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Source Control – Change description • First step in your database deployment pipeline • Traceability through change history • SQL as documentation • Shared code-base and shared process • Enforceable standards to reduce conflicts • Fundamental resource: SQL script
  • 9. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Source Control – Migrations vs State • State based solutions • Script represents the current database state • Your source of truth is how the database should be • Migrations based solutions • Script represents a migration • Migration represents how to transition to the next database version • Your source of truth is how the database should change SQL Source Control
  • 10. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Continuous Integration – Change validation • Integrate and validate changes • Small batches • Unit, Integration, Acceptance tests • What tests should be done? • Before, during and after the deployment? • What happens if tests breaks? • Depends on what was broken, when was broken • Manual intervention, automation? • Rollback, roll front?
  • 11. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Continuous Delivery – Change implementation • Delivering the change(s) in the target environment • Build once, deploy any (promote) • Deployment considerations • Time to recover • Small batches – low risk • Downtime • Affected applications
  • 12. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Rollback • At what point did it fail? • What changed? • Do I have partially updated data? • Do I have partially objects changed? • How can I go back to the last known state? • Rollback database objects • Rollback the full database • Rollback scripts (or should I call roll front?) • Very fast • Do not make mistakes • Do I have partially objects changed? • Backups (before deploy) • Safer method • Slower deployments (database is down during deploy) • Keep databases small • Avoid share databases between applications
  • 13. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Azure SQL Database • Relational database-as-a service • Keep your databases small and independent • You pay for each database • ARM templates • “Infrastructure” orchestration
  • 14. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Deployment pipeline – Scenario #1 Source Control Continuous Integration Continuous Delivery APP DB
  • 15. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Deployment pipeline – Scenario #2 Source Control Continuous Integration Continuous Delivery APP DB
  • 16. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Deployment pipeline – Scenario #3 Source Control Continuous Integration Continuous Delivery APP DB
  • 17. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Deployment pipeline – Scenario #4 Source Control Continuous Integration Continuous Delivery APP DB
  • 18. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Deployment pipeline & DevOps • DevOps as a Contract – collaboration and communication mechanism for change management • Should be reflected in your deployment pipeline • The better/clearer your pipeline, the less you need to document (your code is your documentation) • Everything is negotiable in the contract, except its application
  • 19. DEPLOYMENT PIPELINE FOR AZURE SQL DATABASES Reading material