on-premises vm microsoft builds both sql server and microsoft azure thus it can provide end-to-end...

32
park the future. May 4 – 8, 2015 Chicago, IL

Upload: shanon-harrell

Post on 19-Dec-2015

217 views

Category:

Documents


2 download

TRANSCRIPT

Spark the future.

May 4 – 8, 2015Chicago, IL

SQL Server and Azure: Hybrid Scenarios and Features

Luis VargasSenior Program Manager

[email protected]

BRK2554

SQL Server integrates cloud services from Azureproviding end-to-end experiencesthat are optimized and use familiar interfaces

Key Takeaway

• Environment that combines resources from on-premise and cloud• Physical Machines• VMs• Storage• Domain Controllers• Databases

• SQL Server on-premise using cloud resources• SQL Server on cloud using on-premise resources

Hybrid Cloud

SQL Server & Hybrid Cloud

On-Premises

SQL Server on-premise using cloud resources

Cloud resources

Azure Storage• Unlimited storage• No data loss

• 3 local sync copies• Optionally: 3 remote async copies readable

• Highly available (automated disk healing)• Low cost: $0.02 p/GB/month

Azure VMs• VMs hosted in Azure• Created from Microsoft Gallery Images or your own Images

• SQL Server 2008R2/2012/2014 Web/Standard/Enterprise• Elastic: 1 core, 2 GB RAM, 1 TB data 32 cores, 512 GB RAM, 32 TB data• Highly available (automated VM healing)• Cost: $0.70 p/h for SQL Standard on 4-core, 8GB RAM VM

Accessing cloud resourcesOver the Internet

• Public endpoints• Free

Over a site-to-site VPN tunnel• VPN Device or Windows Server RRAS• Encrypted (IKE, AES)• ~10MB p/sec (600MB p/min, 35GB p/hour)• $0.19 p/hour

DemoStorage Accounts, VMs, and VPN tunnels

• Microsoft builds both SQL Server and Microsoft Azure Thus it can provide end-to-end experiences that are optimized and use familiar interfaces

SQL Server on-premise using cloud resources

Azure Storage

Backup to Azure Storage

On

Pre

mis

e

Data Files in Azure Storage

Optionally Managed Mic

rosoft A

zu

reSQL Server on-premise using cloud resources

SecondaryPrimary

AlwaysOnReplica in Azure VM

Backup to Windows Azure Storage

Azure VM

On-premise

• Unlimited low-cost storage• Off-site (compliance)• No device management• Media safety (geo-redundant)• Encrypted and compressed• Accessibility

• SSMS, T-SQL, PowerShell• Azure Portal, CloudExplorer

• Encryption• Certificates (AES256, AES128)

• Compression

Backup

Restore

Restore

• Databases can be backed up to Azure Storage• Full/Differential/Log (Max 1TB uncompressed)• Regular/Copy-Only

• Backups can be restored from on-premise or an Azure VM

Benefits

100 GB DB (compressed):Backup: 20 min, Restore: 1h

Recovery• Data

• Media failure or undesired action (e.g. DROP TABLE)• Restore to any on-premise SQL Server

• Cheap Disaster Recovery• Restore to an Azure VM and redirect applications

Dev/Test• Restore to an Azure VM and give access to developers

Backup to Windows Azure Storage - Scenarios

DemoBackup/Restore to/from Azure Storage

Support block blobs (besides page blobs)• 3x cheaper ($0.03 vs $0.09 p/GB)

Stripping• Divide a backup into multiple blobs• Allows backups larger than 1TB• Faster backup/restore (parallel I/O)

Backup to Windows Azure Storage - SQL Server 2016

BACKUP DATABASE <database> TO URL = 'https://<account>.blob.core.windows.net/<container>/<blob1>', URL = 'https://<account>.blob.core.windows.net/<container>/<blob2>‘…

Backup to Windows Azure Storage Tool

• Downloadable tool that allows backup to Azure Storage from previous versions of SQL Server

• Copies backups from local directories to Azure Storage

Benefits• Single backup strategy to cloud across SQL Server 2005, 2008, 2008 R2, 2012, and

2014• Provides backup encryption• Easy configuration

DemoBackup to Windows Azure Storage Tool

Managed Backup• Feature that automates SQL Server backups to Azure Storage based on workload• It also automates the backup retention (configurable)

Benefits• No need to define & manage backup policy

• Full Backup when log growth >1GB• Log backup when log growh > 5MB

• Ensures a consistent backup chain• Full backup taken if chain is broken

• Covers some/all DBs• Retries on errors (e.g. network)

• Unlimited low-cost storage• Off-site (compliance)• No device management• Media safety (geo-redundant)• Encrypted and compressed• Accessibility

• SSMS, T-SQL, PowerShell• Azure Portal, CloudExplorer

Plus same as before:

DemoEnable and trigger Managed Backup

Scheduling• Allow specifying when to take full backups and how often to take log backups

Staging• Keep a local copy of the last part of the backup chain

Managed Backup - SQL Server 2016

On-premise

Asynchronous copyFull backup

Log backup Log backup

Full backup

Log backup Log backup

Log backup Log backup

Log backup Log backup

Full backup

Data Files in Azure Storage

DB3COLD

On-Premise

DB1HOT

• Store historical/cold DBs/filegroups in Azure Storage• Secure access via Transparent DB Encryption• Read workloads optimized via Buffer Pool• DBs can be attached by another server or Azure VM (basic migration/recovery)

• Unlimited low-cost storage• Media safety (geo-redundant)• Accessibility/Programmability

• T-SQL, PowerShell• Azure Portal, CloudExplorer

• Encrypted and compressed

DB2HOT

Attach

Attac

h

• Encryption• TDE

• Compression

DemoStore data files in Azure Storage

AlwaysOn Replicas in Azure VMs• Extend AlwaysOn Availability Groups with replicas in Azure VMs

Benefits• Low TCO

• Just VM and Storage, free ingress traffic• No DR site cost (rent, hardware, ops)

• Any Azure region (America, Europe, Asia)• Azure Storage guarantees no data loss• Azure VM is highly available

Disaster Recovery• Manually failover to (warm) secondary replica

Offload work off the primary• Read workloads (Reporting, BI)• Backups (compliance)

Backup to Windows Azure Storage - Scenarios

Before extending AlwaysOn configurationConfigure site-to-site VPN tunnel between on-premise and Azure

Tutorial: http://msdn.microsoft.com/en-us/library/dn636917.aspx

AlwaysOn Replica in Azure - Sample Deployment

Windows Cluster

DemoAdding an AlwaysOn Replica in an Azure VM

Dealing with lots of data in Hybrid Cloud•Azure Import service

• Ship backups to Azure Storage via physical drives (max 4TB each)• Encrypted with BitLocker

• Recommended for backups larger than 1 TB

•Windows Azure Express Route service• Dedicated network link to an Azure data center

• Many providers (A&T, Equinix, Verizon, BT, Level3, ..)• Guaranteed high bandwidth (up to 10Gbps)• Recommended for workloads generating more than 20 MBPs

SQL Server on cloud using on-premise resources

SQL Server on cloud using on-premise resources•Provisioning an Azure VM with SQL Server

• Microsoft Gallery• SQL 2014 (Enterprise , Standard, Web, OLTP Optimized, DW Optimized)• SQL 2012 (Enterprise , Standard, Web, OLTP Optimized, DW Optimized)• SQL 2008 R2 (Enterprise, Standard, Web)

• Your own Images

•Migrating on-prem DBs to Azure• SQL Server Deployment Wizard

•Accesing on-premise resources (requires site-to-site VPN tunnel)

• Active Directory• Join VM to on-premise Windows Domain to use Windows logins and

policies • Other SQL Server(s)

• Configure Linked Servers

Questions?Luis Vargas

[email protected]

Visit Myignite at http://myignite.microsoft.com or download and use the Ignite Mobile App with the QR code above.

Please evaluate this sessionYour feedback is important to us!

© 2015 Microsoft Corporation. All rights reserved.