Created
March 13, 2017 15:04
-
-
Save eNeRGy164/0ff063f039088f2cae6219fa6110cbda to your computer and use it in GitHub Desktop.
Deployment Template sample with Virtual Applications and Virtual Directories
This file contains hidden or 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", | |
"kind": "app", | |
"name": "LoremIpsumAppService", | |
"sku": { | |
"name": "B1" | |
}, | |
"apiVersion": "2015-08-01", | |
"location": "[resourceGroup().location]", | |
"properties": { | |
"name": "LoremIpsumAppService", | |
"numberOfWorkers": 1 | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Web/sites", | |
"kind": "app", | |
"name": "LoremIpsumWebApp", | |
"apiVersion": "2015-08-01", | |
"location": "[resourceGroup().location]", | |
"properties": { | |
"name": "LoremIpsumWebApp" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Web/sites/config", | |
"name": "LoremIpsumWebApp/web", | |
"apiVersion": "2015-08-01", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/sites', 'LoremIpsumWebApp')]" | |
], | |
"properties": { | |
"phpVersion": "", | |
"alwaysOn": "true", | |
"virtualApplications": [ | |
{ | |
"virtualPath": "/", | |
"physicalPath": "site\\wwwroot", | |
"virtualDirectories": null | |
}, | |
{ | |
"virtualPath": "/DolorSitAmet", | |
"physicalPath": "site\\dolor-sit-amet", | |
"virtualDirectories": [ | |
{ | |
"virtualPath": "/Images", | |
"physicalPath": "site\\path-to\\images" | |
} | |
] | |
} | |
] | |
} | |
} | |
], | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/serverfarms', 'LoremIpsumAppService')]" | |
] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can we do this via Powershell?