forked from dsccommunity/SqlServerDsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2-RemoveAlert.ps1
More file actions
31 lines (26 loc) · 795 Bytes
/
2-RemoveAlert.ps1
File metadata and controls
31 lines (26 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<#
.EXAMPLE
This example shows how to ensure that the SQL Agent Alert
Sev17 does not exist.
.EXAMPLE
This example shows how to ensure that the SQL Agent Alert
Msg825 does not exist.
#>
Configuration Example
{
Import-DscResource -ModuleName SqlServerDsc
node localhost {
SqlAgentAlert Remove_Sev17 {
Ensure = 'Absent'
Name = 'Sev17'
ServerName = 'TestServer'
InstanceName = 'MSSQLServer'
}
SqlAgentAlert Remove_Msg825 {
Ensure = 'Absent'
Name = 'Msg825'
ServerName = 'TestServer'
InstanceName = 'MSSQLServer'
}
}
}