How to set the default locale in Azure VMs?

Kumar Allamraju
1 min readDec 31, 2020

--

I was working on a customer project in which they deploy ~400 VMs via ARM templates. Among other things, they have a need to set the default locales (German, France, Japan etc..) in their Azure Virtual Machines.

After googling in StackOverflow, twitter, Quora and checking with the extended team here’s the closest I got. I have used the ARM template, PowerShell and Domain State Configuration to accomplish this task.

Pls check out my github repo for the ARM template . Obviously this template was based on Azure’s quickstart template to provision a Windows VM.

Here are the steps to deploy this ARM template.

  • Create a Resource Group
az group create --name nukeRG -l westus2
  • Download the json files from my github repo and run the below az CLI command
az deployment group create -g nukeRG --template-file azuredeploy.json --parameters azuredeploy.parameters.json --parameters adminUsername=azureuser --parameters adminPassword=YOURADMINPASSWORD
  • RDP into the VM and check the VM’s locale from Control Panel >> Clock & Region >> Region >> Location

References

--

--

No responses yet