SlideShare a Scribd company logo
Using Redgate, AKS and Azure
to bring DevOps to your
Database
By Rob Sewell & Hamish Watson
Hi there, we’re…
Hamish Watson
Rob Sewell
https://sqldbawithabeard.com/
@sqldbawithbeard
https://hybriddbablog.com/
@theHybridDBA
Rob = Somerset, UK
Hamish = Christchurch, NZ
https://devops.pass.org/default.aspx
Agenda
• How was life before DevOps?
• What is this DevOps thing you talk of?
• Why use Redgate tools?
• Why use Azure?
• Why use containers
• Why use Azure Kubernetes Services
Database Development Cycle:
• Manual
• Inconsistently tested
• Plagued with poor or NO source control
• Slowed down by lengthy processes and daunting deployments
• Application code breaks our database!!
“….never say the word DevOps”
The first rule of DevOps…….
Hamish Watson, circa 2013
“Let’s use our tools and create a process
that allows us to automate the reliable
deployment of business value to our
clients.”
Hamish Watson, circa 2016
#MakeStuffGo
Culture
Automation
Lean
Measurement
Sharing
What is DevOps?
#Only The Name Is New
#Common business goal
#Everyone working together
Tools
The four pillars of DevOps
Process People Culture
https://www.red-gate.com/blog/database-devops/the-four-pillars-of-devops
Enhanced customer
experience
DevOps Benefits
Increased capacity
to innovate
Faster time to value
DevOps tools – yours might differ
Issue, bug and task tracking
Source control
Integrated Development Environment
Automated build server
Automated testing
Automated release
Ways you can start your DevOps journey
1. Source Control
2. Unit Testing
3. Infrastructure as Code
4. Continuous Integration
5. Continuous Delivery
6. Continuous Monitoring & Testing
Storing our database in source control
The what now…?
Ways to get our database into Source Control
(SQL Source Control)
Ways to get our database into Source Control
(SQL Source Control)
Ways to get our database into Source Control
(SQL Source Control)
Unit Testing for Databases
Yeah, nah…
…..that’s kinda non-existent.
Why we need to do unit testing
The client actually wanted a ‘g’
Consider this application developer
Skills: C#, .NET, java, PowerShell
Experience: 8 years
Platforms: Windows Server, Azure, AWS, docker
Databases: Microsoft SQL Server, MySQL, Oracle
Unit Testing: Nah, don’t really believe in it mate….
X
Consider this database developer
Skills: T-SQL, Entity Framework, PowerShell
Experience: 8 years
Platforms: Windows Server, Azure, RDS
Databases: Microsoft SQL Server 2000 - 2017
Unit Testing: I write beautiful stored procs mate….
P
Introducing tSQLt
https://tsqlt.org/
22
Introducing tSQLt
Open Source Database Unit Testing Framework (free!!)
http://tsqlt.org/
Write unit tests in TSQL and can be written/run in SSMS
Very similar to NUnit & JUnit
There are a lot of methods for asserts
23
Introducing tSQLt
Use of fake tables/views isolates code while testing
Self Contained tests – isolated transactions
We can choose to run all, some or one test
Tests grouped in their own schema
Does require CLR – this is OK for DEV and some TEST
24
tSQLt is easy as to run…
EXEC tsqlt.runall
SQL Test makes it even easier and standard..
Infrastructure as Code
Getting what you want, how you want it, when you
want it….
…with code that is.
Infrastructure as Code – solving inertia
More of this
LESS of this
Learn how to write in YAML…
Continuous, Continuous, Continuous!!
Let’s do all the things…
….continuously
Continuous Integration
“Continuous Integration (CI) is a development practice that requires developers to
integrate code into a shared repository several times a day.
Each check-in is then verified by an automated build, allowing teams to detect problems
early.
By integrating regularly, you can detect errors quickly, and fix them more easily.”
https://www.thoughtworks.com/continuous-integration
http://workingwithdevs.com/t-sql-tuesday-90-you-are-doing-continuous-integration-wrong
Continuous Integration
TDD DEVELOPER – Steve Jones
WRITES CODE
COMMIT SOURCE CONTROL
SYSTEM
O.S DEVELOPER – Rob WatsonWRITES CODE
POLLING
NOTIFICATIONS
CONTINUOUS
INTEGRATION &
TESTING
TEST
FAILURE
TEST AGAIN PACKAGE &
DEPLOY
1
2
3 4
56
7
8
910
11
12
NOTIFY
13
14
15 16
Unit
testing
Unit
testing
CI isn’t the whole story for reliable deployments
Dev
Dev BUILD
SERVER
Build
testing
UAT
User
testing
PRODUCTION EXPLOSION
Continuous
integration
1
2
3
4
5
6
3 Months of
changes
Feedback on 3 Months of changes7
Wasteful rework & manual intervention8
Unit
testing
Continuous Delivery – shifting everything left
Feedback
Dev
Dev Build
server
Build
tests
Continuous integration
Build
Continuous testing
Integration tests Functional tests
User acceptance
tests
Feedback
Integration
Feedback
Functional
Feedback
UAT
Final
test
Feedback
Pre prod
Small iterative changes
CONTINUOUS DELIVERY
Feedback
‘SHIFT LEFT’ OPERATIONAL FEEDBACK
PROD
Continuous
monitoring
Unit
testing
CONTINUOUS MONITORING
Containers, Azure and AKS
The Data Platform has evolved….
… have you?
Why move to the Cloud?
• Elasticity
• Pay for
what you
need
• Fail fast
• Fast time to
market
• Secure
• Reliable
• Business
SLA
Less of this
More of this
My datacentre in the cloudMy datacentre in the cloud – all via this:
SQL Server 2017
• SQL Server 2017 and above can run on Linux
• Which means it can now run in a container
• This is quite a game changer for our industry..
SQL Server in containers
Container Container Container
Portable
Run anywhere Docker is supported
Lightweight
Reduced disk, CPU, and memory footprint
Consistent
Consistent image of SQL Server, scripts, and
tools
Efficient
Faster deployment, reduced patching, and
less downtime
Container configuration
Database
Persisted storage
Switch for
simple
upgrades
Bare Metal Server
Infrastructure Layer
Operating System (OS)
Physical
Hypervisor (VMs)
Containers
Hypervisor
Applications Guest 1 OS
Guest 1
Applications
Guest 2 OS
Guest 2
Applications
Orchestration Platform
Container 1 Container 2
SAN Storage
Operating System (OS)
Worker Node 1 Worker Node 2
Container 1 Container 2
Orchestrated
Containers
Networking
The cake layers of Kubernetes
Using Redgate, AKS and Azure to bring DevOps to your database
Persistent Volume Storage
Kubernetes
Built-in HADR orchestration with no clustering required
User
Shared storage HA in Kubernetes
Node
Pod
SQL Server
Node
Load Balancer Service
Node
Pod
SQL Server
Pod
SQL Server
Managed Kubernetes means less stress…
Making Kubernetes easier for the masses
This is almost too easy…
Bringing it all together – DevOps/Redgate/AKS
Bringing it all together – Continuous Integration
Bringing it all together – Continuous Delivery
Bringing it all together – Continuous Delivery
Summary
• You need to look at DevOps for your database
• Redgate make some fantastically ingenious and simple
solutions to help you #MakeStuffGo
• We love Azure and we love containers
• Azure Kubernetes Services lets you scale out and protect your
applications and database
• You can use the same methods and TOOLS to play with AKS
https://datamindsconnect.be/
Questions?
Thank you for tuning in for our webinar!!
Hamish Watson
@theHybridDBA
hamish@morphit.co.nz
Rob Sewell
@sqldbawithbeard
mrrobsewell@outlook.com

More Related Content

What's hot (20)

PPT
Sebastien goasguen cloud stack and docker
ShapeBlue
 
PDF
Cassandra Development Nirvana
DataStax
 
PDF
Cassandra Core Concepts - Cassandra Day Toronto
Jon Haddad
 
PPTX
Redis Labs and SQL Server
Lynn Langit
 
PDF
“Kick-off with Scale in Mind” by Yousef Wadi
Jordan Open Source Association
 
PPTX
Containerization - The DevOps Revolution
Yulian Slobodyan
 
PDF
Wido den hollander cloud stack and ceph
ShapeBlue
 
PPTX
Meetup #3: Migrate a fast scale system to AWS
AWS Vietnam Community
 
PPT
Sebastien goasguen cloud stack the next year
ShapeBlue
 
PDF
Innovating faster with SBT, Continuous Delivery, and LXC
kscaldef
 
PPTX
Azure Bootcamp 2016 - Docker Orchestration on Azure with Rancher
Karim Vaes
 
PDF
Cassandra Bootstrap from Backups
Instaclustr
 
PDF
Rohit yadav cloud stack internals
ShapeBlue
 
PDF
Securing Containers From Day One | null Ahmedabad Meetup
Kumar Ashwin
 
PDF
Microsoft Azure Container Service - DockerCH
Nguyen Anh Tu
 
PPTX
Rik Hepworth - ARM Yourself for Effective Azure Provisioning
WinOps Conf
 
PDF
Avishay Traeger & Shimshon Zimmerman, Stratoscale - Deploying OpenStack Cinde...
Cloud Native Day Tel Aviv
 
PPTX
Neil Peterson - Azure CLI Deep Dive
WinOps Conf
 
PDF
Webinar - Big Data: Let's SMACK - Jorg Schad
Codemotion
 
PPTX
How to build an HA container orchestrator infrastructure for production – Giu...
Codemotion
 
Sebastien goasguen cloud stack and docker
ShapeBlue
 
Cassandra Development Nirvana
DataStax
 
Cassandra Core Concepts - Cassandra Day Toronto
Jon Haddad
 
Redis Labs and SQL Server
Lynn Langit
 
“Kick-off with Scale in Mind” by Yousef Wadi
Jordan Open Source Association
 
Containerization - The DevOps Revolution
Yulian Slobodyan
 
Wido den hollander cloud stack and ceph
ShapeBlue
 
Meetup #3: Migrate a fast scale system to AWS
AWS Vietnam Community
 
Sebastien goasguen cloud stack the next year
ShapeBlue
 
Innovating faster with SBT, Continuous Delivery, and LXC
kscaldef
 
Azure Bootcamp 2016 - Docker Orchestration on Azure with Rancher
Karim Vaes
 
Cassandra Bootstrap from Backups
Instaclustr
 
Rohit yadav cloud stack internals
ShapeBlue
 
Securing Containers From Day One | null Ahmedabad Meetup
Kumar Ashwin
 
Microsoft Azure Container Service - DockerCH
Nguyen Anh Tu
 
Rik Hepworth - ARM Yourself for Effective Azure Provisioning
WinOps Conf
 
Avishay Traeger & Shimshon Zimmerman, Stratoscale - Deploying OpenStack Cinde...
Cloud Native Day Tel Aviv
 
Neil Peterson - Azure CLI Deep Dive
WinOps Conf
 
Webinar - Big Data: Let's SMACK - Jorg Schad
Codemotion
 
How to build an HA container orchestrator infrastructure for production – Giu...
Codemotion
 

Similar to Using Redgate, AKS and Azure to bring DevOps to your database (20)

PDF
SQL Server 2019 hotlap - WARDY IT Solutions
Michaela Murray
 
PPTX
SQL Server 2019 hotlap - WARDY IT Solutions
Michaela Murray
 
PPTX
Database CI/CD Pipeline
muhammadhashir57
 
PPTX
Windows on AWS
Datavail
 
PPTX
Net conf uy 2017 sql 2017
Maximiliano Accotto
 
PPTX
Data Amp South Africa - SQL Server 2017
Travis Wright
 
PDF
The 2019 State of Database DevOps results, live with Donovan Brown!
Red Gate Software
 
PPTX
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Travis Wright
 
PPTX
The Future of Database Development
Steve Jones
 
PPTX
SQL Server 2017 Overview and Partner Opportunities
Travis Wright
 
PPTX
Sql 2016 2017 full
Maximiliano Accotto
 
PPTX
Extending DevOps practices to SQL Server databases - story tracking - 20th ju...
Red Gate Software
 
PPTX
Sql 2017 net raf
Maximiliano Accotto
 
PPTX
Sql server and cloud
Kiki Noviandi
 
PDF
Data Platform Modernization Solutions
David J Rosenthal
 
PPTX
Survey of the Microsoft Azure Data Landscape
Ike Ellis
 
PDF
Introducing Microsoft SQL Server 2017
David J Rosenthal
 
PPTX
Microsoft Data Platform - What's included
James Serra
 
PPTX
Redgate database DevOps demo webinar (with Git & Jenkins)
Red Gate Software
 
PPTX
Bringing DevOps to the Database
Michaela Murray
 
SQL Server 2019 hotlap - WARDY IT Solutions
Michaela Murray
 
SQL Server 2019 hotlap - WARDY IT Solutions
Michaela Murray
 
Database CI/CD Pipeline
muhammadhashir57
 
Windows on AWS
Datavail
 
Net conf uy 2017 sql 2017
Maximiliano Accotto
 
Data Amp South Africa - SQL Server 2017
Travis Wright
 
The 2019 State of Database DevOps results, live with Donovan Brown!
Red Gate Software
 
Red Hat Summit 2017 - Intro to SQL Server on RHEL and Open Shift
Travis Wright
 
The Future of Database Development
Steve Jones
 
SQL Server 2017 Overview and Partner Opportunities
Travis Wright
 
Sql 2016 2017 full
Maximiliano Accotto
 
Extending DevOps practices to SQL Server databases - story tracking - 20th ju...
Red Gate Software
 
Sql 2017 net raf
Maximiliano Accotto
 
Sql server and cloud
Kiki Noviandi
 
Data Platform Modernization Solutions
David J Rosenthal
 
Survey of the Microsoft Azure Data Landscape
Ike Ellis
 
Introducing Microsoft SQL Server 2017
David J Rosenthal
 
Microsoft Data Platform - What's included
James Serra
 
Redgate database DevOps demo webinar (with Git & Jenkins)
Red Gate Software
 
Bringing DevOps to the Database
Michaela Murray
 
Ad

More from Red Gate Software (20)

PDF
The future of DevOps: fully left-shifted deployments with version control and...
Red Gate Software
 
PDF
Embracing DevOps through database migrations with Flyway
Red Gate Software
 
PPTX
Database DevOps for Managed Service Providers
Red Gate Software
 
PDF
Mizuho Financial: Launching our Database DevOps journey
Red Gate Software
 
PDF
7 steps to effective SQL Server monitoring
Red Gate Software
 
PDF
Level up your deployments for SQL Source Control
Red Gate Software
 
PDF
Key findings from the 2020 state of database dev ops report
Red Gate Software
 
PPTX
Extend DevOps to Your SQL Server Databases
Red Gate Software
 
PDF
2019 year in review slides
Red Gate Software
 
PPTX
What we learned at PASS Summit in 2019
Red Gate Software
 
PPTX
Quality in Software Development: Anglia Ruskin University
Red Gate Software
 
PPTX
How SQL Change Automation helps you deliver value faster
Red Gate Software
 
PPTX
DevOps essentials from Abel Wang and Steve Jones
Red Gate Software
 
PPTX
Successfully migrating existing databases to Azure
Red Gate Software
 
PPTX
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
Red Gate Software
 
PDF
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Red Gate Software
 
PDF
Using Redgate, AKS and Azure to bring DevOps to your Database
Red Gate Software
 
PDF
How to Pitch a Software Development Initiative and Ignite Culture Change
Red Gate Software
 
PDF
Taming the Wild West
Red Gate Software
 
PDF
Standardize Database Development Across your Organization in 4 Key Steps
Red Gate Software
 
The future of DevOps: fully left-shifted deployments with version control and...
Red Gate Software
 
Embracing DevOps through database migrations with Flyway
Red Gate Software
 
Database DevOps for Managed Service Providers
Red Gate Software
 
Mizuho Financial: Launching our Database DevOps journey
Red Gate Software
 
7 steps to effective SQL Server monitoring
Red Gate Software
 
Level up your deployments for SQL Source Control
Red Gate Software
 
Key findings from the 2020 state of database dev ops report
Red Gate Software
 
Extend DevOps to Your SQL Server Databases
Red Gate Software
 
2019 year in review slides
Red Gate Software
 
What we learned at PASS Summit in 2019
Red Gate Software
 
Quality in Software Development: Anglia Ruskin University
Red Gate Software
 
How SQL Change Automation helps you deliver value faster
Red Gate Software
 
DevOps essentials from Abel Wang and Steve Jones
Red Gate Software
 
Successfully migrating existing databases to Azure
Red Gate Software
 
The Ultimate Guide to Choosing and Implementing the Right Monitoring Tool
Red Gate Software
 
Everything You Need to Know About the 2019 DORA Accelerate State of DevOps Re...
Red Gate Software
 
Using Redgate, AKS and Azure to bring DevOps to your Database
Red Gate Software
 
How to Pitch a Software Development Initiative and Ignite Culture Change
Red Gate Software
 
Taming the Wild West
Red Gate Software
 
Standardize Database Development Across your Organization in 4 Key Steps
Red Gate Software
 
Ad

Recently uploaded (20)

PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Open Chain Q2 Steering Committee Meeting - 2025-06-25
Shane Coughlan
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 

Using Redgate, AKS and Azure to bring DevOps to your database

  • 1. Using Redgate, AKS and Azure to bring DevOps to your Database By Rob Sewell & Hamish Watson
  • 2. Hi there, we’re… Hamish Watson Rob Sewell https://sqldbawithabeard.com/ @sqldbawithbeard https://hybriddbablog.com/ @theHybridDBA
  • 3. Rob = Somerset, UK Hamish = Christchurch, NZ
  • 5. Agenda • How was life before DevOps? • What is this DevOps thing you talk of? • Why use Redgate tools? • Why use Azure? • Why use containers • Why use Azure Kubernetes Services
  • 6. Database Development Cycle: • Manual • Inconsistently tested • Plagued with poor or NO source control • Slowed down by lengthy processes and daunting deployments • Application code breaks our database!!
  • 7. “….never say the word DevOps” The first rule of DevOps……. Hamish Watson, circa 2013
  • 8. “Let’s use our tools and create a process that allows us to automate the reliable deployment of business value to our clients.” Hamish Watson, circa 2016 #MakeStuffGo
  • 9. Culture Automation Lean Measurement Sharing What is DevOps? #Only The Name Is New #Common business goal #Everyone working together
  • 10. Tools The four pillars of DevOps Process People Culture https://www.red-gate.com/blog/database-devops/the-four-pillars-of-devops
  • 11. Enhanced customer experience DevOps Benefits Increased capacity to innovate Faster time to value
  • 12. DevOps tools – yours might differ Issue, bug and task tracking Source control Integrated Development Environment Automated build server Automated testing Automated release
  • 13. Ways you can start your DevOps journey 1. Source Control 2. Unit Testing 3. Infrastructure as Code 4. Continuous Integration 5. Continuous Delivery 6. Continuous Monitoring & Testing
  • 14. Storing our database in source control The what now…?
  • 15. Ways to get our database into Source Control (SQL Source Control)
  • 16. Ways to get our database into Source Control (SQL Source Control)
  • 17. Ways to get our database into Source Control (SQL Source Control)
  • 18. Unit Testing for Databases Yeah, nah… …..that’s kinda non-existent.
  • 19. Why we need to do unit testing The client actually wanted a ‘g’
  • 20. Consider this application developer Skills: C#, .NET, java, PowerShell Experience: 8 years Platforms: Windows Server, Azure, AWS, docker Databases: Microsoft SQL Server, MySQL, Oracle Unit Testing: Nah, don’t really believe in it mate…. X
  • 21. Consider this database developer Skills: T-SQL, Entity Framework, PowerShell Experience: 8 years Platforms: Windows Server, Azure, RDS Databases: Microsoft SQL Server 2000 - 2017 Unit Testing: I write beautiful stored procs mate…. P
  • 23. Introducing tSQLt Open Source Database Unit Testing Framework (free!!) http://tsqlt.org/ Write unit tests in TSQL and can be written/run in SSMS Very similar to NUnit & JUnit There are a lot of methods for asserts 23
  • 24. Introducing tSQLt Use of fake tables/views isolates code while testing Self Contained tests – isolated transactions We can choose to run all, some or one test Tests grouped in their own schema Does require CLR – this is OK for DEV and some TEST 24
  • 25. tSQLt is easy as to run… EXEC tsqlt.runall
  • 26. SQL Test makes it even easier and standard..
  • 27. Infrastructure as Code Getting what you want, how you want it, when you want it…. …with code that is.
  • 28. Infrastructure as Code – solving inertia More of this LESS of this
  • 29. Learn how to write in YAML…
  • 30. Continuous, Continuous, Continuous!! Let’s do all the things… ….continuously
  • 31. Continuous Integration “Continuous Integration (CI) is a development practice that requires developers to integrate code into a shared repository several times a day. Each check-in is then verified by an automated build, allowing teams to detect problems early. By integrating regularly, you can detect errors quickly, and fix them more easily.” https://www.thoughtworks.com/continuous-integration http://workingwithdevs.com/t-sql-tuesday-90-you-are-doing-continuous-integration-wrong
  • 32. Continuous Integration TDD DEVELOPER – Steve Jones WRITES CODE COMMIT SOURCE CONTROL SYSTEM O.S DEVELOPER – Rob WatsonWRITES CODE POLLING NOTIFICATIONS CONTINUOUS INTEGRATION & TESTING TEST FAILURE TEST AGAIN PACKAGE & DEPLOY 1 2 3 4 56 7 8 910 11 12 NOTIFY 13 14 15 16 Unit testing Unit testing
  • 33. CI isn’t the whole story for reliable deployments Dev Dev BUILD SERVER Build testing UAT User testing PRODUCTION EXPLOSION Continuous integration 1 2 3 4 5 6 3 Months of changes Feedback on 3 Months of changes7 Wasteful rework & manual intervention8 Unit testing
  • 34. Continuous Delivery – shifting everything left Feedback Dev Dev Build server Build tests Continuous integration Build Continuous testing Integration tests Functional tests User acceptance tests Feedback Integration Feedback Functional Feedback UAT Final test Feedback Pre prod Small iterative changes CONTINUOUS DELIVERY Feedback ‘SHIFT LEFT’ OPERATIONAL FEEDBACK PROD Continuous monitoring Unit testing CONTINUOUS MONITORING
  • 35. Containers, Azure and AKS The Data Platform has evolved…. … have you?
  • 36. Why move to the Cloud? • Elasticity • Pay for what you need • Fail fast • Fast time to market • Secure • Reliable • Business SLA
  • 39. My datacentre in the cloudMy datacentre in the cloud – all via this:
  • 40. SQL Server 2017 • SQL Server 2017 and above can run on Linux • Which means it can now run in a container • This is quite a game changer for our industry..
  • 41. SQL Server in containers Container Container Container Portable Run anywhere Docker is supported Lightweight Reduced disk, CPU, and memory footprint Consistent Consistent image of SQL Server, scripts, and tools Efficient Faster deployment, reduced patching, and less downtime Container configuration Database Persisted storage Switch for simple upgrades
  • 42. Bare Metal Server Infrastructure Layer Operating System (OS) Physical Hypervisor (VMs) Containers Hypervisor Applications Guest 1 OS Guest 1 Applications Guest 2 OS Guest 2 Applications Orchestration Platform Container 1 Container 2 SAN Storage Operating System (OS) Worker Node 1 Worker Node 2 Container 1 Container 2 Orchestrated Containers Networking
  • 43. The cake layers of Kubernetes
  • 45. Persistent Volume Storage Kubernetes Built-in HADR orchestration with no clustering required User Shared storage HA in Kubernetes Node Pod SQL Server Node Load Balancer Service Node Pod SQL Server Pod SQL Server
  • 46. Managed Kubernetes means less stress…
  • 47. Making Kubernetes easier for the masses
  • 48. This is almost too easy…
  • 49. Bringing it all together – DevOps/Redgate/AKS
  • 50. Bringing it all together – Continuous Integration
  • 51. Bringing it all together – Continuous Delivery
  • 52. Bringing it all together – Continuous Delivery
  • 53. Summary • You need to look at DevOps for your database • Redgate make some fantastically ingenious and simple solutions to help you #MakeStuffGo • We love Azure and we love containers • Azure Kubernetes Services lets you scale out and protect your applications and database • You can use the same methods and TOOLS to play with AKS
  • 56. Thank you for tuning in for our webinar!! Hamish Watson @theHybridDBA [email protected] Rob Sewell @sqldbawithbeard [email protected]