Skip to content

Instantly share code, notes, and snippets.

@Merlus
Last active November 15, 2017 02: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 Merlus/2ec80217f6aecd3b376e5be2629dfef1 to your computer and use it in GitHub Desktop.
Save Merlus/2ec80217f6aecd3b376e5be2629dfef1 to your computer and use it in GitHub Desktop.
ASG - NSG Json
SecurityRules : [
{
"Name": "AllowHttps",
"Etag": "W/\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"",
"Id": "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/asgTest/providers/Microsoft.Network/networkSecurityGroups/asgTest/securityRules/AllowHttps",
"Protocol": "Tcp",
"SourcePortRange": [
"*"
],
"DestinationPortRange": [
"443"
],
"SourceAddressPrefix": [],
"DestinationAddressPrefix": [
"VirtualNetwork"
],
"Access": "Allow",
"Priority": 1500,
"Direction": "Outbound",
"ProvisioningState": "Succeeded",
"SourceApplicationSecurityGroups": [
{
"Id": "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/asgTest/providers/Microsoft.Network/applicationSecurityGroups/webAsg"
}
],
"DestinationApplicationSecurityGroups": []
},
{
"Name": "AllowSql",
"Etag": "W/\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"",
"Id": "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/asgTest/providers/Microsoft.Network/networkSecurityGroups/asgTest/securityRules/AllowSql",
"Protocol": "Tcp",
"SourcePortRange": [
"*"
],
"DestinationPortRange": [
"1433"
],
"SourceAddressPrefix": [],
"DestinationAddressPrefix": [
"VirtualNetwork"
],
"Access": "Allow",
"Priority": 1000,
"Direction": "Outbound",
"ProvisioningState": "Succeeded",
"SourceApplicationSecurityGroups": [
{
"Id": "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/asgTest/providers/Microsoft.Network/applicationSecurityGroups/sqlAsg"
}
],
"DestinationApplicationSecurityGroups": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment