Book description
Master data management by effectively utilizing the features of Azure SQL database.
Key Features
- Learn to automate common management tasks with PowerShell.
- Understand different methods to generate elastic pools and shards to scale Azure SQL databases.
- Learn to develop a scalable cloud solution through over 40 practical activities and exercises.
Book Description
Despite being the cloud version of SQL Server, Azure SQL Database and Azure SQL Managed Instance stands out in various aspects when it comes to management, maintenance, and administration. Updated with the latest Azure features, Professional Azure SQL Managed Database Administration continues to be a comprehensive guide for becoming proficient in data management.
The book begins by introducing you to the Azure SQL managed databases (Azure SQL Database and Azure SQL Managed Instance), explaining their architecture, and how they differ from an on-premises SQL server. You will then learn how to perform common tasks, such as migrating, backing up, and restoring a SQL Server database to an Azure database.
As you progress, you will study how you can save costs and manage and scale multiple SQL databases using elastic pools. You will also implement a disaster recovery solution using standard and active geo-replication. Finally, you will explore the monitoring and tuning of databases, the key features of databases, and the phenomenon of app modernization.
By the end of this book, you will have mastered the key aspects of an Azure SQL database and Azure SQL managed instance, including migration, backup restorations, performance optimization, high availability, and disaster recovery.
What you will learn
- Understanding Azure SQL database configuration and pricing options
- Provisioning a new SQL database or migrating an existing on-premises SQL Server database to an Azure SQL database
- Backing up and restoring an Azure SQL database
- Securing and scaling an Azure SQL database
- Monitoring and tuning an Azure SQL database
- Implementing high availability and disaster recovery with an Azure SQL database
- Managing, maintaining, and securing managed instances
Who this book is for
This book is designed to benefit database administrators, database developers, or application developers who are interested in developing new applications or migrating existing ones with Azure SQL database.
Prior experience of working with an on-premise SQL Server or Azure SQL database along with a basic understanding of PowerShell scripts and C# code is necessary to grasp the concepts covered in this book.
Publisher resources
Table of contents
- Professional Azure SQL Managed Database Administration – Third Edition
- Preface
-
1. Introduction to Azure SQL managed databases
- Who manages what?
- The Azure SQL Database architecture
- Provisioning an Azure SQL Database
- Introduction to Azure SQL Managed Instance
- Connecting to Azure SQL Managed Instance
-
Differences between SQL Database, SQL Managed Instance, and SQL Server
- Backup and restore
- Recovery model
- SQL Server Agent
- Change Data Capture
- Auditing
- Mirroring
- Table partitioning
- Replication
- Multi-part names
- SQL Server Browser
- FileStream
- Common Language Runtime (SQL CLR)
- Resource Governor
- Global temporary tables
- Log shipping
- SQL Trace and Profiler
- Trace flags
- System stored procedures
- The USE statement
- Exercise: Provisioning an Azure SQL Managed Instance using the Azure portal
- Activity: Provisioning Azure SQL Server and SQL Database using PowerShell
- Summary
- 2. Service tiers
-
3. Migration
- Migration methodology
- Choosing between Azure SQL Database and SQL Managed Instance
- Tools for determining compatibility issues
-
Choosing a migration tool and performing migration
- Activity: Migrating an on-premises SQL database to Azure SQL Database using DMA
- Activity: Migrating an SQL Server database on an Azure virtual machine to an Azure SQL database using Azure DMS
- Activity: Migrating an on-premises SQL Server database to Azure SQL Database using SSMS
- Activity: Migrating an SQL Server database to an Azure SQL database using transactional replication
- Activity: Migrating an on-premises SQL Server to Azure SQL Managed Instance using the native backup and restore method (offline approach)
- Activity: Migrating an SQL Server on an Azure Virtual Machine to SQL Managed Instance using Azure DMS (online approach)
- Summary
-
4. Backups
- Automatic backups
-
Optimize backup storage costs for Azure SQL Database and Azure SQL Managed Instance
- Choose the right backup storage type
- Optimize the database backup retention period
- Maximize your free backup storage space
- Configure LTR backups
- Use Azure Policy
- Configure long-term backup retention for Azure SQL Database and Azure SQL Managed Instance
- Long-term retention configuration on Azure SQL Managed Instance
- Activity: Configure LTR Backups for Azure SQL Managed Instance using PowerShell
- Manual Backups for Azure SQL Database
- Activity: Perform Manual Backups Using PowerShell
- Summary
-
5. Restoration
-
Restore types
- Point-in-time restore
- Performing a PITR on an Azure SQL Database using the Azure portal
- Performing a PITR for an SQL Managed Instance using the Azure portal
- Long-term database restore
- Performing an LTDR on an Azure SQL Database using the Azure portal
- Performing an LTDR for SQL Managed Instance using PowerShell
- Restoring deleted databases
- Geo-restoring databases
- Importing a database (Azure SQL Database only)
- Activity: Performing a PITR for an Azure SQL Database with PowerShell
- Activity: Performing a geo-restore of an Azure SQL Database with PowerShell
- Activity: Performing Point-In-Time restore for SQL Managed Instance with PowerShell
- Activity: Geo-restoring a database hosted on SQL Managed Instance using the Az PowerShell module
- Activity: Restoring a deleted database on SQL Managed Instance using PowerShell
- Summary
-
Restore types
-
6. Security
- Network security
- Managing server-level firewall rules using the Azure portal
- Authentication
-
Authorization
- Server-level administrative roles
- Non-administrative users
- Creating contained database users for Azure AD authentication
- Groups and roles
- Row-level security
- Dynamic data masking
- Data Discovery & Classification
- Exercise: Configuring Data Discovery & Classification for SQL Database
- Auditing
- Exercise: Configuring SQL Database auditing
- Exercise: Configuring auditing for SQL Managed Instance
- Activity: Audit COPY_ONLY backup events on SQL Managed Instance using audit logs
- Transparent Data Encryption
- Azure Defender for SQL
- Securing data traffic
- Activity: Setting a minimum TLS version using the Azure portal and PowerShell for SQL Managed Instance
- Configuring and securing public endpoints in SQL Managed Instance
- Activity: Implementing RLS
- Activity: Implementing DDM
- Activity: Implementing Azure Defender for SQL to detect SQL injection and brute-force attacks
- Summary
- 7. Scalability
- 8. Elastic and instance pools
-
9. High availability and disaster recovery
- High availability
- Accelerated database recovery (ADR)
-
Disaster recovery
- Active geo-replication
- Auto-failover groups
- Activity: Configuring active geo-replication and performing manual failover using the Azure portal
- Activity: Configuring an Azure SQL Database auto-failover group using Azure portal
- Activity: Configuring active geo-replication for Azure SQL Database using PowerShell
- Activity: Configuring auto-failover groups for Azure SQL Database using PowerShell
- Activity: Configuring an auto-failover group for SQL Managed Instance
- Summary
-
10. Monitoring and tuning
- Monitoring an Azure SQL Database and SQL Managed Instance using the Azure portal
- Analyzing diagnostic logs using Azure SQL Analytics
- Activity: Monitoring Azure SQL Database with Log Analytics and Power BI
- Monitoring queries using the Query Performance Insight pane
- Monitoring an Azure SQL Database and SQL Managed Instance using DMVs
-
Tuning an Azure SQL database
- Automatic tuning
- In-memory technologies
- In-memory OLTP
- Memory-optimized tables
- Natively compiled procedures
- Columnstore indexes
- Monitoring cost
- Activity: Exploring the in-memory OLTP feature
- Monitoring and tuning an Azure SQL Managed Instance
- General Purpose instance I/O characteristics
- Monitoring the first run with the default file configuration of the TPC-C database
- Summary
- 11. Database features
- 12. App modernization
- Index
Product information
- Title: Professional Azure SQL Managed Database Administration - Third Edition
- Author(s):
- Release date: March 2021
- Publisher(s): Packt Publishing
- ISBN: 9781801076524
You might also like
book
Learn PostgreSQL
A comprehensive guide to building, managing, and securing scalable and reliable database and data warehousing applications …
book
Professional Azure SQL Database Administration - Second Edition
Leverage the features of Azure SQL database and become an expert in data management Key Features …
book
PowerShell Cookbook, 4th Edition
How do you use PowerShell to navigate the filesystem, manage files and folders, or retrieve a …
book
AWS Certified DevOps Engineer - Professional Certification and Beyond
Explore the ins and outs of becoming an AWS certified DevOps professional engineer with the help …