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