Azure SQL Database Administration-Overview
Azure SQL Database Administration-Overview
Azure SQL Administration involves managing and maintaining Azure SQL Database, a fully managed
platform-as-a-service (PaaS) offering by Microsoft.
Azure SQL includes Azure SQL Database, SQL Managed Instance, and SQL Server on Azure VMs, each
designed to handle different database management requirements.
Azure SQL administrators are responsible for tasks like deployment, monitoring, performance tuning, security,
backups, scaling, and cost management.
● Fully managed SQL database service with built-in high availability, backups, and scaling.
● Suitable for new cloud-native applications and workloads that require a PaaS model.
● Deployment models:
○ Single Database: Dedicated compute and storage for each database.
https://www.sqldbachamps.com
○ Elastic Pools: Shared resources across multiple databases to optimize costs for variable
workloads.
○ Serverless: Automatically scales compute based on demand and pauses during inactivity,
reducing costs.
● Managed instance providing nearly 100% compatibility with on-premises SQL Server.
● Suitable for migrating existing SQL Server workloads with minimal changes.
● Supports advanced features like SQL Server Agent, linked servers, and cross-database queries.
● Provides complete control over the SQL Server instance, allowing administrators to manage the OS,
patches, backups, and disaster recovery.
● Ideal for highly customized environments where PaaS limitations are not acceptable.
https://www.sqldbachamps.com Praveen Madupu +91 98661 30093
Sr SQL Server DBA, Dubai
praveensqldba12@gmail.com
a. Deployment Options
https://www.sqldbachamps.com
4. Storage Configuration:
○ Configure disk types (Standard SSD, Premium SSD, etc.) based on IOPS and throughput
requirements.
○ Scale storage separately from compute in the Hyperscale tier.
b. Data Migration
a. Monitoring Tools
1. Azure Monitor:
○ Provides a centralized platform for monitoring Azure SQL databases.
○ Collects key metrics such as CPU usage, DTUs (Database Transaction Units), IOPs, and query
performance.
2. SQL Insights:
○ Advanced performance monitoring tool for SQL databases, offering deeper insights into query
execution, wait statistics, and database-level metrics.
3. Azure Metrics Explorer:
○ Allows visualization of performance data and setting up alerts for critical metrics such as CPU
spikes, memory usage, and IO throughput.
4. Query Store:
○ Tracks query performance over time and stores execution plans, making it easier to identify
performance regressions and tuning opportunities.
○ Available in both Azure SQL Database and SQL Managed Instance.
https://www.sqldbachamps.com
b. Automated Maintenance
1. Automated Patching:
○ Azure SQL databases are automatically patched with critical updates, ensuring that databases
remain secure.
○ Managed Instance allows you to set maintenance windows for greater control over patching.
2. Index Maintenance:
○ Use Azure SQL Database Advisor to receive recommendations for index creation and removal to
optimize query performance.
○ Automatic tuning can apply these recommendations for you, including automatic index
management.
3. Version Management:
○ Azure SQL automatically keeps the database engine up to date, but Managed Instance gives you
control over the compatibility level to support legacy applications.
https://www.sqldbachamps.com Praveen Madupu +91 98661 30093
Sr SQL Server DBA, Dubai
praveensqldba12@gmail.com
4. Performance Tuning
Optimizing performance is key to ensuring that Azure SQL databases handle workloads efficiently.
b. Index Tuning
1. Automatic Indexing:
○ Azure SQL Database can automatically create and drop indexes based on query patterns and
performance statistics.
○ Manual indexing can also be performed via SQL Server Management Studio (SSMS) or T-SQL.
https://www.sqldbachamps.com
2. Index Fragmentation:
○ Regularly monitor and rebuild fragmented indexes to improve query performance.
○ Azure SQL Advisor provides recommendations for index defragmentation.
c. Caching
1. In-Memory OLTP:
○ Azure SQL supports In-Memory OLTP, a feature that allows performance improvements for
transactional workloads by storing frequently accessed data in memory.
2. SQL Caching:
○ Leverage Azure Cache for Redis to cache frequently queried data, reducing database load.
d. Scaling
1. Vertical Scaling:
○ Increase or decrease the vCores and storage limits based on the workload. This can be done with
minimal downtime in Azure SQL Database and Managed Instance.
2. Horizontal Scaling:
○ In the Hyperscale tier, storage can grow dynamically, and read replicas can be added for better
read scalability.
○ Elastic pools provide a way to scale horizontally by sharing compute resources across multiple
databases.
https://www.sqldbachamps.com Praveen Madupu +91 98661 30093
Sr SQL Server DBA, Dubai
praveensqldba12@gmail.com
5. Security
Azure SQL databases come with comprehensive built-in security features to ensure data protection and
compliance with industry regulations.
b. Data Encryption
https://www.sqldbachamps.com
2. Always Encrypted:
○ Protect sensitive data (e.g., credit card numbers) by enabling Always Encrypted, which ensures
that the encryption keys are only accessible by the application and not by the database engine
itself.
3. Encryption in Transit:
○ All connections to Azure SQL are secured using SSL/TLS, ensuring that data is encrypted in
transit between applications and the database.
a. Automated Backups
1. Point-in-Time Restore:
○ Azure SQL automatically performs full backups weekly, differential backups every 12 hours, and
transaction log backups every 5-10 minutes.
○ Databases can be restored to any point within the configured retention period (up to 35 days for
standard backups, up to 10 years for long-term retention).
2. Long-Term Backup Retention (LTR):
○ Configure long-term backup retention policies for compliance, ensuring backups are stored for
up to 10 years.
b. Geo-Redundant Backups
● Enable geo-redundant backups to ensure that backups are replicated to a secondary region for disaster
recovery.
● Supports geo-restore, allowing you to restore your database in another Azure region in case of a regional
https://www.sqldbachamps.com
outage.
c. Active Geo-Replication
1. Failover Groups:
○ Create failover groups with automatic or manual failover capabilities for high-availability
configurations across multiple regions.
○ Replicate databases asynchronously to one or more readable secondary databases for business
continuity.
2. Active Geo-Replication:
○ Provides readable replicas in different regions, ensuring low-latency read access and disaster
recovery capabilities.
https://www.sqldbachamps.com Praveen Madupu +91 98661 30093
Sr SQL Server DBA, Dubai
praveensqldba12@gmail.com
b. Reserved Capacity
https://www.sqldbachamps.com
2. Azure Advisor:
○ Get cost optimization recommendations from Azure Advisor, such as eliminating unused
resources, rightsizing databases, and purchasing reserved capacity.
Summary:
Azure SQL administration requires a blend of technical expertise in SQL Server management and cloud
operations.
By leveraging Azure’s built-in automation, monitoring, and security features, Azure SQL administrators can
efficiently manage databases with minimal overhead while ensuring high availability, security, and performance.
Understanding and using Azure SQL’s scaling, disaster recovery, and cost management options is crucial to
effectively optimizing database resources in the cloud.