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
#customer intent: As a deployment engineer, I want to integrate web apps in Azure App Service with our Azure virtual networks.
11
12
---
12
13
13
14
# Enable virtual network integration in Azure App Service
@@ -21,23 +22,25 @@ The virtual network integration feature requires:
21
22
- An App Service pricing tier [that supports virtual network integration](./overview-vnet-integration.md).
22
23
- A virtual network in the same region with an empty subnet.
23
24
24
-
The subnet must be delegated to Microsoft.Web/serverFarms. If the delegation isn't done before integration, the provisioning process configures this delegation. The subnet must be allocated an IPv4 `/28` block (16 addresses). We recommend that you have a minimum of 64 addresses (IPv4 `/26` block) to allow for maximum horizontal scale.
25
+
The subnet must be delegated to Microsoft.Web/serverFarms. If you don't delegate before integration, the provisioning process configures this delegation. The subnet must be allocated an IPv4 `/28` block (16 addresses). We recommend that you have a minimum of 64 addresses (IPv4 `/26` block) to allow for maximum horizontal scale.
25
26
26
-
If the virtual network is in a different subscription than the app, you must ensure that the subscription with the virtual network is registered for the `Microsoft.Web` resource provider. You can explicitly register the provider[by following this documentation](../azure-resource-manager/management/resource-providers-and-types.md#register-resource-provider), but it's automatically registered when creating the first web app in a subscription.
27
+
If the virtual network is in a different subscription than the app, ensure that the subscription with the virtual network is registered for the `Microsoft.Web` resource provider. The provider is registered when you create the first web app in a subscription. To explicitly register the provider, see [Register resource provider](../azure-resource-manager/management/resource-providers-and-types.md#register-resource-provider).
27
28
28
29
## Configure in the Azure portal
29
30
30
-
1. Go to **Networking**in the App Service portal. Under **Outbound traffic configuration**, select **Virtual network integration**.
31
+
1. Go to your app in the Azure portal. Select **Settings** > **Networking**. Under **Outbound traffic configuration**, next to **Virtual network integration**, select the **Not configured** link.
31
32
32
33
1. Select **Add virtual network integration**.
33
34
34
-
:::image type="content" source="./media/configure-vnet-integration-enable/vnetint-app.png" alt-text="Screenshot that shows selecting Virtual network integration.":::
35
+
:::image type="content" source="./media/configure-vnet-integration-enable/vnetint-app.png" alt-text="Screenshot that shows selecting Virtual network integration.":::
35
36
36
-
1.The dropdown list contains all the virtual networks in your subscription in the same region. Select an empty pre-existing subnet or create a new subnet.
37
+
1.Select a subscription and virtual network.
37
38
38
-
:::image type="content" source="./media/configure-vnet-integration-enable/vnetint-add-vnet.png" alt-text="Screenshot that shows selecting the virtual network.":::
39
+
1. Under **Subnet**, the dropdown list contains all the virtual networks in your subscription in the same region. Select an empty preexisting subnet or create a new subnet. Select **Connect**.
39
40
40
-
During the integration, your app is restarted. When integration is finished, you see details on the virtual network you're integrated with.
41
+
:::image type="content" source="./media/configure-vnet-integration-enable/vnetint-add-vnet.png" alt-text="Screenshot that shows selecting the virtual network.":::
42
+
43
+
During the integration, your app is restarted. When integration finishes, you see details on the virtual network that you integrated with.
> The command checks if the subnet is delegated to Microsoft.Web/serverFarms and applies the necessary delegation if it isn't configured. If the subnet was configured, and you don't have permissions to check it, or if the virtual network is in another subscription, you can use the `--skip-delegation-check` parameter to bypass the validation.
54
+
> The command checks if the subnet is delegated to Microsoft.Web/serverFarms. If it isn't configured, the command applies the necessary delegation. If the subnet was configured and you don't have permissions to check it, or if the virtual network is in another subscription, you can use the `--skip-delegation-check` parameter to bypass the validation.
52
55
53
56
## Configure with Azure PowerShell
54
57
55
-
Prepare parameters.
58
+
1.Prepare parameters.
56
59
57
-
```azurepowershell
58
-
$siteName = '<app-name>'
59
-
$vNetResourceGroupName = '<group-name>'
60
-
$webAppResourceGroupName = '<group-name>'
61
-
$vNetName = '<vnet-name>'
62
-
$integrationSubnetName = '<subnet-name>'
63
-
$vNetSubscriptionId = '<subscription-guid>'
64
-
```
60
+
```azurepowershell
61
+
$siteName = '<app-name>'
62
+
$vNetResourceGroupName = '<group-name>'
63
+
$webAppResourceGroupName = '<group-name>'
64
+
$vNetName = '<vnet-name>'
65
+
$integrationSubnetName = '<subnet-name>'
66
+
$vNetSubscriptionId = '<subscription-guid>'
67
+
```
65
68
66
-
> [!NOTE]
67
-
> If the virtual network is in another subscription than webapp, you can use the *Set-AzContext -Subscription "xxxx-xxxx-xxxx-xxxx"* command to set the current subscription context. Set the current subscription context to the subscription where the virtual network was deployed.
69
+
> [!NOTE]
70
+
> If the virtual network is in another subscription than webapp, you can use the `Set-AzContext -Subscription "xxxx-xxxx-xxxx-xxxx"` command to set the current subscription context. Set the current subscription context to the subscription where the virtual network was deployed.
68
71
69
-
Check if the subnet is delegated to Microsoft.Web/serverFarms.
72
+
1.Check if the subnet is delegated to Microsoft.Web/serverFarms.
> If the webapp is in another subscription than virtual network, you can use the *Set-AzContext -Subscription "xxxx-xxxx-xxxx-xxxx"* command to set the current subscription context. Set the current subscription context to the subscription where the web app was deployed.
> If the webapp is in another subscription than virtual network, you can use the `Set-AzContext -Subscription "xxxx-xxxx-xxxx-xxxx"` command to set the current subscription context. Set the current subscription context to the subscription where the web app was deployed.
0 commit comments