Files
cheat-sheets/Cloud/Azure/Azure Virtual Machine/Change Time Zone.md
2022-11-03 15:39:06 +01:00

21 lines
585 B
Markdown

Timezones on Virtual Machines in Azure can not be set in Settings or Control panel, it needs to be set by a powershell command.
List all available time zones
``` Powershell
Get-TimeZone -ListAvailable
```
List available time zones for a specific region
``` Powershell
Get-TimeZone -ListAvailable | where ({$_.Id -like "*Europe*"})
```
Set the time one on the server
``` Powershell
Set-TimeZone -Id "W. Europe Standard Time"
```
Restart the server
[Change Time Zone of Azure Virtual Machines | David Galiata - neoslash.net](https://www.neoslash.net/blog/Azure%20vm%20time%20zone)