r/SQLServer • u/man__i__love__frogs • Sep 10 '25
Discussion Managed instance versus SQL Server VM in Azure - pricing experiences?
Hey there, IT Systems Engineer here, we're onboarding a new team to the company that is bringing over a SQL server and some custom apps/scripts they use to ingest data from our vendors via API or file ingestion.
We are moving away from on-prem and don't have the storage for this currently, we're looking at hosting it in Azure which is where we are moving, but with the goal of serverless where possible in mind - this is mainly for both pricing and support overhead reasoning. They will need cross db queries and we may lack the expertise to maintain a workaround.
This leads me to believe our only options will be to simply run a VM with SQL server, or go to a managed instance.
The storage is nothing crazy, just 3TB, and it'll be light usage. Ingestion is manual because when the files are provided by the vendor is not predictable. Outside of that regular use is just manual queries for reporting purposes that would happen in business hours. So we don't really need any kind of scalability, it will probably run on minimum resources and in fact deallocating outside of use is what we would be looking into.
From what I am reading it sounds like a managed instance is going to be pricier than a VM in this case.
We do have a few other apps that require SQL servers we currently host on prem, but our goal is to move those to the cloud as well and ultimately go serverless.
I realize this is a bit of a loaded question and you don't have a picture of our whole environment, just hoping to get some experience in the pros and cons of each approach.
edit: appreciate the help everyone, going to spin up a next-gen MI on the minimum possible specs for our requirements, and maybe a Win 11 VM and give it a whirl. It will likely be much pricier and we don't need cluster/HA, but at this point less overhead and futureproofing is a bonus. We can always fall back to SQL server on a VM if it doesn't work as we hope.
7
u/Achsin 1 Sep 10 '25
I can’t speak to VM with SQL Server in Azure, but Managed Instance is slow. However slow you’re thinking, it was worse. Even after we upgraded to the fastest disk tier we were still seeing disk latency well over 600ms.
13
u/IndependentTrouble62 Sep 10 '25
I am Senior Data Engineer and havr also been a SQL Server DBA. I have menaged everything from on-prem bare metal SQL Servers to Azure Database. The dirty secret is that if you own a SQL Server license the cheapest and most performant option is running a SQL VM. Managed instance is terrible dont do it. Azure DB doesnt allow cross database queries minus a preview feature. Just host an Azure VM with SQL Server.
5
u/dbrownems Microsoft Employee Sep 10 '25 edited Sep 10 '25
Note that the limitations of Managed Instance mentioned in the other answers are the motivation for the new architecture for MI here:
Use Next-gen General Purpose service tier (preview) - Azure SQL Managed Instance | Microsoft Learn
But SQL Server on Azure VMs is an awesome product, though, with simplified deployment and management and all the control of custom Azure disk configurations and VM series choices, including core-constrained VM SKUs. If you have a demanding workload and a team with the skills to configure and operate a VM-based solutions, it will always have a price/perf edge over a fully-managed solution.
For instance, all MI and Azure SQL Database always run in Full recovery, and always have service-managed backups. So to ensure the recovery SLAs, the service constrains the rate-of-change for the databases, and there's a log rate governor that prevents you from getting too far ahead of your recovery path. In Azure VMs you can relax your RTO/RPO to achieve higher throughput if you like.
4
u/xxxxxxxxxxxxxxxxx99 Sep 11 '25
I'd agree with many of the other commenters that SQL on a VM is a better way to go. The only point I'd add though is that when you have real SQL Server, you should have a real DBA to look after it. That's less necessary on Managed Instances.
1
u/warehouse_goes_vroom Microsoft Employee Sep 11 '25
Is this basically an OLAP workload then? If so, Microsoft Fabric Warehouse might be an interesting option. But I'd need more details to say whether it's a good fit. I work on Fabric Warehouse, for context.
1
u/RobCarrol75 Sep 11 '25 edited Sep 11 '25
I’ve migrated lots of SQL Servers across to SQL Managed Instance successfully. Choose Next-Gen if you are going General Purpose as that gives you greater scalability. Monitor performance using Database Watcher and dial up the IOPS if you need to. Use shutdown/startup policies to save money if they don’t need to be up 24x7.
Remember a SQL Managed instance has built in HA, so you would need to build a Failover Cluster Instance/Availability Group on Azure VMs to get the same availability.
1
u/techsamurai11 Nov 05 '25
We have 4 dev databases on AWS (over the years) but our main production is on-prem. AWS is 5-10x slower in our tests and we can't move the needle by adding MiBs or IOPS or changing SQL Server versions.
We have 10 years of AWS experience as we use it for development and have had multiple environments.
Whether using GP2 drives with 240 IOPS on SQL Server 2008 or GP3 drives with 2000 MiB and 37,5000 IOPS on SQL Server 2022 and Windows 2025, they are all metronomic. It almost seems like AWS is aware of database transaction and there's a speed limit enforced. Passmark Disk shows drive speed differences but SQL Server is somehow unable to take advantage of them. So copying a file would be faster from file explorer but not through SQL Server.
We are considering migrating to Azure. Should we expect such slow performance? Obviously, it will be a vm with SQL Server installed on it by us.
We were hoping to improve our database improvement with Gen 5 drives on-prem.
3
u/Monopolicious Sep 10 '25
We use managed instances for circa 30 databases including high volume transactional insurance websites and never experienced an issue
2
u/thepotplants Sep 11 '25
Unless Azure is a foregone conclusion I would seriously consider Postgres in AWS.
Short version is that it's about 1/4 of the price of SQL on Azure.
1
u/TooHotTea Sep 11 '25
SQL server on a VM, no big.
Absolutely hate supporting SQL server running on a Azure mounted Vmware VM. all the same work as on-prem with little azure functionality.
managed Instance is "ok". can be slightly slower, depends on perf needs.
azure DB is cool for a single database
1
u/Lost_Term_8080 Sep 12 '25
Managed instance will be extremely expensive for an equivalent amount of performance, but it offers a lot for DR, HA, Patching, Security, etc.
Forget about using general purpose, even extremely light loads will disappoint you, you are going to need to go with business critical if you want to avoid constant i/o problems
After you get the managed instance set up, you are still fully responsible for the SQL server, it doesn't actually save you that much labor in support. The best you can hope for, is that if your shop is one of those places that still insist on patching in the middle of the night, you won't have to do that anymore and MS will patch it for you - and while you define maintenance windows for MS to do their maintenance events, the maintenance windows are quite broad and there are still some types of disruptive maintenance that will periodically occur outside of the window. Maintenance windows also take several hours to change, so if you realize you need to move it a few hours before a maintenance window is happening, you may be out of luck. If you have applications that are still stuck 20 years ago and can't handle an AAG failover, this may also be a warning to either fix the applications or that managed instances do not meet your requirements.
If you want to reduce your support, you need to go to SQL DB, but keep in mind there, that while MS will do an OK job of managing the database for you, if something they do doesn't work, your options are extremely limited on what you can do other than throwing more DTUs or cores at it, and there are some functional differences between SQL Server and SQL DB.
1
u/Codeman119 Sep 17 '25
Ok well that is not comparable. I am talking on the same drive type and spin rate(HDD) and same amount of drives in the pool with same stripe setup.
1
u/jdanton14 Microsoft MVP Sep 10 '25
Why not use Azure SQL Database hyperscale?
Managed Instance has a number of problems--the first being as u/Achsin mentions, the storage perf, particularly on general purpose, makes running molasses seem very quick. The second is in order to scale storage, you need to scale compute, which means just to load your 3 TB, you'd need 8 cores. If the data grows, you cost will go up exponentially, especially past 8 TB.
Both Hyperscale and SQL Server in VM, break that paradigm and storage growth can scale at the cost of storage, not storage+compute+SQL Server licensing.
Azure SQL DB has a number of limitations--no cross DB queries, no SQL agent--if you are wholly dependent on this things it won't be a good option, obviously. With a VM, you can also setup auto-patching, and automated backups, so while you still have an OS to manage, you don't have to do much.