Share via


Changing the date in Azure virtual machines

Question

Wednesday, September 10, 2014 10:45 AM

Hi,

We have a requirement where we wanted the system date to be reset. We are able to change the date. but once after changing the date, it is again reset back to actual time. Is there a way to reset the system date and time in Azure virtual machines? And also would there be any impact if we change the date and time in virtual machines.

Thanks in Advance

All replies (4)

Thursday, September 11, 2014 1:39 PM ✅Answered | 1 vote

Hi Thamilarasi,

I'm afraid you would not be able to change the data. Even if you did, on restart the system date would revert to UTC. However, as I suggested, you could run a command script matching your requirement as a start-up task.
This is however not advisable.

Regards,
Malar.


Wednesday, September 24, 2014 3:25 AM ✅Answered | 1 vote

Hi,

You could make the Windows Time service startup type to Manual and change the date and time to check the result.

Regards.

Vivian Wang


Wednesday, September 10, 2014 1:05 PM

Hi Thamilarasi,

Ideally in an Azure Virtual Machine, the time zone is set to UTC. You would be able to change the time zone, but on restarting the virtual machine would revert to UTC.
However you could try running a command utility as a start-up task to change the time zone in your Azure Virtual Machine.
Refer the link below for further details:

http://wely-lau.net/2011/06/26/setting-timezone-in-windows-azure-3/

Regards,
Malar.

Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


Thursday, September 11, 2014 12:21 PM

HI,

Thanks for your reply. But my requirement is not about changing the time zone. I want to set my date to some previous date for example today is september 11. I wanted to set my date to september 1. Is this possible? If so how do i do it? Would there be any impact if i do this kind of date change?

Thanks,

Thamilarasi Nataraj