Azure SQL Database — Managed Relational Database
Deploy and manage Azure SQL Database — fully managed SQL Server in the cloud with built-in HA and backups.
“Welcome back. Today we're covering Azure SQL Database — Microsoft's fully managed relational database service. If you've ever managed an on-premises SQL Server, you know the pain of patching, backups, high availability configuration, and performance tuning. Azure SQL Database eliminates most of that operational work while giving you a full SQL Server-compatible database engine.”
“You have two ways to run SQL Server in Azure. IaaS — a VM with SQL Server installed — gives you complete control but you manage everything: OS patches, SQL updates, backup schedules, always-on availability groups. Azure SQL Database is PaaS — Microsoft patches the OS and SQL engine, manages high availability, takes automated backups, and provides a 99.99% SLA. For the vast majority of workloads, Azure SQL Database is the better choice.”
“Azure SQL offers two purchasing models. DTU — Database Transaction Units — bundles compute, storage, and IO into a single unit. It's simpler but less flexible. The vCore model lets you independently choose the number of CPU cores and memory, similar to how you size a VM. vCore is recommended for production workloads because the pricing is transparent and you can reserve compute for discounts. The Serverless tier pauses the database when it hasn't been used for a while — perfect for dev/test environments that don't need to run 24/7.”
“High availability in Azure SQL is automatic — there's nothing to configure. General Purpose tier uses remote storage with automatic replica management behind the scenes. Business Critical tier maintains three in-memory replicas for ultra-fast failover — typically under 5 seconds. Failover is transparent to your application, typically requiring only a reconnect. Business Critical also gives you a free read replica you can use for reporting workloads, reducing load on your primary.”
“Azure SQL Database takes automated backups on your behalf — full weekly, differential every 12 hours, transaction logs every 5-10 minutes. This means you can restore to any point in the last 7 to 35 days — down to the minute. No backup jobs to schedule, no backup storage to manage. For compliance requirements, long-term retention keeps backups for up to 10 years. Backups are stored in geo-redundant storage by default, protecting you even if an entire region goes down.”
“Azure SQL has multiple security layers. Firewall rules block all connections except from explicitly allowed IP addresses or Azure services. Microsoft Entra ID authentication eliminates passwords — users authenticate with their corporate identity. Always Encrypted is remarkable — encryption and decryption happen in your application code, so the database server never sees sensitive data in plaintext. TDE encrypts the database files at rest. Advanced Threat Protection uses machine learning to detect suspicious patterns like SQL injection attempts.”
“Azure SQL includes built-in performance tools. Query Performance Insight shows you which queries are consuming the most CPU, IO, or time — invaluable for optimization. Automatic Tuning goes a step further — Azure monitors your query patterns, identifies beneficial indexes, creates them, and verifies they improve performance. If they don't, it rolls back. Elastic Pools let multiple databases share a resource pool — great for SaaS applications with unpredictable per-tenant traffic.”
“Let me show you how to get a SQL database running in Azure. I'll create a SQL Server logical server and a database, configure firewall rules to allow my connection, then connect with Azure Data Studio to create a table and run some queries. I'll also show you the Query Performance Insight blade and how to restore to a previous point in time — these are the everyday DBA tasks in Azure SQL.”
“Azure SQL Database is the smart choice for relational data in Azure. You get the full power of SQL Server without the operational burden. Next video we explore Azure Cosmos DB — Microsoft's globally distributed NoSQL database. If you need single-digit millisecond latency at any scale, anywhere in the world, Cosmos DB is your answer. See you there.”
- 1Create Azure SQL Server and SQL Database (General Purpose, 2 vCores)
- 2Configure firewall rules to allow your IP
- 3Connect using Azure Data Studio or SSMS
- 4Create a table and insert sample data
- 5Run a query and show Query Performance Insight
- 6Configure automatic backups and retention
- 7Show Point-in-time restore option
- 8Enable geo-replication to secondary region