Last active
August 25, 2021 08:34
-
-
Save shibayan/58e0b6ed541c3ad46faff12360f7dedc to your computer and use it in GitHub Desktop.
ARM Template for Web App for Containers (Linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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