Created
February 15, 2019 12:42
-
-
Save ehrnst/72dde49767131d662817c93d6816194c to your computer and use it in GitHub Desktop.
101-webapp-basic-windows/azuredeploy.json
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": { | |
"webAppName": { | |
"type": "string", | |
"metadata": { | |
"description": "Base name of the resource such as web app name and app service plan " | |
}, | |
"minLength": 2 | |
}, | |
"sku":{ | |
"type": "string", | |
"defaultValue" : "S1", | |
"metadata": { | |
"description": "The SKU of App Service Plan, by defaut is standard S1" | |
} | |
}, | |
"location": { | |
"type": "string", | |
"defaultValue": "[resourceGroup().location]", | |
"metadata": { | |
"description": "Location for all resources." | |
} | |
} | |
}, | |
"variables": { | |
"webAppPortalName": "[concat(parameters('webAppName'), '-webapp')]", | |
"appServicePlanName": "[concat('AppServicePlan-', parameters('webAppName'))]" | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2017-08-01", | |
"type": "Microsoft.Web/serverfarms", | |
"kind": "app", | |
"name": "[variables('appServicePlanName')]", | |
"location": "[parameters('location')]", | |
"properties": {}, | |
"dependsOn": [], | |
"sku": { | |
"name": "[parameters('sku')]" | |
} | |
}, | |
{ | |
"apiVersion": "2016-08-01", | |
"type": "Microsoft.Web/sites", | |
"kind": "app", | |
"name": "[variables('webAppPortalName')]", | |
"location": "[parameters('location')]", | |
"properties": { | |
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]" | |
}, | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/serverfarms', variables('appServicePlanName'))]" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment