Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding NSG rules for nodemanager and admin channel ports (#55)
* Adding NSG rules for nodemanager and admin channel ports * Added post deloyment NSG rule * Corrected sourceAddressPrefix
- Loading branch information
1 parent
8f4d83d
commit edffa5a
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"location": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Location for all resources." | ||
} | ||
}, | ||
"name_networkSecurityGroup": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Network Security Group name" | ||
} | ||
}, | ||
"const_subnetPrefix": { | ||
"type": "string", | ||
"defaultValue": "10.0.0.0/24" | ||
} | ||
}, | ||
"variables": { | ||
"const_requiredAppGatewayPortrange": "65200-65535" | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Network/networkSecurityGroups/securityRules", | ||
"name": "[concat(parameters('name_networkSecurityGroup'),'/','AppgatewayPorts')]", | ||
"apiVersion": "2018-08-01", | ||
"properties": { | ||
"protocol": "TCP", | ||
"sourcePortRange": "*", | ||
"sourceAddressPrefix": "GatewayManager", | ||
"destinationAddressPrefix": "*", | ||
"access": "Allow", | ||
"priority": 200, | ||
"direction": "Inbound", | ||
"destinationPortRanges": "[split(variables('const_requiredAppGatewayPortrange'), ',')]" | ||
} | ||
}, | ||
{ | ||
"type": "Microsoft.Network/networkSecurityGroups/securityRules", | ||
"name": "[concat(parameters('name_networkSecurityGroup'),'/','WebLogicAdminPortsAllowed')]", | ||
"apiVersion": "2018-08-01", | ||
"properties": { | ||
"protocol": "TCP", | ||
"sourcePortRange": "*", | ||
"destinationAddressPrefix": "*", | ||
"access": "Allow", | ||
"priority": 210, | ||
"direction": "Inbound", | ||
"destinationPortRanges": [ | ||
"7001", | ||
"7002" | ||
], | ||
"sourceAddressPrefix": "[parameters('const_subnetPrefix')]", | ||
} | ||
}, | ||
{ | ||
"type": "Microsoft.Network/networkSecurityGroups/securityRules", | ||
"name": "[concat(parameters('name_networkSecurityGroup'),'/','WebLogicAdminPortsDenied')]", | ||
"apiVersion": "2018-08-01", | ||
"properties": { | ||
"protocol": "*", | ||
"sourcePortRange": "*", | ||
"destinationAddressPrefix": "*", | ||
"access": "Deny", | ||
"priority": 211, | ||
"direction": "Inbound", | ||
"destinationPortRanges": [ | ||
"7001", | ||
"7002" | ||
], | ||
"sourceAddressPrefix": "Internet" | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"nsg": { | ||
"type": "string", | ||
"value": "[resourceId('Microsoft.Network/networkSecurityGroups').name]" | ||
}, | ||
"subnet" : { | ||
"type": "string", | ||
"value": "[resourceId('Microsoft.Network/virtualNetworks').name]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters