Skip to content

Commit

Permalink
Adds the ability to choose the App Service plan
Browse files Browse the repository at this point in the history
  • Loading branch information
MCKLMT committed Dec 13, 2016
1 parent a097416 commit ccaed42
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 6 deletions.
53 changes: 50 additions & 3 deletions 201-alert-to-slack-with-logic-app/azuredeploy.json
Expand Up @@ -21,10 +21,48 @@
"metadata": {
"description": "The Slack channel to post to."
}
},
"svcPlanName": {
"type": "string",
"defaultValue": "SlackLogicAppsPlan",
"metadata": {
"description": "The name of the App Service plan to create for hosting the logic app."
}
},
"sku": {
"type": "string",
"defaultValue": "Standard",
"allowedValues": [
"Free",
"Basic",
"Standard",
"Premium"
],
"metadata": {
"description": "The pricing tier for the App Service plan."
}
},
"svcPlanSize": {
"defaultValue": "S1",
"type": "string",
"metadata": {
"description": "The instance size of the app."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2015-08-01",
"name": "[parameters('svcPlanName')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "[parameters('svcPlanSize')]",
"tier": "[parameters('sku')]",
"capacity": 1
}
},
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
Expand All @@ -40,13 +78,20 @@
},
{
"type": "Microsoft.Logic/workflows",
"apiVersion": "2016-06-01",
"apiVersion": "2015-02-01-preview",
"name": "[parameters('logicAppName')]",
"dependsOn": [
"[resourceId('Microsoft.Web/connections', parameters('slackConnectionName'))]"
"[resourceId('Microsoft.Web/connections', parameters('slackConnectionName'))]",
"[resourceId('Microsoft.Web/serverfarms', parameters('svcPlanName'))]"
],
"location": "[resourceGroup().location]",
"properties": {
"sku": {
"name": "[parameters('sku')]",
"plan": {
"id": "[concat(resourceGroup().id, '/providers/Microsoft.Web/serverfarms/',parameters('svcPlanName'))]"
}
},
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
Expand Down Expand Up @@ -127,7 +172,9 @@
}
},
"runAfter": {
"Http": ["Succeeded"]
"Http": [
"Succeeded"
]
}
}
},
Expand Down
15 changes: 12 additions & 3 deletions 201-alert-to-slack-with-logic-app/azuredeploy.parameters.json
Expand Up @@ -2,14 +2,23 @@
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"logicAppName": {
"value": "AlertToSlack"
"logicAppName": {
"value": "GEN-UNIQUE-8"
},
"slackConnectionName": {
"value": "slackConnection"
},
"slackChannel": {
"value":"#general"
"value": "#general"
},
"svcPlanName": {
"value": "GEN-UNIQUE-8"
},
"sku": {
"value": "Standard"
},
"svcPlanSize": {
"value": "S1"
}
}
}

0 comments on commit ccaed42

Please sign in to comment.