You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/sql-database/sql-database-managed-instance-vnet-configuration.md
+27-61Lines changed: 27 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ With introduction of _Network Intent Policy_ we allow you to add Network securit
49
49
You could now use NSG to narrow down the IP ranges from which applications and users could query and manage the data by filtering network traffic that goes to port 1433.
50
50
51
51
> [!IMPORTANT]
52
-
> When configuring NSG rules that will restrain access to port 1433 you will also need to have the inbound rules in the table below included before any _Deny_ rules. Otherwise Network Intent Policy will block the change as non compliant.
52
+
> When you are configuring the NSG rules that will restrain access to port 1433 you will also need to insert the highest priority inbound rules displayed in the table below. Otherwise Network Intent Policy will block the change as non compliant.
53
53
54
54
| NAME |PORT |PROTOCOL|SOURCE |DESTINATION|ACTION|
@@ -61,10 +61,13 @@ We also improved routing experiance so in addition to 0.0.0.0/0 next hop type In
61
61
62
62
## Determine the size of subnet for Managed Instances
63
63
64
-
When you create a Managed Instance, Azure allocates a number of virtual machines depending on the tier size you select during provisioning. Because these virtual machines are associated with your subnet, they require IP addresses. To ensure high availability during regular operations and service maintenance, Azure may allocate additional virtual machines. As a result, the number of required IP addresses in a subnet is larger than the number of Managed Instances in that subnet.
64
+
When you create a Managed Instance, Azure allocates a number of virtual machines depending on the tier you selected during the provisioning. Because these virtual machines are associated with your subnet, they require IP addresses. To ensure high availability during regular operations and service maintenance, Azure may allocate additional virtual machines. As a result, the number of required IP addresses in a subnet is larger than the number of Managed Instances in that subnet.
65
65
66
66
By design, a Managed Instance needs a minimum of 16 IP addresses in a subnet and may use up to 256 IP addresses. As a result, you can use subnet masks /28 to /24 when defining your subnet IP ranges.
67
67
68
+
> [!IMPORTANT]
69
+
> Subnet size with 16 IP addresses is the bare minimum with limited potential for the further Managed Instance scale out. Choosing subnet with the prefix /27 or below is highly recommended.
70
+
68
71
If you plan to deploy multiple Managed Instances inside the subnet and need to optimize on subnet size, use these parameters to form a calculation:
69
72
70
73
- Azure uses five IP addresses in the subnet for its own needs
@@ -73,6 +76,9 @@ If you plan to deploy multiple Managed Instances inside the subnet and need to o
73
76
74
77
**Example**: You plan to have three General Purpose and two Business Critical Managed Instances. That means you need 5 + 3 * 2 + 2 * 4 = 19 IP addresses. As IP ranges are defined in power of 2, you need the IP range of 32 (2^5) IP addresses. Therefore, you need to reserve the subnet with subnet mask of /27.
75
78
79
+
> [!IMPORTANT]
80
+
> Calculation displayed above will become obsolete with further improvements and for ease of use replaced with the online Managed Instance subnet size estimator.
81
+
76
82
## Create a new virtual network for Managed Instance using Azure Resource Manager deployment
77
83
78
84
The easiest way to create and configure virtual network is to use Azure Resource Manager deployment template.
@@ -94,59 +100,6 @@ The easiest way to create and configure virtual network is to use Azure Resource
94
100
95
101
You might change the names of VNet and subnets and adjust IP ranges associated to your networking resources. Once you press "Purchase" button, this form will create and configure your environment. If you don't need two subnets you can delete the default one.
96
102
97
-
## Create a new virtual network for Managed Instances using portal
98
-
99
-
Creating an Azure virtual network is a prerequisite for creating a Managed Instance. You can use the Azure portal, [PowerShell](../virtual-network/quick-create-powershell.md), or [Azure CLI](../virtual-network/quick-create-cli.md). The following section shows the steps using the Azure portal. The details discussed here apply to each of these methods.
100
-
101
-
1. Click **Create a resource** in the upper left-hand corner of the Azure portal.
102
-
2. Locate and then click **Virtual Network**, verify the **Resource Manager** is selected as the deployment mode, and then click **Create**.
The address space and subnet are specified in CIDR notation.
113
-
114
-
> [!IMPORTANT]
115
-
> The default values create subnet that takes all the VNet address space. If you choose this option, you can not create any other resources inside the virtual network other than Managed Instance.
116
-
117
-
The recommended approach would be the following:
118
-
- Calculate subnet size by following [Determine the size of subnet for Managed Instance](#determine-the-size-of-subnet-for-managed-instances) section
119
-
- Assess the needs for the rest of VNet
120
-
- Fill in VNet and subnet address ranges accordingly
121
-
122
-
Make sure that Service endpoints option stays **Disabled**.
Once your VNet has been created, you are ready to create your Managed Instance.
149
-
150
103
## Modify an existing virtual network for Managed Instances
151
104
152
105
The questions and answers in this section show you how to add a Managed Instance to existing virtual network.
@@ -160,14 +113,27 @@ You can only create a Managed Instance in Resource Manager virtual networks.
160
113
If you would like to create new one:
161
114
162
115
- Calculate subnet size by following the guidelines in the [Determine the size of subnet for Managed Instances](#determine-the-size-of-subnet-for-managed-instances) section.
163
-
- Follow steps in [Add, change, or delete a virtual network subnet](../virtual-network/virtual-network-manage-subnet.md).
116
+
- Follow the steps in [Add, change, or delete a virtual network subnet](../virtual-network/virtual-network-manage-subnet.md).
164
117
- Create a route table that contains single entry, **0.0.0.0/0**, as the next hop Internet and associate it with the subnet for the Managed Instance.
165
118
166
-
In case you would like to create a Managed Instance inside an existing subnet:
167
-
- Check if the subnet is empty - a Managed Instance cannot be created in a subnet that contains other resources including the Gateway subnet
168
-
- Calculate subnet size by following the guidelines in the [Determine the size of subnet for Managed Instances](#determine-the-size-of-subnet-for-managed-instances) section and verify that it is sized appropriately.
169
-
- Check that service endpoints are not enabled on the subnet.
170
-
- Make sure that there are no network security groups associated with the subnet
119
+
In case you would like to create a Managed Instance inside an existing subnet we recommend you to use the PowerShell script below to prepare the subnet.
0 commit comments