AAC_SQLonAzure_July22 (1)
AAC_SQLonAzure_July22 (1)
SQL on Azure
Steffen Krause
Global Blackbelt SQL & Hybrid
[email protected]
Ralph Kemperdick
Cloud Solution Architect – Data
[email protected]
An introduction to
Steffen Krause
Global Blackbelt SQL & Hybrid
[email protected]
Introducing Microsoft
Intelligent Data
Platform
Cash flow challenges Cybersecurity threats
Migration
Protect your most valuable assets with trusted cloud security every step of the way
Scale Hybrid
Limitless Operational freedom
Security
Always a step ahead
Introducing Azure SQL
The family of SQL cloud databases
Be more productive with AI- Build on what you know with a Get more cloud for less with Secure your data with layers of
powered features that automate consistent code base and leading price-performance protection, built-in controls,
tasks and optimize performance deploy it anywhere from edge and savings up to 85% off pay- intelligent threat detection,
for you to cloud as-you-go rates with Azure and the broadest set of
Hybrid Benefit. compliance offerings
Azure SQL
The family of SQL cloud to edge databases
Azure SQL enabled by Azure Arc Azure Arc SQL Managed Instance
Run Azure SQL on premises and in multi-cloud environments Run PaaS Azure SQL on premises and multi-cloud
Edsv5-series
• Good remote throughput
• Large local drives with high local/cached throughput
• Offers best price-performance for SQL Server workloads
Mv2-series*
• Great for mission critical OLTP and high-end data warehouse
workloads
• Expensive – it is recommended to start with Edsv4 first if possible
Ddsv5-series
• Good choice for dev/test workloads
• Works for smaller production database environments
SQL Server on Azure VMs
Ebdsv5-series
• Large local drives with high local/cached throughput
• Offers the best price-performance for SQL Server
workloads
M-series
• Great for mission critical OLTP and high-end data
warehouse workloads
• Very expensive – start with Edsv4 first if possible
11-15
https://aka.ms/AzureSQLVMPricePerf
SQL Server on Azure VMs
Resource Provider brings the functionality of Azure Marketplace images to SQL Server instances self-installed
on Azure Virtual Machines
Self-installed VMs registered Azure VMs are now discoverable Self-installed VMs with RP Self-installed VMs with RP
with RP now can access on the new Azure SQL blade can be easily converted automatically indicate usage
automation features in in Azure Marketplace to PAYG images of Azure Hybrid Benefit
Azure Marketplace images
Leverage auto-backup and Easily manage your SQL VM Save money by converting Ensure compliance with
auto-patching to avoid and SQL PaaS deployments variable workloads with Software Azure terms and conditions
time-consuming admin from one central location Assurance to PAYG images without any extra effort
and VM customization
SQL virtual Single database Elastic pool Single instance Instance pool Edge gateways
machine and devices
SQL Server and OS Hyperscale storage Resource sharing SQL Server surface Pre-provision Containerized
server access (up to 100TB) between multiple area (vast majority) compute resources Microsoft SQL
databases to price for migration database engine on
Expansive SQL And Serverless compute Native virtual
optimize ARM64 and x64
OS version support network support Enables cost-efficient
Fully managed edge devices
Simplified migration.
Automated service Fully managed
manageability performance service Ability to host Time-series, data
management for streaming and AI
features for SQL smaller instances
Server multiple databases (2Vcore) capabilities
Fully managed Native integration
Currently in public
service with Azure services
preview
Whether you’re looking to migrate to IaaS or PaaS or deploy on a hybrid platform, Azure SQL has Cloud migration effort and administration continuum
you covered. Azure SQL offers three core deployment options for moving your SQL Server
workloads to the cloud. The following diagram outlines which option will best meet your needs and
summarizes key differences in manageability.
Rebuild
Azure SQL Database
Do you need Do you need Platform-as-a-Service (PaaS)
Rehost
• Linked Integration features of SQL Server?
2008-2019? • Linked server Infrastructure-as-a-Service (IaaS)
Server to
to third-party • SQL Agent?
• Microsoft SQL? Higher administration Lower administration
DBMS?
Distributed • SSIS?
• Service
Broker Azure SQL gives you cloud database options that
meet your needs
Yes Yes No Yes
• Lift-and-shift your SQL workloads to SQL Server on
Azure VMs with ease and maintain them with 100%
SQL Server compatibility and operating system-level
SQL Server Azure SQL access.
on Azure VMs Managed Instance Azure SQL Database
• Modernize your existing SQL Server applications at
scale on a fully managed Azure SQL Managed
Instance.
• Build modern cloud applications on the intelligent,
managed Azure SQL Database that includes
serverless compute.
23
Azure SQL Managed Instance vs SQL Server on AWS RDS SQL Server on Azure VM vs SQL Server on AWS EC2
MSOLTPE Benchmark Transactional Field Test Benchmark
April 2022 April 2022
$198,45 $96,68
$66,34
Price/Transactions
per second (tps)
Price/Transaction
$13,14
Price performance comparison. Lower is better. Price performance comparison. Lower is better.
Includes Azure Hybrid Benefit Includes Azure Hybrid Benefit and 3-yr commitment
Customer challenge Key features Azure differentiators
I want to be able to store, process, and Streaming capability using the Deploy and manage across a large
analyze data at the edge to overcome same constructs as Azure Stream number of edge devices via Azure
latency and security concerns. Analytics IoT Hub and the Azure Portal
Built-in machine learning Store, process, and analyze
capabilities through ONNX runtime relational and non-relational, such
Solution Familiar Transact-SQL (T-SQL) as JSON and time-series, data
Azure SQL Edge is a containerized SQL programming surface area
database engine optimized for IoT with
data streaming, time series, and ML Native integration with other Azure
capabilities built-in. services such as Azure Machine
Learning, and Azure SQL
Unified
Always current As-a-Service Elastic scale
management
“I really like the SQL version control, which helps reduce the
time that senior administrators must spend upgrading all
Unified management
those different versions.” Gain a single view of your
Kristina Melo, IT Manager, Ferguson Enterprises data across on-premises and
cloud environments
Maximize existing investments in on-premises licenses with
Azure Hybrid Benefit discounted rates on Azure SQL Database. Save up to 59% vs. AWS.
Get free extended security updates for SQL Server 2012 and 2012
Extended Security Updates R2 for three years when running on Azure Virtual Machines.
Azure Hybrid Benefit for SQL Server
Azure-only benefit for customers with active SA or subscriptions on SQL cores
$3,967.91 $1,777.91
However, cores can be used on-premises and in Azure
Without Hybrid Benefit With Hybrid Benefit
simultaneously for up to 180 days, to allow for migration
Qualified license Azure Data Service1 Ratio of cores : vCores
Azure SQL Database (Managed Instance, Elastic Pool and Single Database) – General
1 Core License : 4 vCores
Purpose
Azure SQL Database (Managed Instance, Elastic Pool and Single Database) – Business
1 Core License : 1 vCore
Critical
SQL Server Azure SQL Database (Managed Instance and Single Database) - Hyperscale 1 Core License : 4 vCores
Enterprise (core)
Azure Data Factory and SQL Server Integration Services (Standard) 1 Core License : 4 vCore
Azure Data Factory and SQL Server Integration Services (Enterprise) 1 Core License : 1 vCore
SQL Server Standard Virtual Machines 1 Core License2 : 4 vCPU
SQL Server Enterprise Virtual Machines 1 Core License : 1 vCPU
Azure SQL Database (Managed Instance, Elastic Pool and Single Database) – General
1 Core License : 1 vCore
Purpose
Azure SQL Database (Managed Instance, Elastic Pool and Single Database) –
4 Core License : 1 vCore
Business Critical
SQL Server Standard Azure SQL Database (Managed Instance and Single Database) – Hyperscale 1 Core License : 1 vCore
(core)
Azure Data Factory SQL Server Integration Services (Standard) 1 Core License : 1 vCore
Azure Data Factory SQL Server Integration Services (Enterprise) 4 Core License : 1 vCore
SQL Server Standard Virtual Machines 1 Core License : 1 vCPU
SQL Server Enterprise Virtual Machines 4 Core License : 1 vCPU
1. Azure Hybrid Benefit is not available in the serverless compute tier of Azure SQL Database
2. Subject to a minimum of four Core Licenses per Virtual Machine
Centrally-managed Azure Hybrid Benefit
Customer procurement role purchases Admin assigns AHB licenses at overall account Customer enjoys system-
WS/SQL SA and subscriptions with and subscription levels. optimized cost savings by
Azure Hybrid Benefit (AHB). using AHB instead of PAYG
Resource Group
SQL SQL
VM VM VM VM VM
DB DB
SQL Server Developer Edition
here
Visual Studio Subscriptions No Microsoft software charges on Virtual Machines! Only on Azure!
HA/DR benefits for SQL Server only on Azure
Save on Azure by not needing to license the passive server
SA benefit with disaster recovery replica New SA benefit with two secondary replicas
Primary or Active Passive Secondary for HA or DR Primary or Active Passive Secondary for HA Passive Secondary for DR
Core Core
24 0 24 0 0
licenses licenses
Additional Additional
$30,756 $0 $30,756 $0 $0
cost cost
42
Cost Optimization New revenue models
divestitures
that has highest business
value with an acceptable cost
Optimize Strategic initiatives that and risk profile
are enabling innovation,
insights and artificial Optimize has best overall
intelligence value to IT (Platform
capabilities, Process
Lift & Shift Automation and reduced
security risk)
Existing Modernization has highest ROI
On-Prem
applications COST to business but also higher risk
and cost (development and
operations)
Azure Cloud Migration Cost Optimization Trajectory
...
Large scale migration strategy
On-premises
estate
Azure
Mainstream Continuous
Pilot
Migration improvement
SQL Server
Virtual Machine SQL Virtual Machine SQL Virtual Machine SQL
Special cases
if required to stay on prem
SQL Server
Azure Cosmos DB
90% +$30M
Cost savings on Azure SQL VMs vs
on-premises SQL Server
Lower cost of systems Additional revenue due to faster
administration time to market
1Results are based on interviewed customers. “The Economic Value of Migration On-premises SQL Server Instances to Microsoft Azure SQL Solutions,” a commissioned study conducted by The Enterprise Strategy
Group on behalf of Microsoft, October 2020.
Key report benefits
and findings1
25% 40% $10.9M
Increase in productivity Improvement in Savings from avoided
for IT teams productivity for in- hardware, network,
1Results are for a composite organization based on interviewed customers. “The Total Economic ImpactTM of Migration to Microsoft Azure SQL Managed Databases,” a commissioned study conducted by Forrester
Consulting on behalf of Microsoft, March 2020.
SQL SERVER MIGRATION TO AZURE
OUTCOMES TOOLS
Azure Database
Migration Service
Data Migration
Assistant (DMA)
(DMS)
Tools Matrix Overview
Tools Data Migration Azure Data Studio (SQL Azure Database Migration Azure Migrate
Assistant (DMA) Migration Extension (ADS) Service (DMS) (At Scale)
Capability ASSESS + MIGRATE ASSESS + MIGRATE MIGRATE DISCOVERY + ASSESS +
MIGRATE
Partners
Azure SQL family ESG Economic Value report on Infographic: Azure SQL family
SQL Server on Azure Virtual Machines migrating to Azure SQL
Azure SQL Jumpstart Guide
Azure SQL Managed Instance Principled Technologies price- Infographic: Forrester Consulting Total
Azure SQL Database performance study Economic ImpactTM study
Azure SQL Edge Forrester Consulting Total Economic
Choose Your Azure SQL database tool Impact™ study
• Auto and user-controlled BACKUP/RESTORE • Choose Edition for RTO and RPO
• Built-in HADR and read replicas requirements
• Database Availability
• Replication
• CDC (Preview in Azure DatabaseNEW)
• Database Consistency
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Auto backups and Point in Time Restore (PITR)
• Full Database backup once a week
Backups retained for 7/35 days
• Log Backups every 5-10 minutes
• Differential Backups every 12-24 hours Now
Time
-7 days
• Backup files on Azure storage with RA-GRS replicated
• Can optionally select LRS or ZRS
• Backup Integrity checks
Self-service restore
• Restore to new database to a point in time
• Long-term retention (up to 10 years) of backups
• Geo-restore of databases if primary region down
• Restore backups of deleted databases DB1 DB1
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
General Purpose High Availability
• Behaves like Failover Cluster Instance Azure Region
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Business Critical High Availability
• Based on Always On Availability Groups Azure Region
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Demo
Faster failovers with Business critical
Hyperscale High Availability
Read-Write Read-Only
• Paired page servers Compute
nodes
• Redundant log and data through
Azure Storage Primary
Compute
Secondary
Compute
Secondary
Compute
• Log Service feeds replicas Data Cache Data Cache Data Cache Landing Zone
(Azure Premium
Storage)
• 0 to 4 secondary replicas for read
Page Log Service
Servers
Log Cache
scale and failover Page Page Page
Long term log
storage for PITR
• Named replicas (Preview)NEW Server Server Server (Azure Standard
Storage)
RBPEX RBPEX RBPEX
• Automatic failover based on SQL and Data Cache Data Cache Data Cache
Service Fabric
• Recovery time depends on existence
Data Pathway
Data Data Data
File File File Log Pathway
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Zone redundancy – Business Critical
Azure Traffic Manager
AZ 1 AZ 2 AZ 3
• Replicas are automatically created Application
GW GW GW GW GW GW
across zones GW GW GW
• Synchronous replication
Control Ring Control Ring Control Ring
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Zone redundancy – General Purpose
Azure Traffic Manager
• Remote storage is zone redundant Control Ring Control Ring Control Ring
SSD, SSD,
• For pricing details visit the pricing pages tempdb tempdb
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Service tier Single Multiple Business continuity Service tier SLA
zone SLA zones SLA
Recovery point objective Business critical 5 sec
Basic, Standard, General 99.99% N/A (RPO) with Geo-DR
Purpose
Recovery Time Objective Business critical 30 sec
Premium, Business critical 99.99% 99.995% (RTO) with Geo-DR
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Active geo-replication vs auto-failover groups
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Active geo-replication vs auto-failover groups
Geo-replication Auto-failover groups
Azure Traffic Manager Azure Traffic Manager
User device End user User device End user
traffic traffic
Application
(read-write) Application
Read-write (read-write)
DB traffic listener
Application DB traffic
(read-only) Application
Read-only (read-only)
listener
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Availability Consistency
• •
• •
• •
• •
•
•
•
•
•
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
?
How it works Key questions
• •
• •
• •
• •
•
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Demo
Accelerated Database Recovery
✓ Decide if you need long-term backups
✓ Decide on your RTO and RPO needs
✓ Review the Azure SQL SLA
✓ Do you need read replicas?
✓ Do you need Availability Zones?
✓ Do you need geo HADR or Failover Groups?
✓ Is your application ready?
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Region and
Server Database Backup/Restore
Datacenter Replica Status Failover reasons
availability availability history
availability
Service Health
Az Module for
Dashboard and Resource Health Azure Monitor Log Analytics XEvent Catalog Views DMVs Azure CLI REST APIs
PowerShell
feeds
Custom
dashboards
Management Pack for Azure SQL
KQL
Database and Managed Instance
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Automated Backups with PITR
Overview Backup and restore Built-in HA/DR Availability and consistency Configuring and monitoring availability Summary
Microsoft Learn: Azure SQL fundamentals learning path
aka.ms/azuresqlfundamentals
Optimize price-
Streamline app Hyperscale demanding Save with the best total
performance with
modernization workloads cost of ownership
serverless compute
Accelerate app modernization Rapidly adapt to changing Build modern apps your way with Meet mission critical
with minimal code changes on the requirements with Hyperscale flexible compute options that requirements while costing up to
only cloud with evergreen SQL storage up to 100 TB include auto-scaling serverless. 86% less than the competition
Pay only for what you use.
Experience high
Save with the best total Rehost onto an industry- Protect your data and ease
performance on any
cost of ownership leading database maintenance
operating system
Pay up to 84% less than AWS Built on an enterprise-grade, High performance virtual Automatic security updates and
unified data platform machines for SQL Server on Linux built-in availability
and Windows
Get the performance, security, and analytics of SQL Server backed by the flexibility and hybrid connectivity of Azure
Azure SQL
Azure SQL Edge
Time series, data Native data movement Your choice Unparalleled Simplified
streaming and AI to Azure of platform performance & security pricing for IoT
Stream, store, and analyze IoT Consistent app development Run SQL on your choice of Flexible high availability and $10 per month/device or
data and apply business logic and management from cloud platform Including ARM 64 industry-leading data as low as $60 per year/device
using built-in AI & ML to data center to edge and x64 architecture protection and security tools for a 3-year commitment*.
capabilities
Optimized for IoT edge gateways and devices, this small-but-mighty SQL engine enables
real-time insights, in connected, disconnected, or hybrid environments