Change the timezone in a VM

Change the timezone in a VM


Generally this is not something you want to do!

Consider the following: an Azure VM is allocated to you. This VM is not running locally, but runs in a Microsoft Azure Data Center. It is common practice to use UTC-time for cloud resources, this includes VMs. The time in the VM is reflecting the time of where the VM is located. Moreover, changing the time inside the VM is conflicting with several other items:
  1. Changing the time zone does not change the timestamp on the uploaded folders in Inbox. 
  2. Changing the time zone will be purely for the clock inside the VM, the auto shutdown function already functions according to the time zone you have set. For more information about the auto shutdown feature, please visit: Adjusting the auto-shutdown of a VM.

Azure Virtual Machines (VMs) are provisioned by Microsoft Azure in Coordinated Universal Time (UTC/UTC+0). Setting your time zone just by clicking the clock and changing the time zone often does not work or only works for a brief moment before reverting back to UTC. Moreover, it would also revert back to UTC when deallocating the VM. With the steps below you can set the time zone which will stick after deallocating the VM.

You will need Owner rights to perform the steps below.
  1. Connect to a VM.
  2. Go to the startmenu and search for Windows Powershell.
  3. Right click on Windows Powershell > More > Run as Administrator.
  4. To list all the available timezones, type in the following command and Enter:
Get-TimeZone -ListAvailable
  1. Search for the timezone you want to change to and take note of the Id.
  2. Set the timezone by typing in the following command and Enter:
Set-TimeZone -Id "insert timezone here" > e.g. Set-TimeZone -Id "W. Europe Standard Time"

    • Related Articles

    • Managing and monitoring your VM

      From within the myDRE web portal, you can find a Manage and monitor VM menu that provides links directly to your VM in the Azure portal and Azure app. Within the Azure portal or app, you can start, stop and reset the VM, as well as analyze its ...
    • Generalize a VM

      Use this process only if you want to create a template for your own Workspace. If you want to create a template for the whole organisation, please contact your local ST member. Introduction Installing the same software on your VM can be tedious and ...
    • Changing VM names

      Introduction This feature is available to Workspace Accountables and Privileged Members. The friendly name is cosmetic and for ease of use in mydre.org. The real machine name or machine IP must be used in applications, the friendly name will not ...
    • Virtual Machine Types

      This article provides a simplified overview of Virtual Machine types available in Microsoft Azure. For a full overview, please have a look at https://azure.microsoft.com/en-gb/pricing/details/virtual-machines/series/. Make sure to select Region: West ...
    • Using the Azure Portal

      DRE is suitable for any type of user. However, perhaps you already have lots of IT experience and you know your way around Azure. That's when it might be interesting to know that you can also access your workspace resources through the Azure Portal. ...