File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -133,9 +133,12 @@ Create network security groups and NSG rules for the Application Gateway and API
133
133
``` powershell
134
134
$appGwRule1 = New-AzNetworkSecurityRuleConfig -Name appgw-in -Description "AppGw inbound" `
135
135
-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
137
140
$appGwNsg = New-AzNetworkSecurityGroup -ResourceGroupName $resGroupName -Location $location -Name `
138
- "NSG-APPGW" -SecurityRules $appGwRule1
141
+ "NSG-APPGW" -SecurityRules $appGwRule1, $appGwRule2
139
142
140
143
$apimRule1 = New-AzNetworkSecurityRuleConfig -Name apim-in -Description "APIM inbound" `
141
144
-Access Allow -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix `
You can’t perform that action at this time.
0 commit comments