Database Administration for Azure SQL DB

Similar documents
Successfully migrate existing databases to Azure SQL Database. John Sterrett Principal Consultant

Azure SQL Database Training. Complete Practical & Real-time Trainings. A Unit of SequelGate Innovative Technologies Pvt. Ltd.

Developing Microsoft Azure Solutions (70-532) Syllabus

The Freedom to Choose

Martin Cairney. Hybrid data platform making the most of Azure plus your onprem

Manohar Punna. Azure Database Migration Choosing the Right Tier

Developing Microsoft Azure Solutions (70-532) Syllabus

Welcome to the. Migrating SQL Server Databases to Azure

Azure SQL Database Training. Complete Practical & Real-time Trainings. A Unit of Sequel Gate Innovative Technologies Pvt. Ltd.

SQL Server in Azure. Marek Chmel. Microsoft MVP: Data Platform Microsoft MCSE: Data Management & Analytics Certified Ethical Hacker

Developing Microsoft Azure Solutions (70-532) Syllabus

Index. Pranab Mazumdar, Sourabh Agarwal, Amit Banerjee 2016 P. Mazumdar et al., Pro SQL Server on Microsoft Azure, DOI /

Javier Villegas. Azure SQL Server Managed Instance

17/05/2017. What we ll cover. Who is Greg? Why PaaS and SaaS? What we re not discussing: IaaS

Microsoft Azure Course Content

Azure SQL Database. Indika Dalugama. Data platform solution architect Microsoft datalake.lk

70-532: Developing Microsoft Azure Solutions

70-532: Developing Microsoft Azure Solutions

Randy Pagels Sr. Developer Technology Specialist DX US Team AZURE PRIMED

Exam : Implementing Microsoft Azure Infrastructure Solutions

Monitoring & Tuning Azure SQL Database

Niraj Kumar Lead Azure Architect, MCT( Microsoft Certified Trainer)

RA-GRS, 130 replication support, ZRS, 130

Q&As Provisioning SQL Databases (beta)

[AVNICF-MCSASQL2012]: NICF - Microsoft Certified Solutions Associate (MCSA): SQL Server 2012

Designing Modern Apps Using New Capabilities in Microsoft Azure SQL Database. Bill Gibson, Principal Program Manager, SQL Database

Course AZ-100T01-A: Manage Subscriptions and Resources

SQL Azure. Abhay Parekh Microsoft Corporation

Duration: 5 Days Course Code: M20764 Version: B Delivery Method: Elearning (Self-paced)

Designing Database Solutions for Microsoft SQL Server 2012

Training 24x7 DBA Support Staffing. Administering a SQL Database Infrastructure (40 Hours) Exam

SQL Server Course Administering a SQL 2016 Database Infrastructure. Length. Prerequisites. Audience. Course Outline.

Implementing Microsoft Azure Infrastructure Solutions

Azure Certification BootCamp for Exam (Developer)

Exam4Tests. Latest exam questions & answers help you to pass IT exam test easily

Administering Microsoft SQL Server 2012/2014 Databases

5/24/ MVP SQL Server: Architecture since 2010 MCT since 2001 Consultant and trainer since 1992

20533B: Implementing Microsoft Azure Infrastructure Solutions

Administering a SQL Database Infrastructure Microsoft Official Curriculum (MOC 20764)

Actual4Dumps. Provide you with the latest actual exam dumps, and help you succeed

DESIGNING DATABASE SOLUTIONS FOR MICROSOFT SQL SERVER CERTIFICATION QUESTIONS AND STUDY GUIDE

Administering Microsoft SQL Server Databases

MCSA SQL SERVER 2012

SQL Server DBA Course Details

exam.100q. Number: Passing Score: 800 Time Limit: 120 min Provisioning SQL Databases

Course 20533B: Implementing Microsoft Azure Infrastructure Solutions

Azure File Sync. Webinaari

Azure Webinar. Resilient Solutions March Sander van den Hoven Principal Technical Evangelist Microsoft

SQL Server SQL Server 2008 and 2008 R2. SQL Server SQL Server 2014 Currently supporting all versions July 9, 2019 July 9, 2024

Administering Microsoft SQL Server 2012 Databases

Designing Database Solutions for Microsoft SQL Server (465)

Designing Database Solutions for Microsoft SQL Server 2012

Developing Microsoft Azure Solutions: Course Agenda

6 Months Training Module in MS SQL SERVER 2012

Microsoft Architecting Microsoft Azure Solutions.

Developing Microsoft Azure Solutions

Course Outline. Lesson 2, Azure Portals, describes the two current portals that are available for managing Azure subscriptions and services.

SQL Server DBA Course Content

SERVERS TO SERVICES HOW MICROSOFT AZURE CAN MODERNISE YOUR IT INFRASTRUCTURE. Joey Lau 9 November 2017

Azure Learning Circles

The Pathway to the Cloud Using Azure SQL Managed Instance

Browser.

COURSE 20462C: ADMINISTERING MICROSOFT SQL SERVER DATABASES

Course 20764: Administering a SQL Database Infrastructure

Deccansoft Software Services

Deccansoft Software Services

Administering a SQL Database Infrastructure

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

Techno Expert Solutions

Designing Database Solutions for Microsoft SQL Server 2012

Cloud Operations Using Microsoft Azure. Nikhil Shampur

MS-20462: Administering Microsoft SQL Server Databases

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

Administering Microsoft SQL Server 2012 Databases

Planning and Operating Azure Stack. How to handle a unicorn?

Developing Microsoft Azure Solutions (MS 20532)

"Charting the Course... MOC C: Administering an SQL Database Infrastructure. Course Summary

Microsoft Administering a SQL Database Infrastructure

Changes Schema Of Table Procedure Sql 2008 R2 Replication

Course Outline. Developing Microsoft Azure Solutions Course 20532C: 4 days Instructor Led

Microsoft Azure BLOB Storage

Microsoft SQL Server" 2008 ADMINISTRATION. for ORACLE9 DBAs

Administering a SQL Database Infrastructure (M20764)

Administering a SQL Database Infrastructure (20764)

SQL Server Databases in the Clouds

Architecting Microsoft Azure Solutions (proposed exam 535)

Monitoring Azure Azure Monitor How, What, Why?

Office 365 and Azure Active Directory Identities In-depth

Microsoft Administering Microsoft SQL Server 2014 Databases

Managing and Auditing Organizational Migration to the Cloud TELASA SECURITY

SQL Server Managed Instance PaaS offering with IaaS functionality

Basic knowledge of the Microsoft Windows operating system and its core functionality.

Provisioning SQL Databases

Microsoft Exchange Server 2007 Implementation and Maintenance

Michael Wells Microsoft Specialist, Dell EMC. SQL DBaaS on Microsoft Azure Stack

20764C: Administering a SQL Database Infrastructure

How to setup Orchestrator to manage thousands of MySQL servers. Simon J Mudd 3 rd October 2017

We are ready to serve Latest IT Trends, Are you ready to learn? New Batches Info

Maintaining a Microsoft SQL Server 2008 Database (Course 6231A)

SQL SERVER DBA TRAINING IN BANGALORE

Transcription:

Database Administration for Azure SQL DB Martin Cairney SQL Saturday #582, Melbourne 11 th February 2017

Housekeeping Mobile Phones Please set to stun during sessions Evaluations Please complete a session Evaluation to provide feedback to our wonderful speakers! Also complete the Event Evaluation forms please fill them in and return them at the end of the day Coffee There a Coffee cart provided by WardyIT outside the Microsoft & Sandisk rooms if you need a caffeine hit before the next session

Housekeeping SQL Clinic Don t forget to check out the SQL Clinic to talk directly to Microsoft staff and MVP s about your biggest pain points or suggestions for the next versions of SQL Server Lunchtime Sponsor Sessions Learn more over lunch, come hear presentations from our gold sponsors including WardyIT, SanDisk and Insight Enterprises Sponsor Bingo Visit the sponsors desks to get your Bingo Card stamped and enter the prize draw

Martin Cairney Microsoft Data Platform MVP Microsoft Certified Trainer Organiser SQL Saturday Melbourne (http://bit.ly/1mz9lye) martin.cairney@lobsterpot.com.au @martin_cairney http://au.linkedin.com/in/martincairney

Agenda How is it Different? Server Level Concepts Cloud Specific Concepts Mapping the Management Tasks Security Backups and Restores Scheduled Maintenance Alerts Auditing Monitoring The Azure DBA Role

How is it Different?

How is it Different? https://docs.microsoft.com/en-us/azure/sql-database/sql-database-paas-vs-sql-server-iaas

How is it Different As a DBA there are new challenges since some familiar functionality is not there No Profiler support Replication only as a Subscriber Restricted CLR functionality FILESTREAM / FILE TABLES No Linked Servers No cross-database queries

Server Level Concepts Is an Azure SQL Server the same as On-Premises? =

Server Level Concepts In Azure, the SQL Server is only a logical container What is doesn t do No guarantee your DB is on the same physical host Does not expose Instance Level features No MSDB No SQL Agent No DBMail No Policy Management No Linked Servers

Server Level Concepts In Azure, the SQL Server is only a logical container What it does do Provides access to metadata for the contained resources (vis DMVs) Provides a scope for management features (audit, firewall, etc) Provides the scope for versioning Provides the scope for quotas <- reconfirm what these are

Cloud Specific Concepts Service Tiers and Resources Provides scalability in performance (and some functionality for now) Tier identifies the maximum DTU, size and concurrency available DTU is a measure of the CPU, memory and IOPS available to the SQL DB Elastic Pools and Sharding Combine multiple SQL DBs into a group where the resource limits apply Allows a single SQL DB to use all the pool resources (if available) Provides a scale-out architecture to allow the application DB to surpass the single SQL DB limits Elastic Jobs allow admin operations across all SQL DBs in the Elastic Pool Elastic Transactions allow transactions to span several SQL DBs Elastic Query allows queries or reports to run across many SQL DBs and to access remote data stored in many SQL DBs in your pool at once

Cloud Specific Concepts (continued) Contained Databases and Users A SQL DB is its own boundary - e.g. doesn t natively permit cross database access unless using the Elastic Tools Users are fully contained and provide the security context for access to a single SQL DB Automated backups and HA Backups are run automatically and continuously to provide point-in-time restores up to the Tier Level Retention Period Active Geo-Replication provides up to 4 readable secondaries in the same or different Azure Regions Asynchronous replication of committed transactions Comes with a guaranteed SLA from Microsoft All Service Tiers have an uptime SLA of 99.99%

Mapping the Management Tasks

Security No Server Roles in SQL DB Only the Administrator has access across all SQL DBs on the Azure SQL Server No role permission is granted automatically master Database Roles dbmanager can create/delete databases on the Azure SQL Server & are dbo for the SQL DBs they create loginmanager can create/delete logins within the master database

Security Initial Administrator account is a SQL login We then add an Azure AD Group or User as the Active Directory Admin Now we can create users either as SQL users or as AD users

Security Firewall Rules Server Level Firewall Used for administrative access allows access to all SQL DBs on the server Can be set using the Portal, API, Powershell or T-SQL (NB can t use T-SQL for the first rule) Database Level Firewall Make access more restrictive Can block access from the Server Level Firewall if the ranges do not overlap Are created using T-SQL (sp_set_database_firewall_rule name, start_ip, end_ip )

Backup & Restores Automatic Backups NO control over type and frequency NO control over storage backup location (for regular backups) Process Full, Differential and Transaction Log backups are taken to ensure point-in-time recovery Backups are sent to RA-GRS (read-access geo-redundant storage) No additional charge for the storage (up to 2 x provisioned SQL DB size) Retention Basic Tier : Standard Tier: Premium Tier: 7 days 35 days 35 days

Backup & Restores Long-Term Retention Can extend the retention to up to 10 years Copies the weekly FULL backups into the Azure Backup Service Vault Still automatically managed backups older than the retention policy are deleted Must be in same region and resource group as the SQL DB Restore Options Must restore to a NEW SQL DB (unless original SQL DB was deleted) Restore deleted SQL DB if it was deleted within the retention period for the Tier Restore to point-in-time within retention period or to a specific long term backup Geo-Restore to a new region and SQL Server

Backup & Restores DEMO

Scheduled Maintenance No in-built job scheduler in SQL DB, so what can we do? Azure Automation Execute a Powershell script on a scheduled basis Need to do our own logging and analysis of outputs Can be complex to set up Elastic Jobs Current version is a customer-hosted Azure Cloud Service needs to be installed -> additional cost Jobs are created using the portal or Powershell no T-SQL Can log into a central table Elastic Jobs Private Preview version Doesn t need a Cloud Service only a SQL DB (S2 minimum) kinda like having an MSDB Familiar T-SQL procedures and tables Currently Private Preview and restricted to only 1 job step per job

Scheduled Maintenance DEMO

Alerts Defined at the SQL DB level Metrics include: Firewall Connections CPU Deadlocks DTU Log IO Data IO Sessions and Workers DB Size In-Memory Usage

Alerts Delivery Can be selective over notifications Can trigger additional actions through the use of Webhooks

Alerts DEMO

Auditing Auditing of events similarly to On-Premises Configure at either the Server or individual SQL DB level Effectively runs an XE session to capture the audit events Blob Auditing Logs to Azure Blob Storage When enabled on a primary is automatically enabled on secondary in Geo-Replicated SQL DB Uses Storage Access Keys may be subject to periodic regeneration Can t select specific events default selection implemented Explore logs from Portal or download from Storage Account and open.xel file in SSMS

Auditing Table Auditing Logs to Azure Table Storage Requires changes to connection strings and Endpoint IP Addresses (xxx.database.secure.windows.net) Allows different audits of primary & secondary in Geo-Replicated SQL DB Allows the selection of Audit Event Categories with success/failure options Explore logs from Portal or download the Excel Report Template (uses PowerQuery to load data) Table Auditing is also a pre-requisite to enable Threat Detection Current Preview monitors for SQL Injection (actual or potential) and Anomalous Client Logins Emails information when an event that meets the criteria occurs

Auditing DEMO

Monitoring Azure Portal SQL DB/Overview/Monitoring Metrics DMVs some specific for SQL DB, some removed others same or similar SQL Database Advisor Missing Indexes Duplicate Indexes Schema Issues (e.g. missing columns in a query) Parameterisation Recommendations Performance Insights Visualisation based on Query Store

Tuning Database Advisor Suggestions New and Duplicate Indexes, Paramterisation and Schema Errors Review Performance Insights Extended Events Subset of XE features in On-Premises SQL Server NOTE still in Preview Database scoped rather than Server scoped Targets Ring Buffer, Event Counter & Azure Storage for file, but no ETW

Monitoring & Tuning DEMO

The Azure DBA Role 1) TUNING reduce your resource usage 2) TUNING reduce your costs if you can reduce your Tier 3) ALERTS base them on resource usage and trigger Automation Actions from them 4) BACKUPS use what s needed for you DB and compliance don t use LTS unless you need to 5) EXTENDED EVENTS if you d been hanging on to Profiler, now s the time to change 6) SECURITY especially as SQL DB has a public internet address no VNETs yet 7) CHANGE VELOCITY new features that help, like the new Elastic Jobs

Questions?

Sponsors Please make sure you visit our fantastic sponsors to get your card stamped to be in the running for a raffle prize:

How did we do? Please complete an Evaluation to provide feedback to our wonderful speakers! SQL Clinic Don t forget to check out the SQL Clinic to talk directly to Microsoft staff and MVP s about your biggest pain points or suggestions for the next versions of SQL Server Lunchtime Sponsor Sessions Learn more over lunch, come hear presentations from our gold sponsors including WardyIT, SanDisk and Insight Enterprises Evaluations Also complete the Event Evaluation forms please fill them in and return them at day the end of the