Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created February 10, 2017 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marrobi/4bfcb5698ec6b4e4be3dda6cd32c91af to your computer and use it in GitHub Desktop.
Save marrobi/4bfcb5698ec6b4e4be3dda6cd32c91af to your computer and use it in GitHub Desktop.
ARM Netowrk Security Group
{
"apiVersion": "2016-03-30",
"type": "Microsoft.Network/networkSecurityGroups",
"name": "[concat(variables('uniquestring'),'SubnetAcl')]",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "SubnetAcl"
},
"properties": {
"securityRules": [
{
"name": "allow-HTTP",
"properties": {
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "80",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 100,
"direction": "Inbound"
}
},
{
"name": "allow-HTTPS",
"properties": {
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "443",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 101,
"direction": "Inbound"
}
},
{
"name": "allow-SSH",
"properties": {
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "22",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 102,
"direction": "Inbound"
}
},
{
"name": "allow-dynamic-ports",
"properties": {
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "1024-65535",
"sourceAddressPrefix": "*",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 103,
"direction": "Inbound"
}
}
]
},
"resources": [],
"dependsOn": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment