Disable Hyperthreading on Azure Windows VM

Hyperthreading in Azure Windows VM

How to check if the VM has hyperthreading enabled?

Azure VM Size with Hyperthreading enabled

CPU Get NumberOfCores,NumberOfLogicalProcessors /Format:List

Check if hyperthreading is enabled or disabled

How to disable Hyperthreading on Azure VM running Windows?

platformsettings.host_environment.disablehyperthreading

Tagging via Azure Portal

az resource tag — ids /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Compute/virtualMachines/{VM}— tags platformsettings.host_environment.disablehyperthreading=true

Tagging via Bash using CLI command

Set-AzureRmResource -ResourceGroupName <RGName> -Name <VMName> -ResourceType “Microsoft.Compute/VirtualMachines” -Tag @{“platformsettings.host_environment.disablehyperthreading”=”true”}

Next Steps?

Redeploying a VM

Validate if hyperthreading has been disabled:

CPU Get NumberOfCores,NumberOfLogicalProcessors /Format:List

Hyperthreading disabled

How to re-enable Hyperthreading on Azure VM running Windows?

Senior Cloud Engineer | 7x Microsoft Azure Certified | Solutions Architect | Azure DevOps | AVD | Security | Former Research Scholar at Georgia Tech.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store