Last active
January 29, 2020 22:36
-
-
Save fgauna12/89def945380359598bc880beea1169e8 to your computer and use it in GitHub Desktop.
App Service ARM Template with a sub site (nested application)
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
{ | |
"$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