introducing azure databases
TRANSCRIPT
![Page 1: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/1.jpg)
INFORMATION PERSISTENCE IN AZURE (AKA: DATABASES)
Grant Fritchey | Redgate Software
![Page 2: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/2.jpg)
GOALS
• Understand the various database options available on Azure
• Explore how to set up, control, monitor and maintain a
database on Azure
![Page 4: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/4.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/5.jpg)
DATA ON AZURE
• Today
ꟷ Azure SQL Database
• With a little bit of pooling
ꟷ DocumentDB
![Page 6: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/6.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/7.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/8.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/9.jpg)
DOCUMENT DB
• Structureless or semi-structured data storage
• ID/Value using JSON
• Scalable, including across regions
• Multiple consistency levels
![Page 10: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/10.jpg)
LET’S PLAY!
![Page 11: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/11.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/12.jpg)
AZURE SQL DATABASE
• Click Add
• Type “sql database”
• Select “SQL Database” from Publisher “Microsoft”
• Click “Create”
![Page 13: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/13.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/14.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/15.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/16.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/17.jpg)
DOCUMENTDB
• Click “plus”
• Select “Databases”
• Select “NoSQL (DocumentDB)”
• Fill in required info
• Note option for MongoDB
![Page 18: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/18.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/19.jpg)
EXPLORING DOCUMENTDB
• Replicate data globally
• Consistency
• Firewall (!)
• Document Explorer
• Query Explorer (tastes like SQL)
• Restore (DevOps)
![Page 20: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/20.jpg)
BACK TO SQL DATABASE
• Click “Restore”
• Restore creates new database
• Select point in time for restore
• Click OK
![Page 21: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/21.jpg)
A MOMENT OF POWERSHELL
![Page 22: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/22.jpg)
POWERSHELL & AZURE DATABASES
• Get SQLPS installed (no need for full SQL Server)
• Manage SQL Database
• Automate DocumentDB
• SQL Data Warehouse
![Page 23: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/23.jpg)
MONITOR & MAINTAIN SQL DATABASE
• Using Dynamic Management Views
• Performance Monitoring
• Azure SQL Database System Center Management Pack
• Azure SQL Database Maintenance
• Azure Automation
![Page 24: Introducing Azure Databases](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/24.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022022415/5a6cecf57f8b9ab3418b48f9/html5/thumbnails/25.jpg)
GOALS
• Understand the various database options available on Azure
• Explore how to set up, control, monitor and maintain a
database on Azure