dotnet-podcasts/deploy/Web/web.json

82 строки
2.1 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.10.61.36676",
"templateHash": "9757798139753224607"
}
},
"parameters": {
"webAppName": {
"type": "string",
"minLength": 2,
"metadata": {
"description": "Web app name."
}
},
"servicePlanName": {
"type": "string",
"minLength": 2,
"metadata": {
"description": "Service plan name."
}
},
"servicePlanSku": {
"type": "string",
"defaultValue": "B1",
"metadata": {
"description": "The SKU of App Service Plan."
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
},
"linuxFxVersion": {
"type": "string",
"defaultValue": "DOTNETCORE|7.0",
"metadata": {
"description": "The Runtime stack of current web app"
}
}
},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2022-03-01",
"name": "[parameters('servicePlanName')]",
"location": "[parameters('location')]",
"sku": {
"name": "[parameters('servicePlanSku')]"
},
"kind": "linux",
"properties": {
"reserved": true
}
},
{
"type": "Microsoft.Web/sites",
"apiVersion": "2022-03-01",
"name": "[parameters('webAppName')]",
"location": "[parameters('location')]",
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]",
"siteConfig": {
"linuxFxVersion": "[parameters('linuxFxVersion')]",
"alwaysOn": true,
"http20Enabled": true
},
"httpsOnly": true,
"clientAffinityEnabled": false
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]"
]
}
]
}