What To Use When: Azure Data and SQL Server
What To Use When: Azure Data and SQL Server
© Microsoft Corporation
Azure
SQL is everywhere
SQL Server 2019 SQL on Linux SQL in containers SQL on Kubernetes
Best for modernizing your Best for a compatible SQL Best for portable, Best for database
databases in your private running on Linux consistent, and easy to containers at scale with
cloud patch SQL built-in HA
SQL virtual machines SQL managed instances SQL databases SQL Edge
Best for migrations and Best for most lift-and-shift Best for modern cloud Best for data and
applications requiring OS- migrations to the cloud. applications. Elastic pools, machine learning
level access Instance pool options are Hyperscale and Serverless applications on IOT Edge
available options are available
Challenges Solution
• Perf with no app changes
•
•
Reduce need for ETL
Integrate with Big Data
SQL Server 2019
• Increase confidential computing Best for modernizing databases in your private cloud
• Increased uptime
• Extend T-SQL • SQL Server Big Data Clusters
• Apps certified on a SQL release • Polybase for Data Virtualization
• Intelligent Query Processing
• Always Encrypted with Secure Enclaves
• Accelerated Database Recovery
• SQL Server Language Extensions
PolyBase
R
SQL
ARM64
Microsoft
SQL Server
Intelligent performance Layers of security and compliance Business critical high availability
Query ciphertext
Secure Enclaves
Learn Memory grant
In-memory
Data
plaintext
Run query Classification
SQL Server
2019
Customers from
acquisition Accounts
Order reviews receivable
Windows Linux
Host extension mapping to OS system calls
(IO, Memory, CPU scheduling)
mssql-
mssql-server- mssql-server- mssql-server-
mssql-server mssql-tools mssql-server-is extensibility-
fts ha polybase
java
Challenges Solution
• I want to stop using a Dev SQL Server
•
•
My devs use all OS platforms
I need superspeed deployment
SQL Server on Containers
• I need a fast way to patch SQL Best for portable, consistent, and easy to patch SQL
• Dedicated VM for SQL is heavy
• I have to keep the same performance • A consistent SQL image for all developers on any
OS
• Containers are isolated but share an OS
• Same surface area, tools, and T-SQL
• Deployment fast and integrated with your CI/CD
Efficient
Faster deployment, reduced patching, and
less downtime Container Container Container
Container Runtime
sqlservr sqlservr sqlservr
Bins/libs Bins/libs Bins/libs
Host OS
Infrastructure
Challenges Solution
• I need containers at scale
•
•
I need HA for database containers
I need containers in any cloud
SQL Server on Kubernetes
• Kubernetes is our preferred platform Best for database containers at scale with built-in HA
• I need to integrate Big Data with SQL
• I need an end-to-end ML platform • SQL Server containers natural for the k8s ecosystem
• k8s comes storage, networking, and resource mgmt
• k8s provides built-in basic HA
• k8s great fit for a complete container solution
• Same surface area, tools, and T-SQL
Pod Pod
Kubernetes
Pod
SQL Server
ReplicaSet
Controller
Kubernetes
SQL Server master instance Availability Group Active Directory
PolyBase
Best for migrations and Best for most lift-and-shift Best for modern cloud
applications requiring OS- migrations to the cloud applications. Hyperscale and
level access serverless options are available
Challenges Solution
• The contract on my hardware is
•
expiring
I have instances of SQL Server
Azure SQL virtual machines
2008 and 2008 R2 Best for migrations and applications requiring OS-level access
• I want to migrate to the cloud as
fast as possible • SQL Server and OS server access
• I use third party software that • Expansive SQL and OS version support
needs OS-level access • Full set of SQL Server features available
• I want to extend our on- • Automated manageability features for SQL Server
premises apps to Azure • Automatic security patching
• I need an unlimited number of • Point in time restore with Azure Backup
DBs
•
don’t need OS access
I want to reduce overhead and
Azure SQL managed instance
stress of maintain high Best for most lift-and-shift migrations to the cloud
availability.
• I need instance-scoped features • SQL Server surface area compatibility
like SQL Server Agent, • Fully managed Service
Transactional Replication, and • Native virtual network support
Database Mail • Instance pools for consolidation and fast deploy
• Azure Active Directory and AD Connect integration
Database Mail
Transactional Replication
SQL SQL
Scenarios
Transparent recovery from outage
Load-balancing read-only workloads
Failback after outage is mitigated
Demo
Azure SQL managed instance
Demo: SQL managed instance
Challenges Solution
• I want to build a modern multi-
•
tenant SaaS app
I want to use a database with
Azure SQL Database
dedicated resources and Best for modern cloud applications
predictable performance
• I want to independently scale • Single database or elastic pool
compute and storage in my • Hyperscale storage (100TB+)
database • Serverless compute
• I want to have unlimited • Fully managed service
• Private link (preview)
databases storage when I need it
• High availability with AZ isolation
• I want to build a mission critical • Business continuity at scale
application with highest uptime
• I want to integrate Azure
services into my applications
Customer example
Challenges with sporadic or Azure SQL Database Serverless
unpredictable usage
CPU usage
4
Line of business apps
Expense reporting and employee tracking apps
Procurement systems
Number vCores
E-commerce Inactive Paused
Dev/test workloads
Handling unpredictable workload needs 0
8:00
10:00
14:00
15:00
9:00
11:00
16:00
17:00
1:00
3:00
4:00
5:00
8:00
2:00
6:00
12:00
13:00
18:00
19:00
20:00
21:00
22:00
23:00
0:00
7:00
Min vcores Max vcores Vcores used Vcores billed
Challenges with managing Very Large Databases (VLDB)
Operations take a LONG time (days in some cases) Logistics of moving to larger box
Ongoing operations degrade database performance Economics of sizing for max peaks
Can cause outages and downtime
Provisioning more storage to expand the database
can be painful
Azure SQL DB Hyperscale
• Scalable new tiered storage architecture
• Architected for cloud
Intelligent
In-memory Extended
Query Store Query
OLTP Events
Processing
Query Advanced
Intelligent Vulnerability
Performance Threat
Insights Assessment
Insights Protection
Advanced Threat Detection
Detect unusual and harmful attempts to breach your database
Detects potential SQL
injection attacks
Actionable alerts to
investigate & remediate
Best for migrations and Best for most lift-and-shift Best for modern cloud
applications requiring OS- migrations to the cloud applications. Hyperscale and
level access serverless options are available
Challenges Solution
• I need databases on the Edge
•
•
I need offline data on the Edge
I need to deploy ML on the Edge
Azure SQL Database Edge
• I use a range of devices Best for data and machine learning applications on IOT Edge
• I need cross-platform support
• I need easy integration with the • The power of SQL on Edge devices
cloud • Support for different processors
• I need the power of SQL • Time-Series and Steaming built-in
• SQL Server database and app compatibility
Choice of platform Stream Analytics for IoT AI built-in Azure IoT Edge Integration
Streaming
SQL
Local compute, storage, analytics all-in-one Develop Once, Deploy Anywhere for Your Apps
Best for modernizing your Best for a compatible SQL Best for portable, Best for database
databases in your private running on Linux consistent, and easy to containers at scale with
cloud patch SQL built-in HA
SQL virtual machines SQL managed instances SQL databases SQL Edge
Best for migrations and Best for most lift-and-shift Best for modern cloud Best for data and
applications requiring OS- migrations to the cloud. applications. Elastic pools, machine learning
level access Instance pool options are Hyperscale and Serverless applications on IOT Edge
available options are available
Demo
SQL is everywhere
Next Steps
Deploy SQL Server 2019: https://aka.ms/ss19
Get free SQL Server and Azure training at https://aka.ms/sqlworkshops
Compare SQL and Azure at
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-features
Learn about SQL and Azure from Channel 9 Data Exposed
Become an early adopter of Azure SQL Database Edge
Bonus Slides
SQL Database versus Managed Instance Instance
• Only a detailed analysis of requirements can tell you which is the best fit:
© Microsoft Corporation
Azure
SQL Server 2019 comparison to Azure SQL
Feature SQL Server 2019 Azure SQL
In-Memory Database
*
Always Encrypted with Enclaves
Data Classification
UTF-8
Extensibility Framework *
Compute
Stateless, Local SSD
Cache Log
Landing Zone
Service
Log Service
(Azure Premium Storage)
Log
Page Servers
Destaging Log Cache
Local SSD Cache
Long Term Storage for PITR
Page Servers
(Azure Standard Storage)
Log
…..
Covering Covering
Remote Data
…..
Storage
Data Pages Data Pages Data Pages
Azure Storage
© Microsoft Corporation
Azure
Hyperscale and Azure SQL DW
HS
2. Once subscription registration is complete, register your VM with the SQL VM Resource Provider:
# Register your existing SQL Server VM with the new resource provider
az sql vm create -n <VMName> -g <ResourceGroupName> -l <VMLocation>
Note: Requires full SQL Server restart. Note: Does not enable full functionality.
*If you’re unable to select Full or Lightweight RP, choose an Agentless approach. Note this option does not enable verification of Resource Provider.