Created
March 19, 2021 00:10
-
-
Save jesseloudon/c057c0722b6381f9848ac3bd4184e5fc to your computer and use it in GitHub Desktop.
AzureSpringClean2021 DINE policy example
This file contains hidden or 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
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