SlideShare a Scribd company logo
Backup and Restore
SQL Server Databases
in Microsoft Azure
Andrew McDermid and Pinal Dave
Please silence
cell phones
Silence Cells
Explore Everything PASS Has to Offer
FREE ONLINE WEBINAR EVENTS FREE 1-DAY LOCAL TRAINING EVENTS
LOCAL USER GROUPS
AROUND THE WORLD
ONLINE SPECIAL INTEREST
USER GROUPS
BUSINESS ANALYTICS TRAINING
VOLUNTEERING OPPORTUNITIES
PASS COMMUNITY NEWSLETTER
BA INSIGHTS NEWSLETTERFREE ONLINE RESOURCES
Session Evaluations
ways to access
Go to passSummit.com Download the GuideBook App
and search: PASS Summit 2016
Follow the QR code link displayed
on session signage throughout the
conference venue and in the
program guide
Submit by 5pm
Friday November 6th to
WIN prizes
Your feedback is
important and valuable. 3
Agenda
Is this where you want to be? In here we are talking about...
• SQL Server in Azure Virtual Machines
• SQL Server Database Backups in Azure Virtual Machines
• Azure Storage Accounts
SQL Server Azure VMs
6
SQL Server Azure VMs
7
Pinal Dave
SQL Authority
Pinal Dave is a technology enthusiast and an
independent consultant. He has authored 11 SQL
Server database books, 21 Pluralsight courses and
have written over 3800 articles on the database
technology on his blog at a
http://blog.sqlauthority.com. Along with 14+ years of
hands on experience he holds a Masters of Science
degree and a number of database certifications.
/pinaldave @sqlauthority
Andrew McDermid
Microsoft SQL DBA, Datavail
Corporation
Andy is a MCITP certified MS SQL DBA who delivers
and manages delivery of DBA services to many
diverse clients. He enjoys helping his clients by
finding and deploying pragmatic and practical
solutions for their database issues.
/andrewmcdermid @oldskipole
SQL Server Azure VMs
10
Log
512GB
Data
512GB
• 2 DISKS
• 1 SQL data
• 1 SQL logs
SQL Server Azure VMs
11
Log
512GB
Data
512GB
Backups
• 3 DISKS
• 1 SQL data
• 1 SQL logs
• 1 Backups
SQL Server Azure VMs
12
Log
512GB
Data
512GB
Backups
• 4 DISKS
• 1 SQL data
• 1 SQL logs
• 1 Backups
• 1 TempDB
TempDB
SQL Server Azure VMs
13
• Server Stats
• 4 CPU
• 14GB RAM
• 28GB D:
SQL Server Azure VMs
14
https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/
SizesforvirtualmachinesinAzure
SQL Server Azure VMs
15 https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/
SQL Server Azure VMs
https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/
DS3_V2
Standard
• 192 MB/sec
SQL Server Azure VMs
DS3_V2
Standard
• 192 MB/sec
• 8 Data Disk
https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/
SQL Server Azure VMs
18
Log
512GB
Data
512GB
• 2 DISKS
• 1 SQL data
• 1 SQL logs
SQL Server Azure VMs
19
Log
512GB
Data
512GB
Backups
• 3 DISKS
• 1 SQL data
• 1 SQL logs
• 1 Backups
Backup to URL
Demo
Backups to URL
21
• Azure Storage
Accounts
• Storage Account
Name
• Access Key
https://storageaccountname>.blob.core.windows.net
Azure
Storage Account
Backups to URL
22
Edwina
Container
sql_serv
SQLSrvr01-
InstncA
SQLDEV
• Azure Storage
Accounts
• Storage
Account Name
• Access Key
• Container
Name
https://storageaccountname>.blob.core.windows.net/<container name>
Backups to URL
23
• SQL CREDENTIAL
• Credential Name
• Identity = Storage Account
Name
• Password = Storage
Account Key
TO URL = ‘https://storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.bak’
WITH CREDENTIAL = ‘<sql credential name>’
SQL Server Azure VMs
24
Log
512GB
Data
512GB
Backups
• 2 DISKS
• 1 SQL data
• 1 SQL logs
SQL Server Azure VMs
25
Log
512GB
Data
512GB
• 4 DISKS
• 1 SQL data
• 1 SQL logs
• 6 unused
SQL Server Azure VMs
26
SQL Server Azure VMs
27
• PREMIUM DISK
• SSD
• Pay-for-capacity
• Dedicated I|O
• 500-5000 IOPS
• 100-200 MB/sec
P30
1TB
5000 IOPS
200 MB/s
P20
512GB
2300 IOPS
150 MB/s
P10
128GB
500 IOPS
100 MB/s
Premium
SQL Server Azure VMs
28
300MB/s
1TB
300MB/s
1TB
Log
46K IOPS
Data
46K IOPS
• 4 DISKS
• 2 SQL data
• 2 SQL logs
• 4 unused
P20
SQL Server Azure VMs
29
P20
P20
P20
P20
P20
50
100
150
200
250
300
350
400
MB/sec
192
MB/s
DS3_v2
Backups to URL – What You Need
30
• Azure Storage Account
• Storage Account Name+ Container Name
• Access Key
• SQL Server
• SQL Server 2014 SP1 CU2 (min)
• SQL Credential
• TSQL Backup and Restore TO | FROM URL WITH CREDENTIAL
• Free-up a disk(s) for whatever…
IOPS, MB/s, TempDB;
utility/trace/log files; etc
• Works with maintenance plans,
scripts, SQL Agent jobs, etc.
Pros Cons
• Not local
• Thru-put limits per VM size
• No striped backups
• 1TB backup file limit
Backups to URL – Pros and Cons
Backup to Local Drive
32
DATABASE
STRIPED BACKUP SET
TO DISK
Database.1.bak
Database.2.bak
Database.3.bak
Database.4.bak
Backup to Local Drive
Demo
Backup to Local Drive – What You Need
34
• Azure Storage Account
• Storage Account Name + Container Name
• Access Key
• SQL Server
• Any version
• TSQL Backup and Restore striped set TO | FROM URL
• AzCopy
• /Dest: /Source: /Pattern:
• Automation script
• 1TB + DB backups
• Fast(-ish) backups via striping
• Fast copy to azure storage via
AZCopy
Pro Con
• Local disk storage capacity limits
• Local MBsec limits
• Striped backup and offsite copy
management complexity
Backup to Local Drive – Pros and Cons
• Storage Account & Access Key
• Access Policy
• Shared Access Signature
Azure Storage Access and Security
36
Access and Security
37
Guess What Will Happen Next?
38
IfYear was 2006 - BEFORE
IfYear was 2016 - NOW
Access and Security - BEFORE
39
Access and Security - BEFORE
40
Access and Security - NOW
41
Access and Security - NOW
42
Shared Access Signature – What You Need
43
• CREATE SHARED ACCESS SIGNATURE WITH POWERSHELL
• Login to Azure Subscription
• Returns ‘CREATE CREDENTIAL‘ TSQL
https://msdn.microsoft.com/en-us/library/dn466430.aspx
Shared Access Signature – What You Get
44
• SQL CREDENTIAL
• Credential Name = URL
• Identity = “Shared Access
Signature”
• Password = SAS
URL
TO URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>1.bak’
URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.2.bak’
URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.3.bak’
URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.4.bak’
Container
Shared Access Signature – What You Get
45
DATABASE
2TB
STRIPED BACKUP TO
URL
Database.1.bak
Database.2.bak
Database.3.bak
Database.4.bak
Striped Backups to URL
Demo
Container
Shared Access Signature – What You Get
47
DATABASE
BACKUP TO URL
Database.bak
1TB Max Backup File Size
Container
Shared Access Signature – What You Get
48
DATABASE
STRIPED BACKUP TO
URL
Database.1.bak
Database.2.bak
Database.3.bak
Database.4.bak
12.8TB Max Backup File Size
Striped Backups to URL- What You Need
49
• Azure Storage Account
• Storage Account Name+ Container Name
• Access Key
• Shared Access Signature
• SQL Server
• SQL Server 2016
• SQL “SAS” Credential
• TSQL Backup and Restore striped set TO | FROM URL
• Speed
• VLDB (12.8TB - 64 stripes of up to
200GB each)
Pro Con
• SQL 2016 + only
• VLDB (12.8TB - 64 stripes of up to
200GB each)
Striped Backups to URL – Pros and Cons
Session Evaluations
ways to access
Go to passSummit.com Download the GuideBook App
and search: PASS Summit 2016
Follow the QR code link displayed
on session signage throughout the
conference venue and in the
program guide
Submit by 5pm
Friday November 6th to
WIN prizes
Your feedback is
important and valuable. 3
Thank You
Learn more from
Andy and Pinal
andy.mcdermid@datavail.com or follow @oldskipole
pinal.dave@sqlauthority.com or follow @pinaldave

More Related Content

PPTX
PASS VC: SQL Server Performance Monitoring and Baselining
PARIKSHIT SAVJANI
 
PPTX
SQL ON Azure (decision-matrix)
PARIKSHIT SAVJANI
 
PPTX
Oracle on Azure at Windows Azure Conference 2014
PARIKSHIT SAVJANI
 
PPTX
Nadzor sql a
Igor Puhalo
 
PPTX
All about Kerberos In Microsoft BI
PARIKSHIT SAVJANI
 
PPTX
Windows Azure Blob Storage
ylew15
 
PDF
Mongo db world 2014 nyc mongodb on azure - tips tricks and examples
Brian Benz
 
PDF
KoprowskiT_SQLAzureLandingInBelfast
Tobias Koprowski
 
PASS VC: SQL Server Performance Monitoring and Baselining
PARIKSHIT SAVJANI
 
SQL ON Azure (decision-matrix)
PARIKSHIT SAVJANI
 
Oracle on Azure at Windows Azure Conference 2014
PARIKSHIT SAVJANI
 
Nadzor sql a
Igor Puhalo
 
All about Kerberos In Microsoft BI
PARIKSHIT SAVJANI
 
Windows Azure Blob Storage
ylew15
 
Mongo db world 2014 nyc mongodb on azure - tips tricks and examples
Brian Benz
 
KoprowskiT_SQLAzureLandingInBelfast
Tobias Koprowski
 

What's hot (20)

PDF
How to backup Oracle Database to Dropbox, Windows Azure, Amazon S3, and local...
Adeline Wong
 
PDF
Tech Ed North America 2014 - Java on Azure
Brian Benz
 
PDF
Tech ED 2014 Running Oracle Databases and Application Servers on Azurev1
Brian Benz
 
PPTX
Setting Up SharePoint 2013 on Windows Azure Infrastructure as a Service - SPS...
Zachary Millis
 
PPTX
Lessons from the Field: Setting up SharePoint on Azure
Zachary Millis
 
PPTX
Azure Storage Performance
Anton Boyko
 
PPTX
SQL Azure Overview
Chandana Athauda
 
PPTX
Sql Server 2014 Hybrid Cloud
BT Akademi
 
PPTX
Windows Azure Camps - Oktober 2012
Einar Ingebrigtsen
 
PDF
Cool MariaDB Plugins
Colin Charles
 
PPTX
SSIS Monitoring Deep Dive
Davide Mauri
 
PDF
SQL Server 2019 CTP 2.5
Gianluca Hotz
 
PPTX
Google cloud platform (for those who know Microsoft Azure)
Alexander Galkin
 
PPTX
Mini training - Introduction to Microsoft Azure Storage
Betclic Everest Group Tech Team
 
PPTX
Diving into sql server 2016
Mohamed Zaatar - MSc
 
PDF
Building better SQL Server Databases
ColdFusionConference
 
PDF
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Colin Charles
 
PPTX
Integration with Oracle Database Gateway
Inam Bukhary
 
PDF
Play 2.0
elizhender
 
PPTX
Inside Azure Diagnostics (DevLink 2014)
Michael Collier
 
How to backup Oracle Database to Dropbox, Windows Azure, Amazon S3, and local...
Adeline Wong
 
Tech Ed North America 2014 - Java on Azure
Brian Benz
 
Tech ED 2014 Running Oracle Databases and Application Servers on Azurev1
Brian Benz
 
Setting Up SharePoint 2013 on Windows Azure Infrastructure as a Service - SPS...
Zachary Millis
 
Lessons from the Field: Setting up SharePoint on Azure
Zachary Millis
 
Azure Storage Performance
Anton Boyko
 
SQL Azure Overview
Chandana Athauda
 
Sql Server 2014 Hybrid Cloud
BT Akademi
 
Windows Azure Camps - Oktober 2012
Einar Ingebrigtsen
 
Cool MariaDB Plugins
Colin Charles
 
SSIS Monitoring Deep Dive
Davide Mauri
 
SQL Server 2019 CTP 2.5
Gianluca Hotz
 
Google cloud platform (for those who know Microsoft Azure)
Alexander Galkin
 
Mini training - Introduction to Microsoft Azure Storage
Betclic Everest Group Tech Team
 
Diving into sql server 2016
Mohamed Zaatar - MSc
 
Building better SQL Server Databases
ColdFusionConference
 
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Colin Charles
 
Integration with Oracle Database Gateway
Inam Bukhary
 
Play 2.0
elizhender
 
Inside Azure Diagnostics (DevLink 2014)
Michael Collier
 
Ad

Viewers also liked (14)

PDF
Basic powershell scripts
MOHD TAHIR
 
PPTX
Windows storemindcrcaker23rdmarch
Dhananjay Kumar
 
DOCX
Salmon
ebanreb07
 
PPTX
quản trị CSDL với SQL
Cuội Chú
 
PPTX
Building Cross Platform Mobile Apps
Shailendra Chauhan
 
PPTX
AngularJS - Architecture decisions in a large project 
Elad Hirsch
 
PPTX
Step by Step - AngularJS
Infragistics
 
PPTX
SQL Server - Full text search
Peter Gfader
 
PPTX
Web Applications Development with MEAN Stack
Shailendra Chauhan
 
PDF
ASP.NET MVC Interview Questions and Answers by Shailendra Chauhan
Shailendra Chauhan
 
PPTX
Node.js and express
Sunny Sharma
 
PPTX
Typescript Fundamentals
Sunny Sharma
 
PPTX
Real Time Data Visualization using asp.net / SignalR + D3.js
Sunny Sharma
 
Basic powershell scripts
MOHD TAHIR
 
Windows storemindcrcaker23rdmarch
Dhananjay Kumar
 
Salmon
ebanreb07
 
quản trị CSDL với SQL
Cuội Chú
 
Building Cross Platform Mobile Apps
Shailendra Chauhan
 
AngularJS - Architecture decisions in a large project 
Elad Hirsch
 
Step by Step - AngularJS
Infragistics
 
SQL Server - Full text search
Peter Gfader
 
Web Applications Development with MEAN Stack
Shailendra Chauhan
 
ASP.NET MVC Interview Questions and Answers by Shailendra Chauhan
Shailendra Chauhan
 
Node.js and express
Sunny Sharma
 
Typescript Fundamentals
Sunny Sharma
 
Real Time Data Visualization using asp.net / SignalR + D3.js
Sunny Sharma
 
Ad

Similar to Backup and Restore SQL Server Databases in Microsoft Azure (20)

PPTX
Implement SQL Server on an Azure VM
James Serra
 
PDF
A to z for sql azure databases
Antonios Chatzipavlis
 
PPTX
Taking SharePoint to the Cloud
Aaron Saikovski
 
PDF
Azure-Backup-Presentation-Chico-7-22-2019-1.pdf
bhavyanm2
 
PDF
May 2018 Azure Need to Know Webinar
Robert Crane
 
PPTX
Sql Start! 2020 - SQL Server Lift & Shift su Azure
Marco Obinu
 
PPTX
Should I move my database to the cloud?
James Serra
 
PPT
Implementing SharePoint on Azure, Lessons Learnt from a Real World Project
K.Mohamed Faizal
 
PPTX
SharePoint 2013 on Azure: Your Dedicated Farm in the Cloud
Jamie McAllister
 
PPTX
Migrare Applicazioni Web su Azure
Marco Parenzan
 
PDF
KoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloud
Tobias Koprowski
 
PPTX
2014.10.22 Building Azure Solutions with Office 365
Marco Parenzan
 
PDF
Azure Nights August2017
Michael Frank
 
PPTX
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
serge luca
 
PPTX
TDC2016POA | Trilha Cloud Computing - Microsoft Azure ? From Zero To Hero!
tdc-globalcode
 
PPTX
More Cache for Less Cash
Michael Collier
 
PDF
Samedi SQL Québec - Database Backup & copy to Azure par Eric Moreau
MSDEVMTL
 
PDF
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
Polish SQL Server User Group
 
PDF
J1 T1 3 - Azure Data Lake store & analytics 101 - Kenneth M. Nielsen
MS Cloud Summit
 
PDF
CCI2017 - Considerations for Migrating Databases to Azure - Gianluca Sartori
walk2talk srl
 
Implement SQL Server on an Azure VM
James Serra
 
A to z for sql azure databases
Antonios Chatzipavlis
 
Taking SharePoint to the Cloud
Aaron Saikovski
 
Azure-Backup-Presentation-Chico-7-22-2019-1.pdf
bhavyanm2
 
May 2018 Azure Need to Know Webinar
Robert Crane
 
Sql Start! 2020 - SQL Server Lift & Shift su Azure
Marco Obinu
 
Should I move my database to the cloud?
James Serra
 
Implementing SharePoint on Azure, Lessons Learnt from a Real World Project
K.Mohamed Faizal
 
SharePoint 2013 on Azure: Your Dedicated Farm in the Cloud
Jamie McAllister
 
Migrare Applicazioni Web su Azure
Marco Parenzan
 
KoprowskiT_SQLRelay2014#8_Birmingham_FromPlanToBackupToCloud
Tobias Koprowski
 
2014.10.22 Building Azure Solutions with Office 365
Marco Parenzan
 
Azure Nights August2017
Michael Frank
 
Unbreakable SharePoint 2016 with SQL Server 2016 Always On Availability groups
serge luca
 
TDC2016POA | Trilha Cloud Computing - Microsoft Azure ? From Zero To Hero!
tdc-globalcode
 
More Cache for Less Cash
Michael Collier
 
Samedi SQL Québec - Database Backup & copy to Azure par Eric Moreau
MSDEVMTL
 
SQLDay2013_Denny Cherry - SQLServer2012inaHighlyAvailableWorld
Polish SQL Server User Group
 
J1 T1 3 - Azure Data Lake store & analytics 101 - Kenneth M. Nielsen
MS Cloud Summit
 
CCI2017 - Considerations for Migrating Databases to Azure - Gianluca Sartori
walk2talk srl
 

More from Datavail (20)

PPTX
Journey to Cloud Analytics
Datavail
 
PPTX
Accelerate SQL Server Migration to the AWS Cloud
Datavail
 
PPTX
MOUS 2020 - Hyperion 11.2 vs. Cloud: Should I Stay or Should I Go?
Datavail
 
PPTX
Oracle Enterprise Manager Seven Robust Features to Put in Action final
Datavail
 
PPTX
Lessons from Migrating Oracle Databases to Amazon RDS or Amazon Aurora
Datavail
 
PPTX
EPM 11.2: Lessons Learned and 2021 Preparedness
Datavail
 
PDF
Optimizing Oracle Databases & Applications Gives Fast Food Giant Major Gains
Datavail
 
PPTX
RMOUG 2020: Keeping Pace with Change
Datavail
 
PPTX
Upcoming Extended Support Deadlines & What They Mean for You
Datavail
 
PPTX
SQL on Linux
Datavail
 
PPTX
Reduce Cost by Tuning Queries on Azure DBaaS
Datavail
 
PPTX
MOUS 2019 - Keeping Pace with Change: Prepare for Tomorrow & Advance Your Car...
Datavail
 
PPTX
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
Datavail
 
PPTX
Is "Free" Good Enough for Your MySQL Environment?
Datavail
 
PPTX
Critical Preflight Checks for Your EPM Applications
Datavail
 
PPTX
SQL to Azure Migrations
Datavail
 
PPTX
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
Datavail
 
PPTX
3 Ways to Lead an Accidental DBA
Datavail
 
PPTX
Creating a Solid EPM Punch List
Datavail
 
PPTX
Why NBC Universal Migrated to MongoDB Atlas
Datavail
 
Journey to Cloud Analytics
Datavail
 
Accelerate SQL Server Migration to the AWS Cloud
Datavail
 
MOUS 2020 - Hyperion 11.2 vs. Cloud: Should I Stay or Should I Go?
Datavail
 
Oracle Enterprise Manager Seven Robust Features to Put in Action final
Datavail
 
Lessons from Migrating Oracle Databases to Amazon RDS or Amazon Aurora
Datavail
 
EPM 11.2: Lessons Learned and 2021 Preparedness
Datavail
 
Optimizing Oracle Databases & Applications Gives Fast Food Giant Major Gains
Datavail
 
RMOUG 2020: Keeping Pace with Change
Datavail
 
Upcoming Extended Support Deadlines & What They Mean for You
Datavail
 
SQL on Linux
Datavail
 
Reduce Cost by Tuning Queries on Azure DBaaS
Datavail
 
MOUS 2019 - Keeping Pace with Change: Prepare for Tomorrow & Advance Your Car...
Datavail
 
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
Datavail
 
Is "Free" Good Enough for Your MySQL Environment?
Datavail
 
Critical Preflight Checks for Your EPM Applications
Datavail
 
SQL to Azure Migrations
Datavail
 
Essbase On-Prem to Oracle Analytics Cloud - How, When, and Why
Datavail
 
3 Ways to Lead an Accidental DBA
Datavail
 
Creating a Solid EPM Punch List
Datavail
 
Why NBC Universal Migrated to MongoDB Atlas
Datavail
 

Recently uploaded (20)

PDF
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
PPTX
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
PPTX
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
PPTX
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
PDF
blockchain123456789012345678901234567890
tanvikhunt1003
 
PPTX
Probability systematic sampling methods.pptx
PrakashRajput19
 
PDF
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
PPTX
Employee Salary Presentation.l based on data science collection of data
barridevakumari2004
 
PPT
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
PDF
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
PPTX
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
PDF
Chad Readey - An Independent Thinker
Chad Readey
 
PDF
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
PDF
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
PDF
Linux OS guide to know, operate. Linux Filesystem, command, users and system
Kiran Maharjan
 
PPTX
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
PDF
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
PDF
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
PPT
2009worlddatasheet_presentation.ppt peoole
umutunsalnsl4402
 
PPTX
Data Security Breach: Immediate Action Plan
varmabhuvan266
 
D9110.pdfdsfvsdfvsdfvsdfvfvfsvfsvffsdfvsdfvsd
minhn6673
 
Data-Driven Machine Learning for Rail Infrastructure Health Monitoring
Sione Palu
 
World-population.pptx fire bunberbpeople
umutunsalnsl4402
 
Web dev -ppt that helps us understand web technology
shubhragoyal12
 
blockchain123456789012345678901234567890
tanvikhunt1003
 
Probability systematic sampling methods.pptx
PrakashRajput19
 
Research about a FoodFolio app for personalized dietary tracking and health o...
AustinLiamAndres
 
Employee Salary Presentation.l based on data science collection of data
barridevakumari2004
 
Real Life Application of Set theory, Relations and Functions
manavparmar205
 
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
IP_Journal_Articles_2025IP_Journal_Articles_2025
mishell212144
 
Chad Readey - An Independent Thinker
Chad Readey
 
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
Linux OS guide to know, operate. Linux Filesystem, command, users and system
Kiran Maharjan
 
lecture 13 mind test academy it skills.pptx
ggesjmrasoolpark
 
202501214233242351219 QASS Session 2.pdf
lauramejiamillan
 
717629748-Databricks-Certified-Data-Engineer-Professional-Dumps-by-Ball-21-03...
pedelli41
 
2009worlddatasheet_presentation.ppt peoole
umutunsalnsl4402
 
Data Security Breach: Immediate Action Plan
varmabhuvan266
 

Backup and Restore SQL Server Databases in Microsoft Azure

  • 1. Backup and Restore SQL Server Databases in Microsoft Azure Andrew McDermid and Pinal Dave
  • 3. Explore Everything PASS Has to Offer FREE ONLINE WEBINAR EVENTS FREE 1-DAY LOCAL TRAINING EVENTS LOCAL USER GROUPS AROUND THE WORLD ONLINE SPECIAL INTEREST USER GROUPS BUSINESS ANALYTICS TRAINING VOLUNTEERING OPPORTUNITIES PASS COMMUNITY NEWSLETTER BA INSIGHTS NEWSLETTERFREE ONLINE RESOURCES
  • 4. Session Evaluations ways to access Go to passSummit.com Download the GuideBook App and search: PASS Summit 2016 Follow the QR code link displayed on session signage throughout the conference venue and in the program guide Submit by 5pm Friday November 6th to WIN prizes Your feedback is important and valuable. 3
  • 5. Agenda Is this where you want to be? In here we are talking about... • SQL Server in Azure Virtual Machines • SQL Server Database Backups in Azure Virtual Machines • Azure Storage Accounts
  • 8. Pinal Dave SQL Authority Pinal Dave is a technology enthusiast and an independent consultant. He has authored 11 SQL Server database books, 21 Pluralsight courses and have written over 3800 articles on the database technology on his blog at a http://blog.sqlauthority.com. Along with 14+ years of hands on experience he holds a Masters of Science degree and a number of database certifications. /pinaldave @sqlauthority
  • 9. Andrew McDermid Microsoft SQL DBA, Datavail Corporation Andy is a MCITP certified MS SQL DBA who delivers and manages delivery of DBA services to many diverse clients. He enjoys helping his clients by finding and deploying pragmatic and practical solutions for their database issues. /andrewmcdermid @oldskipole
  • 10. SQL Server Azure VMs 10 Log 512GB Data 512GB • 2 DISKS • 1 SQL data • 1 SQL logs
  • 11. SQL Server Azure VMs 11 Log 512GB Data 512GB Backups • 3 DISKS • 1 SQL data • 1 SQL logs • 1 Backups
  • 12. SQL Server Azure VMs 12 Log 512GB Data 512GB Backups • 4 DISKS • 1 SQL data • 1 SQL logs • 1 Backups • 1 TempDB TempDB
  • 13. SQL Server Azure VMs 13 • Server Stats • 4 CPU • 14GB RAM • 28GB D:
  • 14. SQL Server Azure VMs 14 https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/ SizesforvirtualmachinesinAzure
  • 15. SQL Server Azure VMs 15 https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/
  • 16. SQL Server Azure VMs https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/ DS3_V2 Standard • 192 MB/sec
  • 17. SQL Server Azure VMs DS3_V2 Standard • 192 MB/sec • 8 Data Disk https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-sizes/
  • 18. SQL Server Azure VMs 18 Log 512GB Data 512GB • 2 DISKS • 1 SQL data • 1 SQL logs
  • 19. SQL Server Azure VMs 19 Log 512GB Data 512GB Backups • 3 DISKS • 1 SQL data • 1 SQL logs • 1 Backups
  • 21. Backups to URL 21 • Azure Storage Accounts • Storage Account Name • Access Key https://storageaccountname>.blob.core.windows.net Azure Storage Account
  • 22. Backups to URL 22 Edwina Container sql_serv SQLSrvr01- InstncA SQLDEV • Azure Storage Accounts • Storage Account Name • Access Key • Container Name https://storageaccountname>.blob.core.windows.net/<container name>
  • 23. Backups to URL 23 • SQL CREDENTIAL • Credential Name • Identity = Storage Account Name • Password = Storage Account Key TO URL = ‘https://storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.bak’ WITH CREDENTIAL = ‘<sql credential name>’
  • 24. SQL Server Azure VMs 24 Log 512GB Data 512GB Backups • 2 DISKS • 1 SQL data • 1 SQL logs
  • 25. SQL Server Azure VMs 25 Log 512GB Data 512GB • 4 DISKS • 1 SQL data • 1 SQL logs • 6 unused
  • 27. SQL Server Azure VMs 27 • PREMIUM DISK • SSD • Pay-for-capacity • Dedicated I|O • 500-5000 IOPS • 100-200 MB/sec P30 1TB 5000 IOPS 200 MB/s P20 512GB 2300 IOPS 150 MB/s P10 128GB 500 IOPS 100 MB/s Premium
  • 28. SQL Server Azure VMs 28 300MB/s 1TB 300MB/s 1TB Log 46K IOPS Data 46K IOPS • 4 DISKS • 2 SQL data • 2 SQL logs • 4 unused
  • 29. P20 SQL Server Azure VMs 29 P20 P20 P20 P20 P20 50 100 150 200 250 300 350 400 MB/sec 192 MB/s DS3_v2
  • 30. Backups to URL – What You Need 30 • Azure Storage Account • Storage Account Name+ Container Name • Access Key • SQL Server • SQL Server 2014 SP1 CU2 (min) • SQL Credential • TSQL Backup and Restore TO | FROM URL WITH CREDENTIAL
  • 31. • Free-up a disk(s) for whatever… IOPS, MB/s, TempDB; utility/trace/log files; etc • Works with maintenance plans, scripts, SQL Agent jobs, etc. Pros Cons • Not local • Thru-put limits per VM size • No striped backups • 1TB backup file limit Backups to URL – Pros and Cons
  • 32. Backup to Local Drive 32 DATABASE STRIPED BACKUP SET TO DISK Database.1.bak Database.2.bak Database.3.bak Database.4.bak
  • 33. Backup to Local Drive Demo
  • 34. Backup to Local Drive – What You Need 34 • Azure Storage Account • Storage Account Name + Container Name • Access Key • SQL Server • Any version • TSQL Backup and Restore striped set TO | FROM URL • AzCopy • /Dest: /Source: /Pattern: • Automation script
  • 35. • 1TB + DB backups • Fast(-ish) backups via striping • Fast copy to azure storage via AZCopy Pro Con • Local disk storage capacity limits • Local MBsec limits • Striped backup and offsite copy management complexity Backup to Local Drive – Pros and Cons
  • 36. • Storage Account & Access Key • Access Policy • Shared Access Signature Azure Storage Access and Security 36
  • 38. Guess What Will Happen Next? 38 IfYear was 2006 - BEFORE IfYear was 2016 - NOW
  • 39. Access and Security - BEFORE 39
  • 40. Access and Security - BEFORE 40
  • 43. Shared Access Signature – What You Need 43 • CREATE SHARED ACCESS SIGNATURE WITH POWERSHELL • Login to Azure Subscription • Returns ‘CREATE CREDENTIAL‘ TSQL https://msdn.microsoft.com/en-us/library/dn466430.aspx
  • 44. Shared Access Signature – What You Get 44 • SQL CREDENTIAL • Credential Name = URL • Identity = “Shared Access Signature” • Password = SAS URL TO URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>1.bak’ URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.2.bak’ URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.3.bak’ URL = ‘https://<storageaccountname>.blob.core.windows.net/<container name>/<backupfilename>.4.bak’
  • 45. Container Shared Access Signature – What You Get 45 DATABASE 2TB STRIPED BACKUP TO URL Database.1.bak Database.2.bak Database.3.bak Database.4.bak
  • 46. Striped Backups to URL Demo
  • 47. Container Shared Access Signature – What You Get 47 DATABASE BACKUP TO URL Database.bak 1TB Max Backup File Size
  • 48. Container Shared Access Signature – What You Get 48 DATABASE STRIPED BACKUP TO URL Database.1.bak Database.2.bak Database.3.bak Database.4.bak 12.8TB Max Backup File Size
  • 49. Striped Backups to URL- What You Need 49 • Azure Storage Account • Storage Account Name+ Container Name • Access Key • Shared Access Signature • SQL Server • SQL Server 2016 • SQL “SAS” Credential • TSQL Backup and Restore striped set TO | FROM URL
  • 50. • Speed • VLDB (12.8TB - 64 stripes of up to 200GB each) Pro Con • SQL 2016 + only • VLDB (12.8TB - 64 stripes of up to 200GB each) Striped Backups to URL – Pros and Cons
  • 51. Session Evaluations ways to access Go to passSummit.com Download the GuideBook App and search: PASS Summit 2016 Follow the QR code link displayed on session signage throughout the conference venue and in the program guide Submit by 5pm Friday November 6th to WIN prizes Your feedback is important and valuable. 3
  • 52. Thank You Learn more from Andy and Pinal [email protected] or follow @oldskipole [email protected] or follow @pinaldave