How to change the time zone in Azure

SIRAJUDEEN, NAVRIN 0 Reputation points
2023-10-09T18:30:18.35+00:00

How to change the time zone in Azure

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,446 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 101.2K Reputation points MVP
    2023-10-09T20:26:16.68+00:00

    Hi SIRAJUDEEN, NAVRIN ,

    the time zone of a VM in Azure can be set via PowerShell.

    # Get available time zones by name
    Get-TimeZone -ListAvailable | Where-Object ({$_.ID -like "*Europe*"})
    # Copy the ID of the time zone you get by running Get-TimeZone -ListAvailable | Where-Object ({$_.ID -like "*Europe*"})
    # for instance "W. Europe Standard Time" and use the follwing line to set this time zone for the Azure VM 
    Set-TimeZone -Id "W. Europe Standard Time"
    

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    4 people found this answer helpful.

  2. samy vanderspikken 5 Reputation points
    2023-10-09T20:19:27.7666667+00:00

    Hi Sirajudeen,

    I hope you are doing fine!

    VM's in Azure use the UTC time standard by default. To change the time within an Azure VM it is best to change it with Powershell.

    Here is the Powershell command ( I assume that you come from India):

    Step 1 -> open cmd.exe (as an administrator) in your Azure VM

    Step 2:

    set-timezone -id "India Standard Time"
    
    

    Step 3 -> That's it!

    If you want to set a different country, use this Powershell command:

    Step 1.1 -> get-timezone -listavailable

    Step 1.2 -> Search for your country and copy and paste the ID when setting a timezone (step 2)

    I hope this will help, please reply if you have any other questions!

    1 person found this answer helpful.
    0 comments No comments