Forum Discussion
Wim_Kestens
Feb 28, 2023Copper Contributor
Bicep : The provided time T09:00:28Z does not follow the ISO 8601 standard.
Error: New-AzResourceGroupDeployment: 10:18:37 - The deployment 'avd' failed with error(s). Showing 1 out of 1 error(s). Status Message: The provided time T09:00:28Z does not follow the ISO 8601 st...
- Mar 02, 2023
Herewith my code that works.
Thanks for your assistance.
resource shutdownSchedule_1 'Microsoft.DevTestLab/schedules@2018-09-15' = {name: 'shutdown-computevm-vmjump01'location: param_locationproperties: {status: 'Enabled'taskType: 'ComputeVmShutdownTask'dailyRecurrence: {time: '16:00'}timeZoneId: 'Central Europe Standard Time'targetResourceId: p_vm1_id}}
Robina
Iron Contributor
Error message is related to the format of the timestamp.
YYYY-MM-DDThh:mm:ss.sssZ
Where:
YYYY: Year
MM: Month (01-12)
DD: Day (01-31)
T: Time separator
hh: Hour (00-23)
mm: Minute (00-59)
ss: Second (00-59)
sss: Millisecond (000-999)
Z: Timezone offset (e.g. +00:00)
So, for example, the timestamp for March 1st, 2023 at 9:00:28 AM UTC would be:
2023-03-01T09:00:28.000Z
To use this format when providing timestamps to any commands or APIs that require it.
Wim_Kestens
Mar 02, 2023Copper Contributor
Herewith my code that works.
Thanks for your assistance.
resource shutdownSchedule_1 'Microsoft.DevTestLab/schedules@2018-09-15' = {
name: 'shutdown-computevm-vmjump01'
location: param_location
properties: {
status: 'Enabled'
taskType: 'ComputeVmShutdownTask'
dailyRecurrence: {
time: '16:00'
}
timeZoneId: 'Central Europe Standard Time'
targetResourceId: p_vm1_id
}
}