Azure VM sets it's time zone as UTC time zone by default. So, it follows the time always until you set a different time zone. I am doing the settings in the following way. Hope, this will help you too
The steps are executed in PowerShell Commands
- Open windows PowerShell as administrator in the VM
- Type the command so that you get the current time zone settings in the VM :
Get-TimeZone
I am expecting the following result
- Now you need to find the id of your time zone using the command. Note that, you must change the string used as per your location. In my case it is India:
Get-TimeZone -ListAvailable | where ({$_.Id -like "India*"})
- Copy the id shown corresponding to your location and set the new time zone by the command. Here again, change the string id as per your location:
Set-TimeZone -Id "India Standard Time"
- This should immediately change the time to the correct time in the location
----------
--please don't forget to upvote
and Accept as answer
if the reply is helpful--