UNPKG

generator-azure-web-app

Version:

Minimalist Web App generator: Webpack/Rollup + React + Express, deployable to vanilla Node.js, Azure App Service, and IIS

118 lines (117 loc) 3.35 kB
{ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "siteName": { "type": "string" }, "hostingPlanName": { "type": "string" }, "siteLocation": { "type": "string" }, "sku": { "type": "string", "allowedValues": [ "Free", "Shared", "Basic", "Standard" ], "defaultValue": "Free" }, "workerSize": { "type": "string", "allowedValues": [ "0", "1", "2" ], "defaultValue": "0" }, "repoUrl": { "type": "string" }, "branch": { "type": "string" } }, "resources": [ { "apiVersion": "2014-06-01", "name": "[parameters('hostingPlanName')]", "type": "Microsoft.Web/serverfarms", "location": "[parameters('siteLocation')]", "properties": { "name": "[parameters('hostingPlanName')]", "sku": "[parameters('sku')]", "workerSize": "[parameters('workerSize')]", "numberOfWorkers": 1 } }, { "apiVersion": "2015-08-01", "name": "[parameters('siteName')]", "type": "Microsoft.Web/sites", "location": "[parameters('siteLocation')]", "dependsOn": [ "[resourceId('Microsoft.Web/serverFarms', parameters('hostingPlanName'))]" ], "tags": { "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty" }, "properties": { "serverFarmId": "[parameters('hostingPlanName')]", "clientAffinityEnabled": false }, "resources": [ { "apiVersion": "2015-08-01", "type": "config", "name": "web", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]" ], "properties": { "virtualApplications": [ { "virtualPath": "/", "physicalPath": "site\\wwwroot\\dist\\website" } ], "use32BitWorkerProcess": true } }, { "apiVersion": "2015-08-01", "type": "config", "name": "appsettings", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]", "[concat('Microsoft.Web/Sites/', parameters('siteName'), '/config/web')]" ], "properties": { "NPM_CONFIG_BUNDLER": "rollup", "RUNNING_ON_AZURE": "true", "WEBSITE_NODE_DEFAULT_VERSION": "7.7.4" } }, { "apiVersion": "2014-06-01", "name": "web", "type": "sourcecontrols", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]", "[concat('Microsoft.Web/Sites/', parameters('siteName'), '/config/appsettings')]" ], "properties": { "RepoUrl": "[parameters('repoUrl')]", "branch": "[parameters('branch')]", "IsManualIntegration": true } } ] } ] }