Most SQL Servers run on-premises. This one runs in the Cloud (too).
About me Murilo Miranda Lead Database Consultant @ Pythian http://www.sqlshack.com/author/murilo-miranda/ http://www.pythian.com/blog/author/murilo/ @murilocmiranda http://pt.linkedin.com/in/murilomiranda/
Agenda Introduction Why Hybrid? How to integrate? Hybrid solutions Backups to Azure Managed Backups Database files in Azure Low-cost DR. Old data archival. Azure AG Replica. Streched table
WHY HYBRID?
Why Hybrid? The cloud is being more and more part of our lives. Probably you are not using a pendrive as before...... and SQL Server is no different! The cloud brough benefits and options to improve our HA and DR strategies. Economical Scalable Elastic
Why Hybrid? COMPUTE SERVICES APP SERVICES DATA SERVICES Virtual Machines Azure Mobile Services TFS or VS Online + GIT Azure AD Multi-Factor Auth Azure Cache storage blob storage table storage queue Access Control BizTalk Services Media Services VHD VHD data disk Gallery OS images Azure Web Site web roles worker roles Service Bus Notification Hub Scheduler StorSimple Virtual Appliance Backup Service Azure Site Recovery NETWORKING & AUTOMATION SERVICES SQL Database SQL Data Sync MySQL database Virtual network Availability Set Azure load Auto-scale Traffic Automation CDN balancer Manager HDInsight (Hadoop)
Why Hybrid?
The Microsoft Network 85 ixp 1.4 M 4 X 15 B 4400+ CONNECTIONS TO 1695 NETWORKS MILES OF FIBER IN OUR DATA CENTERS WRAP THE EARTH IN NORTH AMER FIBER MICROSOFT CLOUD INVESTMENT
The Microsoft Network 12,055 Total Managed Network Devices 519 10 600 49,152 22gb Sustained Internet Traffic * Information from Ganesh Srinivasan (BRK2481)
HOW TO INTEGRATE?
How to integrate? We can easly build hybrid environments. It s easy to integrate On-Premises and Azure. Internet
Internet Connectivity Access over the internet (Comsumers). Workstation Single Service Using a public IP. Connect from anywhere DNS resolution. Ports are opened on Azure Portal. E.g.: Connect to an Azure VM, over RDP. Internet
Point-to-site (P2S) IPSec VPN Useful for simple deployments. Workstation vnetwork (one or more services). One way connection. Client computer (the point) connects to an Azure vnet (the site). Allows the client to access a service in Azure. E.g.: VM or Database.
Site-to-site (S2S) IPSec VPN Complex deployment. On-Pre network Azure vnet (many to many) Enterprises, SMB. Done at network level. Can be done using RRAS. Conects a group of servers to a vnet in Azure. Allows complete solutions: E.g.: AD replication, AG Replica.
ExpressRoute Variation of Site-to-Site. Enterprises, SMB. Connects using a private network. Looks like an extension of your datacenter. Done through a service provider. Better performance and security. You don t expose your traffic in the internet. Expensive option. Need to pay an extra service.
ExpressRoute Possible ExpressRoute deployments
ExpressRoute Possible ExpressRoute deployments Azure becomes another site on customer s network. WAN Connection from a WAN provided by a Network Service Provicer.
ExpressRoute Sites and Partners
Hybrid Solutions BACKUP TO AZURE
Backups to Azure We can do backups to Azure! (SQL Server 2012 SP1 CU2+) Eliminate tapes Less hassle. Unlimited storage Less worries. Pay-per-Use Offsite Backups. Geo-Redundant. Disaster recovery solution Minimizes the overall costs
Backups to Azure Steps to follow: 1. Create an Azure Storage under your account. 2. Create a container to store the files. A backup file will be stored in Azure Storage as a Binary Large Object (Blob). A file of any type and size.
Backups to Azure Steps to follow: 3. Download Publishing Profile https://manage.windowsazure.com/publishsettings/ 4. Create the Credentials.
Backups to Azure Steps to follow: 4. Proceed with the backup. Tip: Use backup compression.
Backups to Azure Tools 4. Azure Storage Explorer http://azurestorageexplorer.codeplex.com/
Backups to Azure Tools 4. Azure Web Storage Explorer http://azurestorage.azurewebsites.net/
Backups to Azure D E M O
Hybrid Solutions MANAGED BACKUPS
Managed Backups Managed Backups Introduced in SQL Server 2014. Automates and manages SQL Server backups based on a retention period. From 1 to 30 days.
Managed Backups Managed Backups FULL Backup schedule: When Managed backup is enabled. The log grows more than 1Gb. The last FULL Backup is 1 week older. When the log backup chain breaks.
Managed Backups Managed Backups Log Backup schedule: When a FULL Backup is performed. When there are no log backups (ever). If the t-log grows more than 5Mb. When the last log backup is 2 hours older.
Managed Backups D E M O
Hybrid Solutions DATABASE FILES IN AZURE
Database Files in Azure Database files in Azure Blob Storage New feature of SQL Server 2014. Added to SQL Server 2012 from Service Pack 1 - CU2 Supports data and log files. On-Premises Azure
Database Files in Azure Database files in Azure Blob Storage Steps: 1. Create a Credential in the SQL Server instance. Shared Access Signature (SAS)
Database Files in Azure Database files in Azure Blob Storage Steps: 1. Create a Credential in the SQL Server instance. This is not a simple process. I used a method with PowerShell, explained at this blog: http://goo.gl/fgzvsn
Database Files in Azure Database files in Azure Blob Storage Steps: 1. Create a Credential in the SQL Server instance. 2. Create a credential. The credential name = Container Path. 3. Create/attach the dabase pointing to that container.
Database Files in Azure D E M O
Low-Cost Disaster Recovery Azure storage is useful for more! Build a simple Disaster Recovery solution. Do not forget to save a copy of db level objects in Azure Storage.
Low-Cost Disaster Recovery D E M O
Archival Solution Azure storage is useful for more! Build a simple data archival model. By partitioning a table and sending older data to Azure. Filegroups PRIMARY FG1 FG2 FGn FGAzure Files Local MDF file Local NDF file Local NDF file Local NDF file NDF file in Azure
Archival Solution Azure storage is useful for more! Build a simple data archival model. By partitioning a table and sending older data to Azure. Partitoned Table Partition with old data uses the Azure Filegroup
Archival Solution D E M O
Hybrid Solutions AVAILABILITY GROUPS
AG Replica Availability Group supports replicas in Azure Since SQL Server 2012 SP1 CU2+ Works as a DR and LB strategy. Offload workload (reports, backups,...). Low-cost DR strategy.
AG Replica Availability Group supports replicas in Azure A wizard that helps on this task SQL Server 2014+
AG Replica Availability Group supports replicas in Azure Or you can join manually... 1. Deploy the Azure VM 2. Join into the domain 3. Join into the cluster 4. Enbale HADR feature. 5. Joint to AG. 6. Start syncing the databases.
Hybrid Solutions STRECHED TABLE
Cold Data Hot Data Streched Table Archive data using stretched tables. Comming with SQL Servr 2016. Your data is always growing... Probably you won t need all the data on regular basis! We can pass closed data to Azure... and this is transparent!
Questions? Thank you! murilo.miranda@gmail.com @murilocmiranda