144 строки
4.3 KiB
JSON
144 строки
4.3 KiB
JSON
{
|
|
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"hostingPlanName": { "type": "string" },
|
|
"webSiteName": { "type": "string" },
|
|
"siteTitle": { "type": "string" },
|
|
"logoURl": { "type": "string" },
|
|
"hostingPlanSKU": {
|
|
"type": "string",
|
|
"allowedValues": [
|
|
"Free",
|
|
"Shared",
|
|
"Basic",
|
|
"Standard"
|
|
],
|
|
"defaultValue": "Basic",
|
|
"metadata": {
|
|
"description": "SKU value"
|
|
}
|
|
},
|
|
"hostingPlanWorkerSize": {
|
|
"type": "string",
|
|
"allowedValues": [
|
|
"0",
|
|
"1",
|
|
"2"
|
|
],
|
|
"defaultValue": "1",
|
|
"metadata": {
|
|
"description": "Worker Size( 0=Small, 1=Medium, 2=Large )"
|
|
}
|
|
},
|
|
"repoURL": {
|
|
"type": "string",
|
|
"defaultValue": "https://github.com/CatalystCode/bot-fmk-dashboard.git",
|
|
"metadata": {
|
|
"description": "Fork that repo than use the new url in [parameters file:repoUrl:value]."
|
|
}
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"defaultValue": "master",
|
|
"metadata": {
|
|
"description": "The branch of the GitHub repository to use."
|
|
}
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"apiVersion": "2015-04-01",
|
|
"name": "[parameters('hostingPlanName')]",
|
|
"type": "Microsoft.Web/serverfarms",
|
|
"location": "[resourceGroup().location]",
|
|
"properties": {
|
|
"name": "[parameters('hostingPlanName')]",
|
|
"sku": "[parameters('hostingPlanSKU')]",
|
|
"workerSize": "[parameters('hostingPlanWorkerSize')]",
|
|
"numberOfWorkers": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "[parameters('webSiteName')]",
|
|
"type": "Microsoft.Web/sites",
|
|
"location": "[resourceGroup().location]",
|
|
"apiVersion": "2015-08-01",
|
|
"dependsOn": [
|
|
"[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]"
|
|
],
|
|
"tags": {
|
|
"[concat('hidden-related:', resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName')))]": "Resource",
|
|
"displayName": "DashboardWebSite"
|
|
},
|
|
"properties": {
|
|
"name": "[parameters('webSiteName')]",
|
|
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]"
|
|
},
|
|
"resources": [
|
|
{
|
|
"apiVersion": "2015-08-01",
|
|
"name": "web",
|
|
"type": "config",
|
|
"dependsOn": [
|
|
"[concat('Microsoft.Web/sites/', parameters('webSiteName'))]"
|
|
],
|
|
"properties": {
|
|
"alwaysOn": true,
|
|
"virtualApplications": [
|
|
{
|
|
"virtualPath": "/",
|
|
"physicalPath": "site\\wwwroot"
|
|
},
|
|
{
|
|
"virtualPath": "/MyApp",
|
|
"physicalPath": "site\\wwwroot"
|
|
}
|
|
],
|
|
"defaultDocuments": [
|
|
"index.html",
|
|
"hostingstart.html"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "appsettings",
|
|
"type": "config",
|
|
"apiVersion": "2015-08-01",
|
|
"dependsOn": [
|
|
"[resourceId('Microsoft.Web/sites', parameters('webSiteName'))]"
|
|
],
|
|
"tags": {
|
|
"displayName": "ApplicationSettings"
|
|
},
|
|
"properties": {
|
|
"WEBSITE_NODE_DEFAULT_VERSION": "6.9.1",
|
|
"SCM_COMMAND_IDLE_TIMEOUT": "7200",
|
|
"REACT_APP_SITE_LOGO": "[parameters('logoURl')]",
|
|
"REACT_APP_SITE_TITLE ": "[parameters('siteTitle')]"
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "2015-08-01",
|
|
"name": "web",
|
|
"type": "sourcecontrols",
|
|
"dependsOn": [
|
|
"[concat('Microsoft.Web/sites/', parameters('webSiteName'))]",
|
|
"[resourceId('Microsoft.Web/sites/config', parameters('webSiteName'), 'appsettings')]"
|
|
],
|
|
"properties": {
|
|
"RepoUrl": "[parameters('repoURL')]",
|
|
"branch": "[parameters('branch')]",
|
|
"IsManualIntegration": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"outputs": {
|
|
"appInsightsInstrumentationKey": {
|
|
"type": "string",
|
|
"value": "[reference(resourceId('Microsoft.Insights/components', variables('applicationInsightName')), '2014-04-01').InstrumentationKey]"
|
|
}
|
|
}
|
|
} |