Multiple virtual clusters in managed instance subnet?

David C 191 Reputation points
2022-02-08T19:30:51.6+00:00

Is it OK to deploy more than one MI per subnet?

When adding 2nd, 3rd, etc. MI's to one subnet, is a new virtual cluster created, or the original one used? I'll try adding multiple MI's and observe for myself, but at the moment, waiting another team's collaboration before I can proceed.

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2022-02-08T21:01:25.24+00:00

    Hi, @David C Thanks for posting your question in the Microsoft forum.

    Thanks, @Alberto Morillo for your contribution and for providing the detailed information.
    172325-image.png
    Yes, you can as long as you have enough IP addresses. This outlines how to calculate how many you need and unless you are using pools it will spin up clusters under the covers Determine required subnet size & range - Azure SQL Managed Instance | Microsoft Learn

    Regards
    Geetha


1 additional answer

Sort by: Most helpful
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2022-02-08T20:45:40.83+00:00

    Creating a dedicated VNET for each managed instance is optional. If you want to have only one subnet in your Virtual Network (Virtual Network blade will enable you to define first subnet called default ), you need to know that Managed Instance subnet can have between 16 and 256 addresses. Therefore, use subnet masks /28 to /24 when defining your subnet IP ranges for default subnet. If you know how many instances you will have make sure that you have at least 2 addresses per instance + 5 system addresses in the default subnet.

    Subnet is dedicated to Managed Instance and cannot contain any other resource (i.e. Azure VMs should not be placed in that subnet.)


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.