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

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
 

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)

PDF
Eric Moreau - Samedi SQL - Backup dans Azure et BD hybrides
MSDEVMTL
 
PDF
Be05 introduction to sql azure
DotNetCampus
 
PPTX
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
Christian Sanabria MSc, PMP, CSM
 
PDF
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
PPTX
Azure SQL Managed Instance - SqlBits 2019
Jovan Popovic
 
PPTX
Azure SQL Database & Azure SQL Data Warehouse
Mohamed Tawfik
 
PPTX
JoTechies - Azure SQL DB
JoTechies
 
PPTX
Microsoft Azure Offerings and New Services
Mohamed Tawfik
 
PPTX
Intro to Azure SQL database
Steve Knutson
 
PPTX
Azure intoduksjon for it pro 02 data protection public
Morgan Simonsen
 
PDF
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
Tobias Koprowski
 
PPTX
SQL Server 2014 Hybrid Cloud Features
Guillermo Caicedo
 
PDF
A to z for sql azure databases
Antonios Chatzipavlis
 
PPTX
Why you should(n't) run your databases in the cloud
Microsoft TechNet - Belgium and Luxembourg
 
PPTX
SQL Azure
Pavel Revenkov
 
PDF
Optimiser votre infrastructure SQL Server avec Azure
Swiss Data Forum Swiss Data Forum
 
PPTX
Protecting your online and on premises assets “Cloud Style”
Mike Martin
 
PPTX
Implement SQL Server on an Azure VM
James Serra
 
PDF
Azure SQL Database
rockplace
 
PPTX
Sql azure dec_2010 Lynn & Ike
Ike Ellis
 
Eric Moreau - Samedi SQL - Backup dans Azure et BD hybrides
MSDEVMTL
 
Be05 introduction to sql azure
DotNetCampus
 
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
Christian Sanabria MSc, PMP, CSM
 
Azure SQL Database for the SQL Server DBA - Azure Bootcamp Athens 2018
Antonios Chatzipavlis
 
Azure SQL Managed Instance - SqlBits 2019
Jovan Popovic
 
Azure SQL Database & Azure SQL Data Warehouse
Mohamed Tawfik
 
JoTechies - Azure SQL DB
JoTechies
 
Microsoft Azure Offerings and New Services
Mohamed Tawfik
 
Intro to Azure SQL database
Steve Knutson
 
Azure intoduksjon for it pro 02 data protection public
Morgan Simonsen
 
KoprowskiT_SQLRelayNottingham_BackupAndRestoreAD2015
Tobias Koprowski
 
SQL Server 2014 Hybrid Cloud Features
Guillermo Caicedo
 
A to z for sql azure databases
Antonios Chatzipavlis
 
Why you should(n't) run your databases in the cloud
Microsoft TechNet - Belgium and Luxembourg
 
SQL Azure
Pavel Revenkov
 
Optimiser votre infrastructure SQL Server avec Azure
Swiss Data Forum Swiss Data Forum
 
Protecting your online and on premises assets “Cloud Style”
Mike Martin
 
Implement SQL Server on an Azure VM
James Serra
 
Azure SQL Database
rockplace
 
Sql azure dec_2010 Lynn & Ike
Ike Ellis
 
Ad

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)

PPTX
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
PDF
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
PDF
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
PDF
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
PDF
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
PPTX
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
PDF
Data Retrieval and Preparation Business Analytics.pdf
kayserrakib80
 
PPTX
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
PDF
apidays Singapore 2025 - Trustworthy Generative AI: The Role of Observability...
apidays
 
PPTX
apidays Helsinki & North 2025 - Running a Successful API Program: Best Practi...
apidays
 
PDF
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
PPTX
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
PDF
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
PDF
Research Methodology Overview Introduction
ayeshagul29594
 
PDF
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
PPTX
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
PDF
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
PPTX
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
PPTX
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
PDF
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
OPPOTUS - Malaysias on Malaysia 1Q2025.pdf
Oppotus
 
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
Data Retrieval and Preparation Business Analytics.pdf
kayserrakib80
 
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
apidays Singapore 2025 - Trustworthy Generative AI: The Role of Observability...
apidays
 
apidays Helsinki & North 2025 - Running a Successful API Program: Best Practi...
apidays
 
apidays Singapore 2025 - Building a Federated Future, Alex Szomora (GSMA)
apidays
 
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
Research Methodology Overview Introduction
ayeshagul29594
 
OOPs with Java_unit2.pdf. sarthak bookkk
Sarthak964187
 
ER_Model_with_Diagrams_Presentation.pptx
dharaadhvaryu1992
 
Product Management in HealthTech (Case Studies from SnappDoctor)
Hamed Shams
 
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
apidays Munich 2025 - Building Telco-Aware Apps with Open Gateway APIs, Subhr...
apidays
 
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 

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