Skip to content

Instantly share code, notes, and snippets.

@daveRendon
Last active July 13, 2021 22:20
Show Gist options
  • Save daveRendon/67a94ea5280f676404da2ac20caef518 to your computer and use it in GitHub Desktop.
Save daveRendon/67a94ea5280f676404da2ac20caef518 to your computer and use it in GitHub Desktop.
armTemplate-appServicePlan.json
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppName": {
"type": "string",
"defaultValue": "[concat('webApp-', uniqueString(resourceGroup().id))]",
"minLength": 2,
"metadata": {
"description": "Web app name."
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location for all resources."
}
},
"appServicePlanPortalName": {
"type": "string",
"defaultValue":"[concat('AppPlan-', parameters('webAppName'))]",
"metadata": {
"description": "description"
}
}
},
"functions": [],
"variables": {
"sku": "F1"
},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2020-06-01",
"name": "[parameters('appServicePlanPortalName')]",
"location": "[parameters('location')]",
"sku": {
"name": "[variables('sku')]"
},
"kind": "linux",
"properties": {
"reserved": true
}
}
],
"outputs": {
"appServicePlanId": {
"type": "string",
"value": "[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanPortalName'))]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment