Azure Sql Managed instance poorer performance than Azure VM or ANS server

Mark Windle 40 Reputation points
2025-04-25T17:13:08.5366667+00:00

We have a few public APIs running on an Azure VM with a separate Azure SQL VM. These having been running a fair few year, the servers are Windows Server 2016 and as part of modernising away from some other older servers hosted by ANS in Manchester, I have set up an SQL Managed instance.

I am finding the performance of the SQL Managed instance quite poor. Whilst one of the APIs may return in 3 seconds from the VM database and even 3.5 seconds if the database is hosted on the ANS server (I did this just for testing purposes), the Manage instance may take 5.5-6 seconds. This is pretty consistent in testing and I have no idea why.

Everything is on UK South, so while it may not be 100% optimised, I wouldn't expect it to be worse than a server in Manchester. Configurations are both servers are fairly similar with 4 cores, premium on the Managed instance, and also probably around 8 years newer.

I feel like I must have misconfigured something, so any advice would be appreciated. The same queries are being run on the same database backup copy, so should have the same indexes etc.

Azure SQL Database
{count} votes

Accepted answer
  1. Sai Raghunadh M 3,885 Reputation points Microsoft External Staff Moderator
    2025-04-29T16:27:08.6566667+00:00

    Hi @ Mark Windle

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    We have a few public APIs running on an Azure VM with a separate Azure SQL VM. These having been running a fair few year, the servers are Windows Server 2016 and as part of modernising away from some other older servers hosted by ANS in Manchester, I have set up an SQL Managed instance.

    I am finding the performance of the SQL Managed instance quite poor. Whilst one of the APIs may return in 3 seconds from the VM database and even 3.5 seconds if the database is hosted on the ANS server (I did this just for testing purposes), the Manage instance may take 5.5-6 seconds. This is pretty consistent in testing and I have no idea why.

    Everything is on UK South, so while it may not be 100% optimised, I wouldn't expect it to be worse than a server in Manchester. Configurations are both servers are fairly similar with 4 cores, premium on the Managed instance, and also probably around 8 years newer.

    I feel like I must have misconfigured something, so any advice would be appreciated. The same queries are being run on the same database backup copy, so should have the same indexes etc.

    Solution:

    So it appears it was is mainly latency issue. Moving the API to a new VM within the Managed instances VNET seems to have brought them mostly inline.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.