Skip to content

Commit c752940

Browse files
Update api-management-howto-integrate-internal-vnet-appgateway.md
Add required second inbound App Gateway NSG rule that is Internet-specific.
1 parent 397e693 commit c752940

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/api-management/api-management-howto-integrate-internal-vnet-appgateway.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,12 @@ Create network security groups and NSG rules for the Application Gateway and API
133133
```powershell
134134
$appGwRule1 = New-AzNetworkSecurityRuleConfig -Name appgw-in -Description "AppGw inbound" `
135135
-Access Allow -Protocol * -Direction Inbound -Priority 100 -SourceAddressPrefix `
136-
GatewayManager -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 443,65200-65535
136+
GatewayManager -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 65200-65535
137+
$appGwRule2 = New-AzNetworkSecurityRuleConfig -Name appgw-in-internet -Description "AppGw inbound Internet" `
138+
-Access Allow -Protocol "TCP" -Direction Inbound -Priority 110 -SourceAddressPrefix `
139+
Internet -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 443
137140
$appGwNsg = New-AzNetworkSecurityGroup -ResourceGroupName $resGroupName -Location $location -Name `
138-
"NSG-APPGW" -SecurityRules $appGwRule1
141+
"NSG-APPGW" -SecurityRules $appGwRule1, $appGwRule2
139142
140143
$apimRule1 = New-AzNetworkSecurityRuleConfig -Name apim-in -Description "APIM inbound" `
141144
-Access Allow -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix `

0 commit comments

Comments
 (0)