File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,28 @@ $vnet = New-AzVirtualNetwork @VnetArgs
145
145
146
146
---
147
147
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
+
148
170
With the VNET established, you can now query for the infrastructure subnet ID.
149
171
150
172
# [ Bash] ( #tab/bash )
You can’t perform that action at this time.
0 commit comments