Skip to main content

Managed Instances - Closing the gap between Azure SQL Database and Azure VM with SQL Server

In one of my previous post, I talked about different flavors of SQL inside Azure. I saw that many people were interested about Managed Instances.
In this post, I will present Managed Instances services, that are still in preview, but it might be a game changer for companies that needs to do a migration from on-premises to Azure and they have compatibility problems with Azure SQL Databases.

For this kind of scenario, the only options used to be Azure VMs, that is in the end IaaS and require extra effort to manage the VM and SQL Server cluster that is running on top of it. In one word you cannot put your database on auto-pilot and focusing on your business and not on the infrastructure.
The current flavors that are available on the market when you put SQL and Azure together are:

  • Azure SQL Databases
  • Elastic Pool
  • Azure VMs
  • … Managed Instance

Overview
Managed Instance is a new service inside Azure that is allowing us a one-to-one migration from on-premises to Azure, without worrying about many compatibilities issues that you might have when you want to do such a change.

Things like SQL Agent, Profiler, cross DB querying, CDC, CLR and service broker are supported inside this new service. I’m avoid to put the full list of all features, just remember that almost all the features available inside Azure SQL Database and Server are available also inside Managed Instances.
The compatibility between SQL Server and Managed Instances is not 100%, there are some small things that we need to be aware, but it is much better than the one that we used to have between SQL Server and Azure SQL Databases. It's more closer to 100%, but still might create issues for some edge scenarios.

New features
Features like dynamic scaling (based on our needs), point in time restoration, geo-redundancy and geo-replication are built in, together with a 99.99% SLA where automatic failover makes this service attractive to any big organization.
An interesting option that Managed Instances has is the upgrades and updates policy. It is allowing user administrators to control the role-out of it. In comparison with Azure SQL Database, where the user has no control on any updates that are happening behind the scene to the service.
The most important features related to security in my perspective are:

  • Private IP address
  • VNET native support

These two new features combined gives us the possibility to add the Managed Instance service to our private VNET, without being accessible from other Azure Services or from public internet.
Migration from SQL Server to Managed Instances is happening at SQL Server level not at database level, enabling us to migrate all our databases in one step.

The support of global temp tables together with cross database queries gives us the possibility to do things in the same way that we would do on-premises. The new CLR support enable us to run .NET native code inside Managed Instances, that was not possible inside Azure SQL Databases.

Migration capabilities 
The maximum size of a database is 35TB with the support of doing a migration with a minimum downtime (DMS support). The current migration solution that is coming with Managed Instances enable us to do a live migration without having to put the database offline, being able to do live synchronization between on-premises and target storage.
The backward compatibility between SQL Server and Managed Instances starts with SQL Server 2005 and ends with the latest version of SQL.

What we don’t have? (yet)
First of all modules like SSIS, SSRS and SSAS are not supported inside Managed Instances and needs to be deploy separately. Below you can find some alternatives to each of them:

  • SSRS – Can be deployed to an Azure VM or it can migrated to PowerBI
  • OLAP – Could run inside Azure Analysis Services 
  • SSIS – Can run inside Azure Data Factory

Pricing
As we already seen, the capacities of Managed Instances are different from the one offered be Azure SQL Databases. This happens because we are a little more closer to the hardware in comparison with Azure SQL Server.
Taking this into account the pricing model is different. Even if it is not public available yet, we should keep in mind that we will be charted in a similar way as we are when we would use VMs. The service tiers that will be defined might be defined around:

  • vCore
  • Database size
  • IOs operations
  • Backups size
Conclusion
This new service is closing a gap between Azure SQL Server and Azure VM+SQL Server, especially for legacy and heavy systems, where you need more control of the platform.

Comments

Popular posts from this blog

Windows Docker Containers can make WIN32 API calls, use COM and ASP.NET WebForms

After the last post , I received two interesting questions related to Docker and Windows. People were interested if we do Win32 API calls from a Docker container and if there is support for COM. WIN32 Support To test calls to WIN32 API, let’s try to populate SYSTEM_INFO class. [StructLayout(LayoutKind.Sequential)] public struct SYSTEM_INFO { public uint dwOemId; public uint dwPageSize; public uint lpMinimumApplicationAddress; public uint lpMaximumApplicationAddress; public uint dwActiveProcessorMask; public uint dwNumberOfProcessors; public uint dwProcessorType; public uint dwAllocationGranularity; public uint dwProcessorLevel; public uint dwProcessorRevision; } ... [DllImport("kernel32")] static extern void GetSystemInfo(ref SYSTEM_INFO pSI); ... SYSTEM_INFO pSI = new SYSTEM_INFO(

ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded

Today blog post will be started with the following error when running DB tests on the CI machine: threw exception: System.InvalidOperationException: The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information. at System.Data.Entity.Infrastructure.DependencyResolution.ProviderServicesFactory.GetInstance(String providerTypeName, String providerInvariantName) This error happened only on the Continuous Integration machine. On the devs machines, everything has fine. The classic problem – on my machine it’s working. The CI has the following configuration: TeamCity .NET 4.51 EF 6.0.2 VS2013 It see

Navigating Cloud Strategy after Azure Central US Region Outage

 Looking back, July 19, 2024, was challenging for customers using Microsoft Azure or Windows machines. Two major outages affected customers using CrowdStrike Falcon or Microsoft Azure computation resources in the Central US. These two outages affected many people and put many businesses on pause for a few hours or even days. The overlap of these two issues was a nightmare for travellers. In addition to blue screens in the airport terminals, they could not get additional information from the airport website, airline personnel, or the support line because they were affected by the outage in the Central US region or the CrowdStrike outage.   But what happened in reality? A faulty CrowdStrike update affected Windows computers globally, from airports and healthcare to small businesses, affecting over 8.5m computers. Even if the Falson Sensor software defect was identified and a fix deployed shortly after, the recovery took longer. In parallel with CrowdStrike, Microsoft provided a too