Skip to content

Commit 386e2df

Browse files
author
gitName
committed
[APIM] addressPrefix subnet requirement
1 parent 7481806 commit 386e2df

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

articles/api-management/inject-vnet-v2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ The subnet needs to be delegated to the **Microsoft.Web/hostingEnvironments** se
6868
6969
For more information about configuring subnet delegation, see [Add or remove a subnet delegation](../virtual-network/manage-subnet-delegation.md).
7070

71+
[!INCLUDE [api-management-virtual-network-address-prefix](../../includes/api-management-virtual-network-address-prefix.md)]
72+
7173
### Permissions
7274

7375
You must have at least the following role-based access control permissions on the subnet or at a higher level to configure virtual network integration:

articles/api-management/integrate-vnet-outbound.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ The subnet needs to be delegated to the **Microsoft.Web/serverFarms** service.
6363

6464
For more information about configuring subnet delegation, see [Add or remove a subnet delegation](../virtual-network/manage-subnet-delegation.md).
6565

66+
[!INCLUDE [api-management-virtual-network-address-prefix](../../includes/api-management-virtual-network-address-prefix.md)]
67+
68+
6669
### Permissions
6770

6871
You must have at least the following role-based access control permissions on the subnet or at a higher level to configure virtual network integration:
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
author: dlepow
3+
ms.service: azure-api-management
4+
ms.topic: include
5+
ms.date: 11/21/2024
6+
ms.author: danlep
7+
---
8+
9+
### addressPrefix property
10+
11+
To configure networking in the Premium v2 tier, the `addressPrefix` subnet property is required and must be set to a valid CIDR block.
12+
13+
If you configure the subnet using the Azure portal, the subnet sets an `addressPrefixes` (plural) property consisting of a list of address prefixes. However, the API Management service currently requires a single CIDR block as the value of the `addressPrefix` property.
14+
15+
To create or update a subnet with the `addressPrefix` property, use a tool such as Azure PowerShell, an Azure Resource Manager template, or the [REST API](/rest/api/virtualnetwork/subnets/create-or-update). For example, update a subnet using the [Set-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/set-azvirtualnetworksubnetconfig) Azure PowerShell cmdlet:
16+
17+
```powershell
18+
$virtualNetwork = "MyVirtualNetwork"
19+
$subnetName = "apimSubnet"
20+
$addressPrefix = "10.0.3.0/24"
21+
22+
Set-AzVirtualNetworkSubnetConfig -Name $subnetName -VirtualNetwork $virtualNetwork -AddressPrefix $addressPrefix
23+
24+
$virtualNetwork | Set-AzVirtualNetwork
25+
```

0 commit comments

Comments
 (0)