Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created August 10, 2017 10:11
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/d0c34efaf1dde369c8a0be0960f338e6 to your computer and use it in GitHub Desktop.
Save marrobi/d0c34efaf1dde369c8a0be0960f338e6 to your computer and use it in GitHub Desktop.
ARM Network Security Group
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/networkSecurityGroups",
"name": "VMSecurityGroup",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "VMSecurityGroup"
},
"properties": {
"securityRules": [
{
"name": "ssh-rule",
"properties": {
"description": "Allow SSH",
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "22",
"sourceAddressPrefix": "[parameters('SSHLocation')]",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 100,
"direction": "Inbound"
}
}
]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment