Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created February 1, 2019 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johndowns/3cc45936638056adeced8f126b7aaa4a to your computer and use it in GitHub Desktop.
Save johndowns/3cc45936638056adeced8f126b7aaa4a to your computer and use it in GitHub Desktop.
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"enterpriseIssueTrackingIngestionServiceUri": {
"type": "string",
"metadata": {
"description": "The webhook URL that should be invoked to create a new issue in the enterprise issue tracking system."
}
},
"devTeamLeadCountryCode": {
"type": "string",
"metadata": {
"description": "The country code of the dev team lead."
}
},
"devTeamLeadPhoneNumber": {
"type": "string",
"metadata": {
"description": "The phone number of the dev team lead."
}
},
"devTeamEmailAddress": {
"type": "string",
"metadata": {
"description": "The email address of the dev team."
}
}
},
"resources": [
{
"name": "CreateEnterpriseIssue",
"type": "Microsoft.Insights/actionGroups",
"location": "global",
"apiVersion": "2018-03-01",
"properties": {
"groupShortName": "Create Issue",
"enabled": true,
"webhookReceivers": [
{
"name": "Enterprise Issue Tracking Ingestion Url",
"serviceUri": "[parameters('enterpriseIssueTrackingIngestionServiceUri')]"
}
]
}
},
{
"name": "SendSmsToTeamLead",
"type": "Microsoft.Insights/actionGroups",
"location": "global",
"apiVersion": "2018-03-01",
"properties": {
"groupShortName": "MyApp",
"enabled": true,
"smsReceivers": [
{
"name": "Dev Team Lead",
"countryCode": "[parameters('devTeamLeadCountryCode')]",
"phoneNumber": "[parameters('devTeamLeadPhoneNumber')]"
}
]
}
},
{
"name": "EmailDevelopmentTeam",
"type": "Microsoft.Insights/actionGroups",
"location": "global",
"apiVersion": "2018-03-01",
"properties": {
"groupShortName": "MyApp",
"enabled": true,
"emailReceivers": [
{
"name": "Dev Team",
"emailAddress": "[parameters('devTeamEmailAddress')]"
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment