Skip to content

Commit 69ec72d

Browse files
committed
Add Test-SqlDscAgentAlertProperty command and update Test-SqlDscIsAgentAlert for property testing
1 parent 09dac6d commit 69ec72d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9191
patterns
9292
- Database objects can also be used as pipeline input for Set and Remove operations
9393
- Commands include comprehensive validation, localization, and ShouldProcess support
94+
- `Test-SqlDscAgentAlertProperty`
95+
- New command to test specific properties of SQL Agent alerts.
96+
- Supports testing severity and message ID properties.
97+
- Requires at least one property parameter to be specified.
98+
- Supports pipeline input of
99+
`[Microsoft.SqlServer.Management.Smo.Agent.Alert]` objects.
94100

95101
### Changed
96102

@@ -157,6 +163,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
157163
- Updated the command to use `Test-SqlDscIsAgentAlert` instead of directly
158164
calling `Get-AgentAlertObject` when checking if an alert already exists
159165
(issue [#2202](https://github.com/dsccommunity/SqlServerDsc/issues/2202)).
166+
- `Test-SqlDscIsAgentAlert`
167+
- Removed optional `Severity` and `MessageId` parameters - use
168+
`Test-SqlDscAgentAlertProperty` instead for property testing.
169+
- Now only tests for alert existence.
170+
- Added support for pipeline input of
171+
`[Microsoft.SqlServer.Management.Smo.Agent.Alert]` objects.
172+
- Updated examples and documentation to reflect the simplified functionality.
160173

161174
## [17.1.0] - 2025-05-22
162175

0 commit comments

Comments
 (0)