Skip to content

Commit

Permalink
"azurerm_sentinel_alert_rule_scheduled" - Fix query frequency validat…
Browse files Browse the repository at this point in the history
…ion (#12164)

Azure Sentinel have recently expand the query_frequency parameter to support up to fourteen days rather than a 24 hours. Quick bugfix reflects this.

Resolves #12031

Self tested and validated. Can add a test specifically for this if required.
  • Loading branch information
kaovd committed Jun 10, 2021
1 parent 194a247 commit 0b75457
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func resourceSentinelAlertRuleScheduled() *pluginsdk.Resource {
Type: pluginsdk.TypeString,
Optional: true,
Default: "PT5H",
ValidateFunc: validate.ISO8601DurationBetween("PT5M", "PT24H"),
ValidateFunc: validate.ISO8601DurationBetween("PT5M", "P14D"),
},

"query_period": {
Expand Down

0 comments on commit 0b75457

Please sign in to comment.