ARM Template to create sample PaaS Solution

{
“$schema”: http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#”,
“contentVersion”: “1.0.0.0”,
“parameters”: {
“serverFarmName”: {
“type”: “string”,
“minLength”: 1,
“defaultValue”: “testlab”
},
“serverFarmSKU”: {
“type”: “string”,
“allowedValues”: [
“Free”,
“Shared”,
“Basic”,
“Standard”
],
“defaultValue”: “Free”
},

“serverFarmSize”: {
“type”: “string”,
“allowedValues”: [
“0”,
“1”,
“2”
],
“defaultValue”: “0”
}
},
“variables”: {
“WebAppName”: “[concat(‘testlab’, uniqueString(resourceGroup().id))]”
},
“resources”: [
{
“name”: “[parameters(‘serverFarmName’)]”,
“type”: “Microsoft.Web/serverfarms”,
“location”: “[resourceGroup().location]”,
“apiVersion”: “2014-06-01”,
“dependsOn”: [ ],
“tags”: {
“displayName”: “[parameters(‘serverFarmName’)]”
},
“properties”: {
“name”: “[parameters(‘serverFarmName’)]”,
“sku”: “[parameters(‘serverFarmSKU’)]”,
“workerSize”: “[parameters(‘serverFarmSize’)]”,
“numberOfWorkers”: 1
}
},
{
“name”: “[variables(‘WebAppName’)]”,
“type”: “Microsoft.Web/sites”,
“location”: “[resourceGroup().location]”,
“apiVersion”: “2015-08-01”,
“dependsOn”: [
“[concat(‘Microsoft.Web/serverfarms/’, parameters(‘serverFarmName’))]”
],
“tags”: {
“[concat(‘hidden-related:’, resourceGroup().id, ‘/providers/Microsoft.Web/serverfarms/’, parameters(‘serverFarmName’))]”: “Resource”,
“displayName”: “[variables(‘WebAppName’)]”
},
“properties”: {
“name”: “[variables(‘WebAppName’)]”,
“serverFarmId”: “[resourceId(‘Microsoft.Web/serverfarms/’, parameters(‘serverFarmName’))]”
}
}
],
“outputs”: {
}
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s