Azure Virtual machines that have Microsoft SQL Server installed is PaaS or IaaS
DRAG DROP - Show
This is a part of a Series “Stairway to being an Azure SQL DBA“, in which I am planning to cover everything related to working as an Azure SQL DBA. Starting with a diagram that you must have seen multiple times before. When talking about above picture and considering we are specifically concentrating on SQL Server, there isn’t anything like Software as a Service for SQL Server, and SQL Server in Azure more like as a sub-category of PaaS which is DbaaS (Database as a Service). Having said that let me explain all these topics in more detail taking SQL Server as an example. There are 4 different options for SQL Server, including On-Prem and Azure. Traditional On-Premises: This is a SQL Server installed either on Virtual Machine or the Physical Server where you own the hardware like Server, Storage and Networking, Virtualization technique and OS, and are also responsible for managing them. That will involve the cost of all the hardware and professionals required for configuring and managing it. Generally you own a data center and manage it too. This is what we are using when we are not on any cloud vendor. Infrastructure as a Service: Here everything related to hardware is owned and managed by your vendor, which in our case is Microsoft (Azure). In this case when you need to have a new server you just “deploy” or create your Virtual Machine on top of the already existing Virtualization about which you don’t need to know how is it being managed. Once you have the VM created you can install your SQL Server onto it or have a pre-installed VM image to build the VM. As far as DBA activities are concerned you will never know the difference between an On-premise SQL Server and a SQL Server installed on an Azure VM. Platform as a Service – Managed Instance: In PaaS you are just provided a platform (SQL Server in this case) and everything below that OS, Virtualization and hardware is managed by Azure. Platform as a Service – Azure SQL Database: The last option of having a SQL Server database is Azure SQL database, it is also the most abstract version available. Here you don’t have the control on SQL Server, you just provide the database name and you get your database created on a SQL Server which is Azure SQL Server, that is basically a logical container and provides a single administrative point. ConclusionThe different flavors of SQL Server make it possible for anyone in using a SQL Server. If you are a big organization making the move to Azure, want to us the data centers but still want to have control on the Operating system and the SQL Server, or you have applications which are still using SQL Server 2008, you can use IAAS platform. If you want to move to the latest version which is on Azure and also reduce the management cost of Hardware and the Operating system, with still have the SQL Server with the same capability as your On-premise SQL Server then Managed Instance is the one for you. If you are a small organization, or a team which just want a SQL Server database in the backend and dont want to worry in managing the SQL Server then Azure SQL Database is the path to go. Learn how each option fits into the Microsoft data platform and get help matching the right option to your business requirements. Whether you prioritize cost savings or minimal administration ahead of everything else, this article can help you decide which approach delivers against the business requirements you care about most. Microsoft's data platformOne of the first things to understand in any discussion of Azure versus on-premises SQL Server databases is that you can use it all. Microsoft’s data platform leverages SQL Server technology and makes it available across physical on-premises machines, private cloud environments, third-party hosted private cloud environments, and public cloud. This enables you to meet unique and diverse business needs through a combination of on-premises and cloud-hosted deployments, while using the same set of server products, development tools, and expertise across these environments. As seen in the diagram, each offering can be characterized by the level of administration you have over the infrastructure (on the X axis), and by the degree of cost efficiency achieved by database level consolidation and automation (on the Y axis). When designing an application, four basic options are available for hosting the SQL Server part of the application:
In the following sections, we will learn about SQL Server in the Microsoft public cloud: Azure SQL Database and SQL Server on Azure VMs. In addition, we will explore common business motivators for determining which option works best for your application. A closer look at Azure SQL Database and SQL Server on Azure VMsAzure SQL Database is a relational database-as-a-service (DBaaS) hosted in the Azure cloud that falls into the industry categories of Software-as-a-Service (SaaS) and Platform-as-a-Service (PaaS). SQL database is built on standardized hardware and software that is owned, hosted, and maintained by Microsoft. With SQL Database, you can develop directly on the service using built-in features and functionality. When using SQL Database, you pay-as-you-go with options to scale up or out for greater power with no interruption. SQL Server on Azure Virtual Machines (VMs) falls into the industry category Infrastructure-as-a-Service (IaaS) and allows you to run SQL Server inside a virtual machine in the cloud. Similar to SQL Database, it is built on standardized hardware that is owned, hosted, and maintained by Microsoft. When using SQL Server on a VM, you can either bring your own SQL Server license or use a pre-licensed SQL Server image from the Azure portal. In general, these two SQL options are optimized for different purposes:
The following table summarizes the main characteristics of SQL Database and SQL Server on Azure VMs: SQL DatabaseSQL Server in an Azure Virtual MachineBest for:New cloud-designed applications that have time constraints in development and marketing.Existing applications that require fast migration to the cloud with minimal changes. Rapid development and test scenarios when you do not want to buy on-premises non-production SQL Server hardware.Applications that need built-in high availability, disaster recovery, and upgrade mechanisms.Applications that do not need built-in high availability, disaster recovery, and upgrade mechanisms.Teams that do not want to manage the underlying operating system and configuration settings.If you need a customized IT environment with full administrative rights.Databases of up to 1 TB in size, or larger databases that can be horizontally or vertically partitioned using a scale-out pattern.Databases that are bigger than 1 TB in size that cannot be horizontally or vertically partitioned.Building Software-as-a-Service (SaaS) applications.Building hybrid applicationsResources:You do not want to employ IT resources for support and maintenance of the underlying infrastructure, but want to focus on the application layer.You have IT resources for support and maintenance.Total cost of ownership:Eliminates hardware costs and reduces administrative costs.Eliminates hardware costs.Business continuity:In addition to built-in fault tolerance infrastructure capabilities, Azure SQL Database provides features, such as automated backups, Point-In-Time Restore, Geo-Restore, and Active Geo-Replication to increase business continuity. For more information, see SQL Database business continuity overview.SQL Server on Azure VMs lets you to set up a high availability and disaster recovery solution for your database’s specific needs. Therefore, you can have a system that is highly optimized for your application. You can test and run failovers by yourself when needed. For more information, see High Availability and Disaster Recovery for SQL Server on Azure Virtual Machines.Hybrid cloud:Your on-premises application can access data in Azure SQL Database.With SQL Server on Azure VMs, you can have applications that run partly in the cloud and partly on-premises. For example, you can extend your on-premises network and Active Directory Domain to the cloud via Azure Virtual Network. In addition, you can store on-premises data files in Azure Storage using SQL Server Data Files in Azure. For more information, see Introduction to SQL Server 2014 Hybrid Cloud.Supports SQL Server transactional replication as a subscriber.Supports SQL Server transactional replication, disaster recovery and AlwaysOn replicas in Azure VMs.Business motivations for choosing Azure SQL Database or SQL Server on Azure VMsCostWhether you’re a startup that is strapped for cash, or a team in an established company that operates under tight budget constraints, limited funding is often the primary driver when deciding how to host your databases. In this section, we’ll first learn about the billing and licensing basics in Azure with regards to these two relational database options: SQL Database and SQL Server on Azure VMs. Then, we’ll see how we should calculate the total application cost. Billing and licensing basicsSQL Database is sold to customers as a service, not with a license, whereas licensing SQL Server on Azure VMs requires either per-minute SQL Server licensing or your own license through Software Assurance. Currently, SQL Database is available in several service tiers, all of which are billed hourly at a fixed rate based on the service tier and performance level you choose. In addition, you are billed for outgoing Internet traffic at regular data transfer rates. The Basic, Standard, and Premium service tiers are designed to deliver predictable performance with multiple performance levels to match your application’s peak requirements. You can change between service tiers and performance levels to match your application’s varied throughput needs. If your database has high transactional volume and needs to support many concurrent users, we recommend the Premium service tier. For the latest information on the current supported service tiers, see Azure SQL Database Service Tiers. You can also create elastic database pools to share performance resources among database instances. With SQL Database, the database software is automatically configured, patched, and upgraded by Microsoft, which reduces your administration costs. In addition, its built-in backup capabilities help you achieve significant cost savings, especially when you have a large number of databases. With SQL Server on Azure VMs, you can either use the platform-provided SQL Server image (which includes a license) or bring your SQL Server license. When using the Azure provided images, the operational cost depends on the VM size as well as the edition of SQL Server you choose. Regardless of VM size or SQL Server edition, you pay per-minute licensing cost of SQL Server and Windows Server, along with the Azure Storage cost for the VM disks. The per-minute billing option allows you to use SQL Server for as long as you need without buying addition SQL Server licenses. If you bring your own SQL Server license to Azure, you are charged for Windows Server and storage costs only. For more information on bring-your-own licensing, see License Mobility through Software Assurance on Azure. Calculating the total application costWhen you start using a cloud platform, the cost of running your application primarily includes the development and administration costs along with the service costs that the public cloud platform requires. Here is the detailed cost calculation for your application running in SQL Database and SQL Server on Azure VMs: When using Azure SQL Database: Total cost of application = Highly minimized administration costs + software development costs + SQL Database service costs When using SQL Server on Azure VMs: Total cost of application = Minimized software development/modification costs + administration costs + SQL Server and Windows Server licensing costs + Azure Storage costs For more information on pricing, see the following resources:
AdministrationFor many businesses, the decision to transition to a cloud service is as much about offloading complexity of administration as it is cost. With SQL Database, Microsoft administers the underlying hardware, automatically replicates all data to provide high availability, configures and upgrades the database software, manages load balancing, and does transparent failover if there is a server failure. You can continue to administer your database, but you no longer need to manage the database engine, server operating sytem or hardware. Examples of items you can continue to administer include databases and logins, index and query tuning, and auditing and security. On the other hand, you might have in-house expertise and a desire to keep control over database location down to the location of disk. With SQL Server running on Azure VMs, you have full control over the operating system and SQL Server instance configuration. With a VM, it’s up to you to decide when to update/upgrade the operating system and database software and when to install any additional software such as anti-virus and backup tools. In addition, you can control the size of the VM, the number of disks, and their storage configurations. For example, Azure allows you to change the size of a VM as needed. For information, see Virtual Machine and Cloud Service Sizes for Azure. Service Level Agreement (SLA)For many IT departments, meeting up-time obligations of a Service Level Agreement (SLA) is a top priority. In this section, we look at what SLA applies to each database hosting option. For SQL Database Basic, Standard, and Premium service tiers Microsoft provides an availability SLA of 99.99%. For the latest information, see Service Level Agreement. For the latest information on SQL Database service tiers and the supported business continuity plans, see Service Tiers. For SQL Server running on Azure VMs, Microsoft provides an availability SLA of 99.95% that covers just the Virtual Machine. This SLA does not cover the processes (such as SQL Server) running on the VM and requires that you host at least two VM instances in an availability set. For the latest information, see the VM SLA. For database high availability (HA) within VMs, you should configure one of the supported high availability options in SQL Server, such as AlwaysOn Availability Groups. Time to marketSQL Database is the right solution for cloud-designed applications when developer productivity and fast time-to-market are critical. With programmatic DBA-like functionality, it is perfect for cloud architects and developers as it lowers the need for managing the underlying operating system and database. For example, you can use the REST API and PowerShell Cmdlets to automate and manage administrative operations for thousands of databases. Features such as Elastic Database Pools allow you to focus on the application layer and deliver your solution to the market faster. SQL Server running on Azure VMs is perfect if your existing or new applications require access and control to all features of a SQL Server instance. It is also a good fit when you want to migrate existing on-premises applications and databases to Azure as-is. Since you do not need to change the presentation, application, and data layers, you save time and budget on rearchitecting your existing solution. Instead, you can focus on migrating all your solutions to Azure and in doing some performance optimizations that may be required by the Azure platform. For more information, see Performance Best Practices for SQL Server on Azure Virtual Machines. SummaryThis article explored SQL Database and SQL Server on Azure Virtual Machines (VMs) and discussed common business motivators that might affect your decision. The following is a summary of suggestions for you to consider: Choose Azure SQL Database if:
Choose SQL Server on Azure VMs if:
|