Skip to content

Commit c25ac35

Browse files
authored
Update vnet-custom-internal.md
1 parent b24d18c commit c25ac35

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

articles/container-apps/vnet-custom-internal.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,28 @@ $vnet = New-AzVirtualNetwork @VnetArgs
145145

146146
---
147147

148+
When using the Workload Profiles Architecture, you need to do one more step to delegate the subnet to `Microsoft.App/environments`.
149+
150+
# [Bash](#tab/bash)
151+
152+
```azurecli-interactive
153+
az network vnet subnet update \
154+
--resource-group $RESOURCE_GROUP \
155+
--vnet-name $VNET_NAME \
156+
--name infrastructure-subnet \
157+
--delegations Microsoft.App/environments
158+
```
159+
160+
# [Azure PowerShell](#tab/azure-powershell)
161+
162+
```azurepowershell-interactive
163+
$delegation = New-AzDelegation -Name 'containerApp' -ServiceName 'Microsoft.App/environments'
164+
$vnet = Set-AzVirtualNetworkSubnetConfig -Name $SubnetArgs.Name -VirtualNetwork $vnet -AddressPrefix $SubnetArgs.AddressPrefix -Delegation $delegation
165+
$vnet | Set-AzVirtualNetwork
166+
```
167+
168+
---
169+
148170
With the VNET established, you can now query for the infrastructure subnet ID.
149171

150172
# [Bash](#tab/bash)

0 commit comments

Comments
 (0)