Skip to content

Instantly share code, notes, and snippets.

@jhauray
Created March 2, 2021 12:48
Show Gist options
  • Save jhauray/acd806c3802bc6096ba1ffaae29e76c2 to your computer and use it in GitHub Desktop.
Save jhauray/acd806c3802bc6096ba1ffaae29e76c2 to your computer and use it in GitHub Desktop.
ASE ARM Template
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"aseName": {
"type": "string"
},
"location": {
"type": "string"
},
"kind": {
"type": "string"
},
"ilbMode": {
"type": "string"
},
"subnetId": {
"type": "string"
},
"dnsSuffix": {
"type": "string"
},
"userWhitelistedIpRanges": {
"type": "string"
}
},
"resources": [
{
"apiVersion": "2018-02-01",
"type": "Microsoft.Web/hostingEnvironments",
"name": "[parameters('aseName')]",
"kind": "[parameters('kind')]",
"location": "[parameters('location')]",
"properties": {
"name": "[parameters('aseName')]",
"location": "[parameters('location')]",
"dnsSuffix": "[parameters('dnsSuffix')]",
"InternalLoadBalancingMode": "[parameters('ilbMode')]",
"virtualNetwork": {
"Id": "[parameters('subnetId')]"
},
"userWhitelistedIpRanges": ["[parameters('userWhitelistedIpRanges')]"]
}
}
],
"outputs": {
"ase-id": {
"type": "string",
"value": "[resourceId('Microsoft.Web/hostingEnvironments',parameters('aseName'))]"
},
"ase-object": {
"type": "object",
"value": "[reference(resourceId('Microsoft.Web/hostingEnvironments',parameters('aseName')))]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment