Skip to content

Instantly share code, notes, and snippets.

@fgauna12
Last active January 29, 2020 22:36
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 fgauna12/89def945380359598bc880beea1169e8 to your computer and use it in GitHub Desktop.
Save fgauna12/89def945380359598bc880beea1169e8 to your computer and use it in GitHub Desktop.
App Service ARM Template with a sub site (nested application)
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2019-08-01",
"name": "[parameters('plan-name')]",
"location": "[resourceGroup().location]",
"dependsOn": [],
"sku": {
"name": "S1"
},
"properties": {
"name": "[parameters('plan-name')]"
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2019-08-01",
"name": "[parameters('webapp-name')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms/', parameters('plan-name'))]"
],
"kind": "app",
"tags": {},
"properties": {
"name": "[parameters('webapp-name')]",
"siteConfig": {
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"virtualDirectories": null
},
{
"virtualPath": "/v1",
"physicalPath": "site\\wwwroot\\v1",
"virtualDirectories": [
{
"virtualPath": "/v1",
"physicalPath": "site\\wwwroot\\v1"
}
]
}
],
"appSettings": []
},
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms/', parameters('plan-name'))]",
"httpsOnly": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment