azure - 如何更改Azure虚拟机中的时区?

标签 azure azure-virtual-machine

如何在运行 Windows 服务器的 Azure 虚拟机中将时区从 UTC 更改为阿拉伯标准时间?

最佳答案

恐怕您实际上无法更改时区。即使您更改过一次,时区在重新启动后也会恢复为 UTC。

此外,不建议更改 Azure IaaS VM 的时区。

While it may be very tempting to change the server time on the Azure Virtual Machines using a startup task, it is not recommended, you should rather use methods like TimeZoneInfo.ConvertTimeFromUTCTime in your code.

您还可以查看this blog有关 Azure 上时区的更多详细信息。

希望这有帮助!

关于azure - 如何更改Azure虚拟机中的时区?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49298337/

相关文章:

azure - Cpanel -WHM 默认登录

azure - ARM,如何使参数文件依赖于其他参数

python - 是否可以使用 Pulumi 创建 Azure 服务主体?

azure - 如何从window azure访问事件日志

azure - 找出通过 azure VM 进出的数据流量

azure - 共享 Azure 虚拟机

Azure/Ansible "Invalid client secret is provided"

azure - 在Azure中创建 "Cloud Service"时会创建同名 "Virtual Machine",我可以删除它吗?

azure - 升级 Azure VM 会毁掉 VM 吗?

AZURE VM拒绝启动 "Starting (Could not start)"