-
-
Save johndowns/3cc45936638056adeced8f126b7aaa4a to your computer and use it in GitHub Desktop.
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": { | |
"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