Skip to content

Instantly share code, notes, and snippets.

@jesseloudon
Created March 19, 2021 00:10
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 jesseloudon/c057c0722b6381f9848ac3bd4184e5fc to your computer and use it in GitHub Desktop.
Save jesseloudon/c057c0722b6381f9848ac3bd4184e5fc to your computer and use it in GitHub Desktop.
AzureSpringClean2021 DINE policy example
targetScope = 'resourceGroup'
// PARAMETERS
param actionGroupName string
param actionGroupEnabled bool
param actionGroupShortName string
param actionGroupEmailName string
param actionGroupEmail string
param actionGroupAlertSchema bool
// OUTPUTS
output actionGroupId string = actionGroup.id
output actionGroupName string = actionGroup.name
// RESOURCES
resource actionGroup 'microsoft.insights/actionGroups@2019-06-01' = {
location: 'global'
name: actionGroupName
properties: {
enabled: actionGroupEnabled
groupShortName: actionGroupShortName
emailReceivers: [
{
name: actionGroupEmailName
emailAddress: actionGroupEmail
useCommonAlertSchema: actionGroupAlertSchema
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment