Skip to content

Commit eebc6db

Browse files
Merge pull request #245818 from seligj95/patch-1
Add subnet size sample calculation
2 parents 30b27a1 + 781cba5 commit eebc6db

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

articles/app-service/environment/networking.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: App Service Environment networking
33
description: App Service Environment networking details
44
author: madsd
55
ms.topic: overview
6-
ms.date: 02/06/2023
6+
ms.date: 07/21/2023
77
ms.author: madsd
88
---
99

@@ -21,7 +21,19 @@ You must delegate the subnet to `Microsoft.Web/hostingEnvironments`, and the sub
2121
The size of the subnet can affect the scaling limits of the App Service plan instances within the App Service Environment. It's a good idea to use a `/24` address space (256 addresses) for your subnet, to ensure enough addresses to support production scale.
2222

2323
>[!NOTE]
24-
> Windows Containers uses an additional IP address per app for each App Service plan instance, and you need to size the subnet accordingly. If your App Service Environment has for example 2 Windows Container App Service plans each with 25 instances and each with 5 apps running, you will need 300 IP addresses and additional addresses to support horizontal (up/down) scale.
24+
> Windows Containers uses an additional IP address per app for each App Service plan instance, and you need to size the subnet accordingly. If your App Service Environment has for example 2 Windows Container App Service plans each with 25 instances and each with 5 apps running, you will need 300 IP addresses and additional addresses to support horizontal (in/out) scale.
25+
>
26+
> Sample calculation:
27+
>
28+
> For each App Service plan instance, you need:
29+
> 5 Windows Container apps = 5 IP addresses
30+
> 1 IP address per App Service plan instance
31+
> 5 + 1 = 6 IP addresses
32+
>
33+
> For 25 instances:
34+
> 6 x 25 = 150 IP addresses per App Service plan
35+
>
36+
> Since you have 2 App Service plans, 2 x 150 = 300 IP addresses.
2537
2638
If you use a smaller subnet, be aware of the following limitations:
2739

articles/app-service/overview-vnet-integration.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Integrate your app with an Azure virtual network
33
description: Integrate your app in Azure App Service with Azure virtual networks.
44
author: madsd
55
ms.topic: conceptual
6-
ms.date: 05/24/2023
6+
ms.date: 07/21/2023
77
ms.author: madsd
88
ms.custom: UpdateFrequency3
99

@@ -73,7 +73,19 @@ When you scale up/down in size or in/out in number of instances, the required ad
7373
Because subnet size can't be changed after assignment, use a subnet that's large enough to accommodate whatever scale your app might reach. You should also reserve IP addresses for platform upgrades. To avoid any issues with subnet capacity, use a `/26` with 64 addresses. When you're creating subnets in Azure portal as part of integrating with the virtual network, a minimum size of /27 is required. If the subnet already exists before integrating through the portal, you can use a /28 subnet.
7474

7575
>[!NOTE]
76-
> Windows Containers uses an additional IP address per app for each App Service plan instance, and you need to size the subnet accordingly. If you have for example 10 Windows Container App Service plan instances with 4 apps running, you will need 50 IP addresses and additional addresses to support horizontal (up/down) scale.
76+
> Windows Containers uses an additional IP address per app for each App Service plan instance, and you need to size the subnet accordingly. If you have for example 10 Windows Container App Service plan instances with 4 apps running, you will need 50 IP addresses and additional addresses to support horizontal (in/out) scale.
77+
>
78+
> Sample calculation:
79+
>
80+
> For each App Service plan instance, you need:
81+
> 4 Windows Container apps = 4 IP addresses
82+
> 1 IP address per App Service plan instance
83+
> 4 + 1 = 5 IP addresses
84+
>
85+
> For 10 instances:
86+
> 5 x 10 = 50 IP addresses per App Service plan
87+
>
88+
> Since you have 1 App Service plan, 1 x 50 = 50 IP addresses.
7789
7890
When you want your apps in your plan to reach a virtual network that's already connected to by apps in another plan, select a different subnet than the one being used by the pre-existing virtual network integration.
7991

0 commit comments

Comments
 (0)