This is the excerpt from my ARM template I try to deploy, but getting the following error:
Status Message: Invalid input parameters: Wrong DateTime format of the parameter: 'effectiveFrom', with value: '2022-03-08T00:00:00Z'. Expected date time format is 'yyyy'-'MM'-'dd'T'HH':'mm':'ss'
{
"name": "ActionRuleExample",
"type": "Microsoft.AlertsManagement/actionRules",
"apiVersion": "2021-08-08",
"location": "global",
"properties": {
"scopes": [
"[concat('/subscriptions/', subscription().subscriptionId)]"
],
"schedule": {
"effectiveFrom": "2022-03-08T00:00:00",
"timeZone": "Central Europe Standard Time",
"recurrences": [
{
"recurrenceType": "Daily",
"startTime": "03:00:00",
"endTime": "04:00:00"
}
]
},
"conditions": [
{
"field": "AlertRuleName",
"operator": "Equals",
"values": [
"AlertRuleExample"
]
}
],
"enabled": true,
"actions": [
{
"actionType": "RemoveAllActionGroups"
}
]
}
}
It seems to me a product bug, because I definitely use the correct datettime format without timezone offset, but something adds it to the end of the datetime value which can be observed in the error message. If you have a workaround, please let me know. Thanks