-
-
Save neerajks77/eed7ba1878200b237f9889410fe91a48 to your computer and use it in GitHub Desktop.
IP Security ARM Template
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-08-01", | |
"name": "[variables('webSiteName')]", | |
"type": "Microsoft.Web/sites", | |
"location": "[resourceGroup().location]", | |
"tags": { | |
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]":"Resource", | |
"displayName": "Website" | |
}, | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]" | |
], | |
"properties": { | |
"name": "[variables('webSiteName')]", | |
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]" | |
}, | |
"resources": [ | |
{ | |
"name": "web", | |
"type": "config", | |
"apiVersion": "2015-08-01", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/sites', variables('webSiteName'))]" | |
], | |
"tags": { | |
"displayName": "web" | |
}, | |
"properties": { | |
"ipSecurityRestrictions": [ | |
{ | |
"ipAddress": "[parameters('allowedIPAddress')]", //Only allow this ip, block all others | |
"subnetMask": "255.255.255.255" | |
} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment