I'm trying to create an ARM template to stamp out multiple instances of our fairly simple Web App product.
I'm struggling to add a Virtual Application to my web app. i.e. something like this :-
But I can't find the right JSON to achieve this. I found the following sample online but it doesn't appear to have any effect.
(under properties for the Web Application)
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot"
},
{
"virtualPath": "/virtualApp",
"physicalPath": "site\\wwwroot\\virtualApp"
}
The settings are under the web config. So in your ARM template, you just have to add another resource (along side the site resource) as follows:
{
"apiVersion": "2014-06-01",
"name": "web",
"type": "config",
"dependsOn": [
"[concat('Microsoft.Web\/sites\/', parameters('siteName'))]"
],
"properties": {
"virtualApplications": [
{
"virtualPath": "\/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false,
"virtualDirectories": null
},
{
"virtualPath": "\/virtualApp",
"physicalPath": "site\\wwwroot\\virtualApp",
"preloadEnabled": false,
"virtualDirectories": null
}
],
// other web config settings i.e.
"phpVersion": "5.4"
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With