Skip to content

Instantly share code, notes, and snippets.

@shibayan
Last active August 25, 2021 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shibayan/58e0b6ed541c3ad46faff12360f7dedc to your computer and use it in GitHub Desktop.
Save shibayan/58e0b6ed541c3ad46faff12360f7dedc to your computer and use it in GitHub Desktop.
ARM Template for Web App for Containers (Linux)
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "The name of the function app that you wish to create."
}
}
},
"variables": {
"servicePlanName": "[concat(parameters('siteName'), '-ServicePlan')]"
},
"resources": [
{
"apiVersion": "2016-09-01",
"type": "Microsoft.Web/serverfarms",
"kind": "linux",
"name": "[variables('servicePlanName')]",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('servicePlanName')]",
"reserved": true,
"numberOfWorkers": "1"
},
"dependsOn": [],
"sku": {
"Tier": "Standard",
"Name": "S1"
}
},
{
"apiVersion": "2016-08-01",
"type": "Microsoft.Web/sites",
"name": "[parameters('siteName')]",
"location": "[resourceGroup().location]",
"properties": {
"siteConfig": {
"name": "[parameters('siteName')]",
"appSettings": [
{
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
"value": "false"
}
],
"linuxFxVersion": "DOCKER|nginx:alpine"
},
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('servicePlanName'))]"
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('servicePlanName'))]"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment