Skip to content

Commit

Permalink
fixing class error (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhabazi authored Sep 22, 2020
1 parent d869e7f commit e69f329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AzSentinel/Public/New-AzSentinelAlertRule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function New-AzSentinelAlertRule {
$AggregationKind
)

$body = [AlertRule]::new( $item.name, $item.etag, $bodyAlertProp, $item.Id)
$body = [AlertRule]::new( $item.name, $item.etag, $bodyAlertProp, $item.Id, 'Scheduled')
}
catch {
Write-Error "Unable to initiate class with error: $($_.Exception.Message)" -ErrorAction Stop
Expand Down

0 comments on commit e69f329

Please sign in to comment.