1
0
mirror of synced 2026-01-07 09:01:31 -05:00
Files
docs/azure-preview-env-template.json
Mike Surowiec 8037fb44f4 Remove clustering, remove WEB_CONCURRENCY setting (#24914)
* Remove WEB_CONCURRENCY setting
2022-02-03 15:44:03 -06:00

111 lines
3.7 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appName": {
"type": "String"
},
"location": {
"type": "String"
},
"linuxFxVersion": {
"type": "String"
},
"dockerRegistryUrl": {
"type": "String"
},
"dockerRegistryUsername": {
"type": "String"
},
"dockerRegistryPassword": {
"type": "SecureString"
}
},
"variables": {
"appServicePlanName": "[concat('ASP-', parameters('appName'))]",
"dnsName": "[concat(parameters('appName'), '-', take(uniqueString(subscription().subscriptionId, resourceGroup().id, deployment().name), 6))]"
},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2021-02-01",
"name": "[variables('appServicePlanName')]",
"location": "[parameters('location')]",
"sku": {
"name": "B2"
},
"kind": "linux",
"properties": {
"reserved": true
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2018-11-01",
"name": "[variables('dnsName')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]"
],
"tags": {
"DocsAppName": "[parameters('appName')]"
},
"properties": {
"name": "[variables('dnsName')]",
"siteConfig": {
"appSettings": [
{
"name": "DOCKER_REGISTRY_SERVER_URL",
"value": "[parameters('dockerRegistryUrl')]"
},
{
"name": "DOCKER_REGISTRY_SERVER_USERNAME",
"value": "[parameters('dockerRegistryUsername')]"
},
{
"name": "DOCKER_REGISTRY_SERVER_PASSWORD",
"value": "[parameters('dockerRegistryPassword')]"
},
{
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
"value": "false"
},
{
"name": "NODE_ENV",
"value": "production"
},
{
"name": "PORT",
"value": "4000"
},
{
"name": "DEPLOYMENT_ENV",
"value": "azure"
},
{
"name": "ENABLED_LANGUAGES",
"value": "en"
}
],
"linuxFxVersion": "[parameters('linuxFxVersion')]",
"appCommandLine": "",
"alwaysOn": false,
"numberOfWorkers": 1,
"healthCheckPath": "/healthz",
"httpLoggingEnabled": true,
"logsDirectorySizeLimit": 35
},
"serverFarmId": "[concat('/subscriptions/', subscription().id, '/resourcegroups/', resourceGroup().name, '/providers/Microsoft.Web/serverfarms/', variables('appServicePlanName'))]",
"clientAffinityEnabled": false
}
}
],
"outputs": {
"defaultHostName": {
"type": "string",
"value": "[concat('https://', variables('dnsName'), '.azurewebsites.net')]"
}
}
}