Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
134 lines (134 sloc) 3.75 KB
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "Name of Azure Web App"
}
},
"appServicePlanName": {
"type": "string",
"metadata": {
"description": "Name of new or existing App Service Plan"
}
},
"siteLocation": {
"type": "string",
"metadata": {
"description": "Name of the Location"
}
},
"sku": {
"type": "string",
"defaultValue": "Free",
"allowedValues": [
"Free",
"Basic",
"Standard",
"Premium"
],
"metadata": {
"description": "The pricing tier for the App Service plan."
}
},
"svcPlanSize": {
"defaultValue": "F1",
"type": "string",
"metadata": {
"description": "The instance size of the app."
}
},
"repoURL": {
"type": "string",
"defaultValue": "https://github.com/sandrinodimattia/ssl-cert-expiration-to-slack.git",
"metadata": {
"description": "The URL for the GitHub repository that contains the project to deploy."
}
},
"branch": {
"type": "string",
"defaultValue": "master",
"metadata": {
"description": "The branch of the GitHub repository to use."
}
},
"DOMAINS" : {
"type": "string",
"metadata": {
"description": "A list of domains you want to monitorg (eg: github.com;twitter.com;facebook.com)"
}
},
"DAYS_THRESHOLD" : {
"type": "string",
"metadata": {
"description": "If the certificate is valid for more than DAYS_THRESHOLD, nothing will be posted to Slack."
}
},
"SLACK_INCOMING_WEBHOOK_URL" : {
"type": "string",
"metadata": {
"description": "URL of your Incoming Webhook."
}
}
},
"variables": {
"deploySiteName": "[parameters('siteName')]"
},
"resources": [
{
"apiVersion": "2015-08-01",
"name": "[parameters('appServicePlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[parameters('siteLocation')]",
"sku": {
"name": "[parameters('svcPlanSize')]",
"tier": "[parameters('sku')]",
"capacity": 1
}
},
{
"apiVersion": "2015-08-01",
"name": "[variables('deploySiteName')]",
"type": "Microsoft.Web/sites",
"location": "[parameters('siteLocation')]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]"
],
"properties": {
"name": "[variables('deploySiteName')]",
"serverFarmId": "[parameters('appServicePlanName')]"
},
"resources": [
{
"apiVersion": "2015-08-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('deploySiteName'))]"
],
"properties": {
"RepoUrl": "[parameters('repoURL')]",
"branch": "[parameters('branch')]",
"IsManualIntegration": true
}
},
{
"apiVersion": "2015-08-01",
"name": "appsettings",
"type": "config",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('deploySiteName'))]"
],
"properties": {
"DOMAINS": "[parameters('DOMAINS')]",
"DAYS_THRESHOLD": "[parameters('DAYS_THRESHOLD')]",
"SLACK_INCOMING_WEBHOOK_URL": "[parameters('SLACK_INCOMING_WEBHOOK_URL')]",
"WEBSITE_NODE_DEFAULT_VERSION": "5.3.0"
}
}
]
}
]
}