Closed thepaulmacca closed 3 years ago
This isn't very obvious, but when I hover over the includedUpdateClassifications
property, I see this description:
Update classification included in the software update configuration. A comma separated string with required values
Have you tried specifying multiple settings in a comma-separated format - e.g.:
...
windows: {
includedUpdateClassifications: 'Critical,Security,UpdateRollup,Updates'
rebootSetting: 'IfRequired'
}
...
Disclaimer - I don't work for the Automation team, so I don't know the ins-and-outs of the service, but from the example the team has published alongside their API specification, it looks like an IANA time zone name:
Thanks for coming back to me, I'll give the update classifications a try. I didn't think of that!
Regarding the timeZone
- if I set it to Europe/Amsterdam
i get this error:
{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"code": "BadRequest",
"message": "{\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Argument scheduleAllData with value Orchestrator.Schedules.DataAccess.Models.ScheduleAllData is not valid. Error message: The start time of the schedule must be at least 5 minutes after the time you create the schedule. \"\r\n}"
}
]
}
}
Without timeZone
it works fine, but then I can't set up deployments for other regions. I guess I'll have to raise an issue with them somewhere as I'm out of ideas on what to try
@vrdmr - since you're tagged as an automation code owner. Do you know what could be going wrong here? Do you have any documentation to share?
Yep so the below works:
windows: {
includedUpdateClassifications: 'Critical,Security,UpdateRollup,Updates'
rebootSetting: 'IfRequired'
}
Thanks for your help! 👍
Bicep version 0.4.451
Describe the bug Trying to create a Windows Update Deployment and hitting a warning with
includedUpdateClassifications
To Reproduce Create a softwareUpdateConfigurations resource and add the below classifications:
Additional context When adding more than 1 update classification, I'm getting the below error:
I don't find the documentation on this very clear, and I don't see anything in the REST API specs either on how to do this correctly
Also, if I'd like this deployment to run at 10pm on the 3rd Saturday of each month (west europe region), how would I set the time for that? I'm not sure how to configure the
timeZone
Any help appreciated, thanks