introducing azure databases

26
INFORMATION PERSISTENCE IN AZURE (AKA: DATABASES) Grant Fritchey | Redgate Software

Upload: grant-fritchey

Post on 28-Jan-2018

437 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Introducing Azure Databases

INFORMATION PERSISTENCE IN AZURE (AKA: DATABASES)

Grant Fritchey | Redgate Software

Page 2: Introducing Azure Databases

GOALS

• Understand the various database options available on Azure

• Explore how to set up, control, monitor and maintain a

database on Azure

Page 3: Introducing Azure Databases

LET’S TALK

scarydba.com

[email protected]

@gfritchey

Grant Fritchey

Page 4: Introducing Azure Databases

DATA ON AZURE• Relational

ꟷ SQL Database (SQL Server in PaaS)

ꟷ SQL Data Warehouse (massively parallel SQL Server)

ꟷ SQL Elastic Pool (management resource for SQL DB)

ꟷ SQL Server on VM

ꟷ 3rd Party

ꟷ More to come

• Non-Relational

ꟷ DocumentDB (document database)

ꟷ MongoDB (PaaS)

ꟷ Redis Cache

ꟷ 3rd Party

ꟷ More to come

• Flat file storage

Page 5: Introducing Azure Databases

DATA ON AZURE

• Today

ꟷ Azure SQL Database

• With a little bit of pooling

ꟷ DocumentDB

Page 6: Introducing Azure Databases

DATA ON AZURE

• You pay for

ꟷ Storage

ꟷ Transferring data out of Azure

ꟷ Data movement across data centers

ꟷ Processing speed and power

Page 7: Introducing Azure Databases

AZURE SQL DATABASE

• Relational data storage

• SQL Server, and all it implies

• Scalable on the fly

• Built-in automated tuning

• Monitoring and alerts

• Built-in backups

• Automation through PowerShell

Page 8: Introducing Azure Databases

ELASTIC POOLS

• Multiple Azure SQL Databases

• Pay for databases as a unit

• Manage multiple databases

• Business solution, not a technical one

Page 9: Introducing Azure Databases

DOCUMENT DB

• Structureless or semi-structured data storage

• ID/Value using JSON

• Scalable, including across regions

• Multiple consistency levels

Page 10: Introducing Azure Databases

LET’S PLAY!

Page 11: Introducing Azure Databases

NEW RESOURCE GROUP

• Click “New” on the portal

• Type “resource group” hit enter

• Select “Resource group” published by “Microsoft”

• Click Create

• Define the name, subscription and location, pin to dashboard

Page 12: Introducing Azure Databases

AZURE SQL DATABASE

• Click Add

• Type “sql database”

• Select “SQL Database” from Publisher “Microsoft”

• Click “Create”

Page 13: Introducing Azure Databases

AZURE SQL DATABASE

• Fill in required info, use Resource Group

• Source should be “Sample (AdventureWorksLT)”

• Click “Configure required settings” for server

ꟷ Click “Create a new server”

ꟷ Fill in required info, remember your login & password

• Do not use SQL elastic pool

• Pricing tier, select Basic

Page 14: Introducing Azure Databases

EXPLORING SQL DATABASE

• Start with server

• Update firewall (not needed for today)

• Switch to database

• Click on tools

• Click on Query editor (preview)

• Login (you have that user name & password, right)

Page 15: Introducing Azure Databases

EXPLORING SQL DATABASE

• select * from SalesLT.SalesOrderHeader as soh

join SalesLT.SalesOrderDetail as sod

on soh.salesorderid = sod.salesorderid

where sod.unitprice > 1000

Page 16: Introducing Azure Databases

EXPLORING SQL DATABASE

• Enable GEO Replication

• Change pricing tier

• Examine auditing

• Enable Diagnostics (may have to create file store)

• Examine performance recommendations

• Examine Query Performance insight

• Go look at Diagnostics (had time to collect data)

Page 17: Introducing Azure Databases

DOCUMENTDB

• Click “plus”

• Select “Databases”

• Select “NoSQL (DocumentDB)”

• Fill in required info

• Note option for MongoDB

Page 18: Introducing Azure Databases

EXPLORING DOCUMENTDB

• Wizard may(should) start, if so, let’s follow it

• Create “Items” collection for selected language

• Download and open app

• Build & run the app

Page 19: Introducing Azure Databases

EXPLORING DOCUMENTDB

• Replicate data globally

• Consistency

• Firewall (!)

• Document Explorer

• Query Explorer (tastes like SQL)

• Restore (DevOps)

Page 20: Introducing Azure Databases

BACK TO SQL DATABASE

• Click “Restore”

• Restore creates new database

• Select point in time for restore

• Click OK

Page 21: Introducing Azure Databases

A MOMENT OF POWERSHELL

Page 24: Introducing Azure Databases

MONITOR AND MAINTAIN DOCUMENTDB

• Monitor DocumentDB

• DocumentDB Core Concepts

• DocumentDB Studio

• DocumentDB Data Explorer (just was announced 4/19)

• Performance Tips for DocumentDB

Page 25: Introducing Azure Databases

GOALS

• Understand the various database options available on Azure

• Explore how to set up, control, monitor and maintain a

database on Azure

Page 26: Introducing Azure Databases

LET’S TALK

scarydba.com

[email protected]

@gfritchey

Grant Fritchey