Hi,
We recently had to spin up a new Azure VM to run some of our Batch jobs where we need to schedule them to run at specific times in Singapore Time Zone.
But surprisingly when when we VM is provisioned and started…we see the default time zone is set to UTC. Usually by default, every time this would be set to UTC.
In our case, we need to change it to SGT(Singapore Time Zone). The usual way of changing the time zone from Settings–> Time & Language was not possible as this is disabled in our case. But even though it is enabled and changed here, it would be reverted back to UTC when we allocate & deallocate the VM.
So you can use Power Shell Scripts to make this thing work for you. Use below to get all time zones.
Get-TimeZone -ListAvailable
If you want to filter the list, you can do so like
Get-TimeZone -ListAvailable | where ({$_.Id -like “Singapore*”})
Finally for setting the timezone, you can use this cmdlet
Set-TimeZone -Id “Singapore Standard Time”
Hope this helps…
Thank you.
Cheers,
PMDY
Like this:
Like Loading...