Disaster recovery per tutti!
SQL Server ed Azure
Marco Obinu
Explore your
PASS
community
Free online
webinar events
Connect with the global
data community
Local user groups
around the world
Online special
interest user groups
Learning on-demand
and delivered to you
Get involved
Own your career with interactive learning built
by community and guided by data experts.
Get involved. Get ahead.
.org
Missed PASS Summit 2019?
Get the Recordings
Download all PASS Summit sessions on
Data Management, Analytics, or
Architecture for only $399 USD
More options available at
PASSstuff.com
We are covering all bases to ensure our community can continue reaching new and exciting heights. Plans
are underway for the in-person event you all know and love along with a new venture, a new opportunity:
a PASS Summit 2020 Virtual Event.
Find out more at PASS.org/summit
Thank you to
our Global
Sponsors and
Supporters
Thank you to
our Local
Sponsors and
Supporters
This event was sponsored by Microsoft
Learn more about SQL Server 2019 today:
-Get free training: aka.ms/sqlworkshops
-Download the SQL19 eBook: aka.ms/sql19_ebook
Marco Obinu
Advisory Engineer
SoftJam S.p.A.
@OmegaMadLab
marco.obinu@omegamadlab.com
http://www.omegamadlab.com
https://github.com/OmegaMadLab
https://www.linkedin.com/in/marco-obinu-omegamadlab/
https://www.youtube.com/channel/UCpkBeQSscC1iBvpNP4VNTKQ
• Geek to the bone 
• Azure Solution Architect Expert
Who am I?
Concetti di base
Un po’ di terminologia…
Dati persi Tempo di ripristino
Interruzione di
servizio
RPO RTO
RTO - RPO
COSTI - COMPLESSITÀ
Perché utilizzare Azure come sito di DR?
Costi Benefici
Microsoft Azure
Nuove
tecnologie
Microsoft
Azure
Perché utilizzare Azure come sito di DR?
Ma quanto ci costa a livello di licenze?
SQL 2017 (SA)
SQL 2019 (SA)
Infrastructure-as-a-Service model
MANAGEDBYVENDOR
MANAGEDBYVENDOR
MANAGEDBY
VENDOR
APPLICATION
HYPERVISOR
OS
RUNTIME
DATA
STORAGE
NETWORK
TRADITIONAL IT
APPLICATION
HYPERVISOR
OS
RUNTIME
DATA
STORAGE
NETWORK
IaaS
YOUMANAGE
SERVERS SERVERS
APPLICATION
HYPERVISOR
OS
RUNTIME
DATA
STORAGE
NETWORK
PaaS
YOUMANAGE
SERVERS
APPLICATION
HYPERVISOR
OS
RUNTIME
DATA
STORAGE
NETWORK
SaaS
SERVERS
YOUMANAGE
SQL Server
on IaaS VM
Principali tecnologie native per il DR di SQL
Backup su storage account
On-prem datacenter
Supported Version/Edition
Recovery Model
Complexity
RTO
RPO
Data access on DR site
Log shipping
On-prem datacenter
Supported Version/Edition
Recovery Model
Complexity
RTO
RPO
Data access on DR site
Mirroring
On-prem datacenter
Supported Version/Edition
Recovery Model
Complexity
RTO
RPO
Data access on DR site
On-prem datacenter
Always On Availability Group
Supported Version/Edition
Recovery Model
Complexity
RTO
RPO
Data access on DR site
Anatomia di Always On AG
network subnet
AG Listener
VNN IP
On-prem network
VNN IP
Cluster quorum
Vote = 1
Node 1
Cluster UP
Vote = 1
Node 2
Cluster UP
Vote = 1
Node 3
Cluster UP
Vote = 1
Node 1
Cluster DOWN
Azure networkOn-prem network
Anatomia di Always On AG
VNN IP2IP1
AG Listener
VNN IP2IP1
Azure networking for clusters
Cluster Node
IP
Cluster IP
resource
IP
Cluster Node
IP
Cluster IP
resource
IP
On-premises Azure
Azure networking for clusters
Cluster Node
IP
Cluster IP
resource
IP
Cluster Node
IP
Cluster IP
resource
IP
On-premises Azure
Azure Load
Balancer
Azure vnet
Always On AG – come funziona il failover?
On-prem network
Users Reports
Read-onlyRead-only
Always On Distributed AG (SQL2016+)
Azure vnetOn-prem network
WSFC1 WSFC2
Distributed Availability Group
VNN IP VNN IP
AG Listener
VNN IP
AG Listener
VNN IP
• SQL Server 2016 Standard o
successivo
• Un singolo database per
gruppo
• Una sola replica non
accessibile
• Replica sincrona o asincrona
• Complesso da implementare
se si hanno più DB
Always On BAG
Azure vnetOn-prem network
AG Listener
VNN IP2IP1
VNN IP2IP1
• SQL Server 2016 Standard o
successivo
• Un singolo database per
gruppo
• Una sola replica non
accessibile
• Replica sincrona o asincrona
• Complesso da implementare
se si hanno più DB
Always On BAG
Azure vnetOn-prem network
AG Listener
VNN IP2IP1
VNN IP2IP1
AG Listener 2
VNN 2 IP4IP3
Interazione con Failover Cluster Instance
network subnet
Azure subnetOn-prem network
VNN IP2IP1
AG Listener
VNN IP2IP1
Azure Site Recovery
• Azure Site Recovery orchestra la
protezione dei nostri workload
• In caso di failover mette in atto il
recovery plan definito e testato in
precedenza
• Può governare un sistema di DR SQL
• Può gestire la replica diretta di una
sistema SQL
Azure Site Recovery
Materiale utile
Demo FCI + BAG con SQL Standard Edition
https://github.com/OmegaMadLab/FCI_and_AG
https://youtu.be/s8TmM-0E9sQ
Documentazione ufficiale
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sql/virtual-machines-windows-sql-high-availability-dr
SQL backup to Azure Blob Storage cheat sheet:
https://techcommunity.microsoft.com/t5/DataCAT/SQL-Server-Backup-to-URL-a-cheat-sheet/ba-p/346358
Documentazione FCI + AG:
https://docs.microsoft.com/it-it/sql/database-engine/availability-groups/windows/failover-clustering-and-always-on-
availability-groups-sql-server?view=sql-server-2017
DBATools
https://dbatools.io
SQL Saturday 895 – SQL Server e PowerShell: from Zero to Hero
https://youtu.be/yR3TfZfzHss
SQL Server 2019 licensing sheet
https://download.microsoft.com/download/6/6/0/66078040-86d8-4f6e-b0c5-
e9919bbcb537/SQL%20Server%202019%20Licensing%20guide.pdf
Thank you
Ricordatevi di
compilare il feedback
form 
https://speakerscore.
com/H7FH
#SqlSat921
SQL Server Disaster Recovery on Azure - SQL Saturday 921

SQL Server Disaster Recovery on Azure - SQL Saturday 921

  • 1.
    Disaster recovery pertutti! SQL Server ed Azure Marco Obinu
  • 2.
    Explore your PASS community Free online webinarevents Connect with the global data community Local user groups around the world Online special interest user groups Learning on-demand and delivered to you Get involved Own your career with interactive learning built by community and guided by data experts. Get involved. Get ahead. .org
  • 3.
    Missed PASS Summit2019? Get the Recordings Download all PASS Summit sessions on Data Management, Analytics, or Architecture for only $399 USD More options available at PASSstuff.com
  • 4.
    We are coveringall bases to ensure our community can continue reaching new and exciting heights. Plans are underway for the in-person event you all know and love along with a new venture, a new opportunity: a PASS Summit 2020 Virtual Event. Find out more at PASS.org/summit
  • 5.
    Thank you to ourGlobal Sponsors and Supporters
  • 6.
    Thank you to ourLocal Sponsors and Supporters
  • 7.
    This event wassponsored by Microsoft Learn more about SQL Server 2019 today: -Get free training: aka.ms/sqlworkshops -Download the SQL19 eBook: aka.ms/sql19_ebook
  • 8.
    Marco Obinu Advisory Engineer SoftJamS.p.A. @OmegaMadLab marco.obinu@omegamadlab.com http://www.omegamadlab.com https://github.com/OmegaMadLab https://www.linkedin.com/in/marco-obinu-omegamadlab/ https://www.youtube.com/channel/UCpkBeQSscC1iBvpNP4VNTKQ • Geek to the bone  • Azure Solution Architect Expert Who am I?
  • 9.
  • 10.
    Un po’ diterminologia… Dati persi Tempo di ripristino Interruzione di servizio RPO RTO RTO - RPO COSTI - COMPLESSITÀ
  • 11.
    Perché utilizzare Azurecome sito di DR?
  • 12.
  • 13.
    Ma quanto cicosta a livello di licenze? SQL 2017 (SA) SQL 2019 (SA)
  • 14.
    Infrastructure-as-a-Service model MANAGEDBYVENDOR MANAGEDBYVENDOR MANAGEDBY VENDOR APPLICATION HYPERVISOR OS RUNTIME DATA STORAGE NETWORK TRADITIONAL IT APPLICATION HYPERVISOR OS RUNTIME DATA STORAGE NETWORK IaaS YOUMANAGE SERVERSSERVERS APPLICATION HYPERVISOR OS RUNTIME DATA STORAGE NETWORK PaaS YOUMANAGE SERVERS APPLICATION HYPERVISOR OS RUNTIME DATA STORAGE NETWORK SaaS SERVERS YOUMANAGE SQL Server on IaaS VM
  • 15.
  • 16.
    Backup su storageaccount On-prem datacenter Supported Version/Edition Recovery Model Complexity RTO RPO Data access on DR site
  • 17.
    Log shipping On-prem datacenter SupportedVersion/Edition Recovery Model Complexity RTO RPO Data access on DR site
  • 18.
    Mirroring On-prem datacenter Supported Version/Edition RecoveryModel Complexity RTO RPO Data access on DR site
  • 19.
    On-prem datacenter Always OnAvailability Group Supported Version/Edition Recovery Model Complexity RTO RPO Data access on DR site
  • 20.
    Anatomia di AlwaysOn AG network subnet AG Listener VNN IP On-prem network VNN IP
  • 21.
    Cluster quorum Vote =1 Node 1 Cluster UP Vote = 1 Node 2 Cluster UP Vote = 1 Node 3 Cluster UP Vote = 1 Node 1 Cluster DOWN
  • 22.
    Azure networkOn-prem network Anatomiadi Always On AG VNN IP2IP1 AG Listener VNN IP2IP1
  • 23.
    Azure networking forclusters Cluster Node IP Cluster IP resource IP Cluster Node IP Cluster IP resource IP On-premises Azure
  • 24.
    Azure networking forclusters Cluster Node IP Cluster IP resource IP Cluster Node IP Cluster IP resource IP On-premises Azure Azure Load Balancer
  • 25.
    Azure vnet Always OnAG – come funziona il failover? On-prem network Users Reports Read-onlyRead-only
  • 26.
    Always On DistributedAG (SQL2016+) Azure vnetOn-prem network WSFC1 WSFC2 Distributed Availability Group VNN IP VNN IP AG Listener VNN IP AG Listener VNN IP
  • 27.
    • SQL Server2016 Standard o successivo • Un singolo database per gruppo • Una sola replica non accessibile • Replica sincrona o asincrona • Complesso da implementare se si hanno più DB Always On BAG Azure vnetOn-prem network AG Listener VNN IP2IP1 VNN IP2IP1
  • 28.
    • SQL Server2016 Standard o successivo • Un singolo database per gruppo • Una sola replica non accessibile • Replica sincrona o asincrona • Complesso da implementare se si hanno più DB Always On BAG Azure vnetOn-prem network AG Listener VNN IP2IP1 VNN IP2IP1 AG Listener 2 VNN 2 IP4IP3
  • 29.
    Interazione con FailoverCluster Instance network subnet Azure subnetOn-prem network VNN IP2IP1 AG Listener VNN IP2IP1
  • 30.
  • 31.
    • Azure SiteRecovery orchestra la protezione dei nostri workload • In caso di failover mette in atto il recovery plan definito e testato in precedenza • Può governare un sistema di DR SQL • Può gestire la replica diretta di una sistema SQL Azure Site Recovery
  • 32.
    Materiale utile Demo FCI+ BAG con SQL Standard Edition https://github.com/OmegaMadLab/FCI_and_AG https://youtu.be/s8TmM-0E9sQ Documentazione ufficiale https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sql/virtual-machines-windows-sql-high-availability-dr SQL backup to Azure Blob Storage cheat sheet: https://techcommunity.microsoft.com/t5/DataCAT/SQL-Server-Backup-to-URL-a-cheat-sheet/ba-p/346358 Documentazione FCI + AG: https://docs.microsoft.com/it-it/sql/database-engine/availability-groups/windows/failover-clustering-and-always-on- availability-groups-sql-server?view=sql-server-2017 DBATools https://dbatools.io SQL Saturday 895 – SQL Server e PowerShell: from Zero to Hero https://youtu.be/yR3TfZfzHss SQL Server 2019 licensing sheet https://download.microsoft.com/download/6/6/0/66078040-86d8-4f6e-b0c5- e9919bbcb537/SQL%20Server%202019%20Licensing%20guide.pdf
  • 33.
    Thank you Ricordatevi di compilareil feedback form  https://speakerscore. com/H7FH #SqlSat921