Hi @Iswarya
If I understand your problem, you are trying to set the timezone for your Azure VMSS instances to Eastern Standard Time, but the timezone is defaulting to UTC. Here are a few things you can try to troubleshoot the issue
Check that the timezone is set correctly in your Packer template. You can set the timezone in the provisioners section of your Packer template by running a PowerShell script that sets the timezone. Here is an example of how to set the timezone to Eastern Standard Time:
{
"type": "powershell",
"inline":
[
"Set-TimeZone -Id 'Eastern Standard Time'"
]
}
Make sure that the timezone is set correctly in your Packer template and that the PowerShell script is running successfully.
Check that the timezone is set correctly in your Azure VMSS configuration. You can set the timezone for your VMSS instances by specifying the timeZone property in the virtualMachineProfile section of your Azure Resource Manager (ARM) template. Here is an example of how to set the timezone to Eastern Standard Time:
"virtualMachineProfile":
{
"storageProfile":
{
...
},
"osProfile":
{
...
},
"networkProfile":
{
...
},
"timeZone": "Eastern Standard Time"
}
Make sure that the timeZone property is set correctly in your ARM template. Check that the timezone is set correctly in your VMSS instances. You can check the timezone of your VMSS instances by logging into one of the instances and running the following command:
Get-TimeZone
This will display the timezone of the instance. If the timezone is not set correctly, you can set it by running the following command:
Set-TimeZone -Id 'Eastern Standard Time'
--please don't forget to "[Accept the answer]" if the reply is helpful--