Azure资源管理器模板集VM时区

时间:2018-08-13 16:05:54

标签: azure azure-resource-manager

我已经使用过

"osProfile": { "computerName": "[concat(parameters('vmNamePrefix'), copyIndex(1))]", "adminUsername": "[parameters('vmAdminUsername')]", "adminPassword": "[parameters('vmAdminPassword')]", "windowsConfiguration": { "timeZone": "GMT Standard Time" }

要尝试在部署新VM时设置时区,但仍然出现此部署错误:参数windowsConfiguration.timeZone的值无效。

根据https://docs.microsoft.com/en-ie/azure/templates/microsoft.compute/virtualmachines,语法似乎是正确的,但看起来好像不喜欢GMT Standard Time位。

任何想法都需要什么样的价值?

1 个答案:

答案 0 :(得分:1)

您可以使用以下powershell表达式:

[System.TimeZoneInfo]::GetSystemTimeZones()|select -ExpandProperty Id
相关问题