Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created January 26, 2017 18: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/94a8cb8fcd70d62dda9169ca9bb34abe to your computer and use it in GitHub Desktop.
Save marrobi/94a8cb8fcd70d62dda9169ca9bb34abe to your computer and use it in GitHub Desktop.
ARM Security Group with SSH
{
"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