You are on page 1of 45

Putting Your Head in the Cloud

A Beginner’s Guide to Cloud Computing


and Azure SQL Database

David Postlethwaite

07/05/2016 David Postlethwaite


1 |
Our Sponsors
Platinum Sponsors

Gold Sponsors

Bronze Sponsor
Silver Sponsors

2 | 07/05/2016 David Postlethwaite


About Me

 David Postlethwaite
 Liverpool Victoria LV=
 SQL and Oracle DBA
 MCSE 2012 Data Platform
 MCITP 2008, 2005
 Oracle OCA
 25 years IT Experience
 7 years as DBA

 david@clunyweb.co.uk
 Blog: gethynellis.com

3 | 07/05/2016 David Postlethwaite


Introduction

 Putting Your Head in the Cloud


 What is cloud computing?
 Where did it come from?
 What Types of Cloud Computing are there?
 Why might I want to use it?
 Why might I NOT want to use it?

 Microsoft Azure
 SQL Azure

4 | 07/05/2016 David Postlethwaite


Free E-Book
 Sign up at
 www.gethynellis.com

5 | 19/09/2015 David Postlethwaite


Who is using the Cloud now?

 For Business use?


 For Personal use?

6 | 07/05/2016 David Postlethwaite


Why the Cloud?

(IBM archive)

 “Why do we need to buy and maintain our own servers and spend our lives upgrading
and fixing them?”

 “Why do we need an expensive DR site that sits idle most of the time?”

 “Why can’t I just rent a file server or a database server or a webserver or even an
application and pay someone else to manage it?”

7 | 07/05/2016 David Postlethwaite


What is Cloud Computing?

 cloud computing
 noun: cloud computing;

 The practice of using a network


of remote servers hosted on the
Internet to store, manage
and process data,
rather than a local server
or a personal computer.

Wikipedia

8 | 07/05/2016 David Postlethwaite


Examples

Web Email Software


gmail Office 365
Hotmail Skype for Web
Adobe Creative Cloud - PhotoShop Online
QuickBooks Online
Storage Visual Studio Online
Microsoft One Drive
Google Drive Hosting
Apple iCloud Microsoft Azure
Amazon Cloud Drive Oracle Cloud
Drop Box Amazon Web Services
Google Cloud Platform
+ many other smaller providers

9 | 07/05/2016 David Postlethwaite


Cloud Service Models
Traditional Infrastructure Platform Software
on-premises as a Service (IaaS) as a Service (PaaS) as a Service (SaaS)

Hardware to Rent Servers to Rent Apps to Rent

Application Application Application Application

Data Data Data Data

Runtime Runtime Runtime Runtime

Middleware Middleware Middleware Middleware

Operating System Operating System Operating System Operating System

Virtualisation Virtualisation Virtualisation Virtualisation

Servers Servers Servers Servers

Storage Storage Storage Storage Managed By Client

Networking Networking Networking Networking Managed By Vendor

10 | 07/05/2016 David Postlethwaite


Advantages of the Cloud

 Quick Setup
 Scalability
 Cost Efficient
 Backup and High Availability
 Mobility
 Environmentally Friendly
 Innovation
 Security

11 | 07/05/2016 David Postlethwaite


Disadvantages of the Cloud

 Security and Privacy


 Dependency
 Loss of Control
 Reliability and Vulnerability
 Government Interference

12 | 07/05/2016 David Postlethwaite


Microsoft Azure
AZURE REGION LOCATION
Central US Iowa
East US Virginia
East US 2 Virginia
US Gov. Iowa Iowa
US Gov. Virginia Virginia
North Central US Illinois
South Central US Texas
West US California
North Europe Ireland
West Europe Netherlands
East Asia Hong Kong
Southeast Asia Singapore
Japan East Tokyo, Saitama
Japan West Osaka
Brazil South Sao Paulo State
Australia East New South Wales
Australia Southeast Victoria
COMING SOON LOCATION
Central India Pune
Canada Central Toronto
South India Chennai
Canada East Quebec City
West India Mumbai
Germany Central Frankfurt
China East Shanghai
Germany Northeast Magdeburg
China North Beijing
United Kingdom tbc

13 | 07/05/2016 David Postlethwaite


Microsoft Azure Data Centres

Dublin Data Centre Chicago Data Centre


www.digitalsignage.net/ technet.com

Dublin 581,000 square feet - 54,000 m^2 – 4 football pitches


Chicago 700,000 square feet - 65,000 m^2
Iowa 11.2 million square feet - 10,000 m^2

14 | 07/05/2016 David Postlethwaite


Inside the Azure Data Centres

1,800 -2,500 servers


100 Containers
220,000 servers

15 | 07/05/2016 David Postlethwaite


Power Usage Effectiveness PUE
 Power usage effectiveness (PUE) is a measure of how efficiently
a computer data centre uses energy;
 How much energy is used by the computing equipment compared to
the energy used for cooling and other overheads).

Industry Average 2.0


Azure Data Centre 1.25

16 | 07/05/2016 David Postlethwaite


Demo Microsoft Azure
 http://azure.Microsoft.com

17 | 07/05/2016 David Postlethwaite


Windows Azure Portal

18 | 07/05/2016 David Postlethwaite


Windows Azure Classic Portal

19 | 07/05/2016 David Postlethwaite


Azure SQL Database

20 | 07/05/2016 David Postlethwaite


Create an Azure SQL Database

21 | 07/05/2016 David Postlethwaite


Create Azure Database - Source

22 | 07/05/2016 David Postlethwaite


Create Azure Database - Tier

23 | 07/05/2016 David Postlethwaite


Create Azure Database

24 | 07/05/2016 David Postlethwaite


Allowing Access to Azure DB

25 | 07/05/2016 David Postlethwaite


Azure Connection Strings

26 | 07/05/2016 David Postlethwaite


Connecting to Azure SQL Database

27 | 07/05/2016 David Postlethwaite


Using SSMS
 Limited GUI with SSMS 2012 or SSMS 2014 RTM
 SSMS 2014 SP1 and 2016 gives better support
 Need to write code
 Need the azure syntax
 Can’t use “USE”

 New commands to manage firewall rules


 Sp_set_database_firewall_rule
 sp_set_firewall_rule

28 | 19/09/2015 David Postlethwaite


Limitations of Azure SQL Database
 Unsupported Features
 Extended Properties
 Anything to do with Agent and msdb
 Features related to database file placement, size etc.
 Many DBCC commands 
 Filestream
 Global temporary tables
 Linked Servers
 SHUTDOWN
 https://msdn.microsoft.com/library/azure/ee336281.aspx

207/05/2016
29 | David Postlethwaite
Azure Database Service Tiers

30 | 07/05/2016 David Postlethwaite


Service Tiers and Performance Levels
  Basic Standard  Premium 
    S0 S1 S2 S3 P1 P2 P4 P6 P11
Max Database
2GB 250GB  500GB 1TB
Size

DTUs 5 10 20 50 100 125 250 500 1,000 1,750

Max
Concurrent 30 60 90 120 200 200 400 800 1,600 2,400
Requests

Max sessions 300 600 900 1,200 2,400 2,400 4,800  9,600 19,200 32,000

Approx
£3 £9 £18 £46 £92 £284 £568 £1136 £2273 £4277
Price /month *

Restore Last 7
Last 14 Days Last 35 Days
Point Days

Disaster Geo
Geo Replication 1 read only Secondary Active Geo replication. 4 read only Secondaries 
recovery Restore 

* Prices as at 21/04/2016

31 | 07/05/2016 David Postlethwaite


Backups and High Availability
 Full database backup once a week,
 Differential database backup once a day,
 Transaction log backup every 5 minutes.
 Full and differential backups are copied to another region
 Retention: Basic 7 Days, Standard 14 Days, Premium 35 Days

 Three database replicas on different physical hardware


one primary replica two secondary replicas.

 GEO Replication
 Standard: one read only secondary in different data centre
 Premium: four read only secondaries in different data
centres
32 | 07/05/2016 David Postlethwaite
SQL Database Restore
  Basic Standard Premium

Any restore point Any restore point Any restore point


Point In Time Restore
within the past 7 days within the past 14 days within the past 35 days

ERT* < 12 hours ERT* < 12 hours ERT* < 12 hours


Geo-Restore RPO† < 1 hour RPO†< 1 hour RPO† < 1 hour

Standard Geo-Replic ERT* < 30 seconds ERT* < 30 seconds


ation Not available RPO† < 5 seconds RPO† < 5 seconds

Active Geo-Replicatio ERT* < 30 seconds


n Not available Not available RPO† < 5 seconds

* Estimated Recovery Time (ERT) - The estimated duration for the database to be fully functional after a restore/failover request.

† Recovery Point Objective (RPO) - The amount of most recent data changes (time interval) the application could lose after recovery.

33 | 07/05/2016 David Postlethwaite


DACPAC and BACPAC
 SSMS 2012+
 BACPAC Export Data Tier Application – schema + data
 DACPAC Extract Data Tier Application - schema
 Azure currently only supports BACPAC

 Validates the schema before creating the file


 Save to local disk
 Copy BACPAC to Azure storage for Import from the Management
Portal
 Or
 Export straight to new database on Azure Server

34 | 07/05/2016 David Postlethwaite


Standard Geo-Replication

35 | 07/05/2016 David Postlethwaite


Active Geo-Replication

36 | 07/05/2016 David Postlethwaite


SQL Database Monitor

37 | 07/05/2016 David Postlethwaite


SQL Database Monitor

38 | 07/05/2016 David Postlethwaite


Automated Export

39 | 07/05/2016 David Postlethwaite


SQL Database Auditing and Security

40 | 07/05/2016 David Postlethwaite


Azure Virtual Machine

41 | 07/05/2016 David Postlethwaite


New Features

 Azure Elastic Database


 Share DTUs between a pool of databases
 Automatic power changes
 Azure Data Warehouse
 A database for massive volumes of relational and non-relational data
 Uses massive parallel processing (MPP) architecture
 Azure Data Lake
 A hyper-scale repository for big data analytics workloads
 Hadoop Distributed File System
 Unstructured and structured data in their native format

42 | 07/05/2016 David Postlethwaite


Grammar

Prem – short for premises


Premise – a proposition or assumption
Premises – a building or property

43 | 07/05/2016 David Postlethwaite


Any Questions

 Conclusion
 Hopefully you now have a better
understanding of SQL Azure

 Q&A

 david@clunyweb.co.uk
 Blog: gethynellis.com
 https://www.linkedin.com/in/davidpostlethwaite

44 | 07/05/2016 David Postlethwaite


Thank You

45 | 07/05/2016 David Postlethwaite

You might also like