Quick Tip: Finding Azure Datacenter Host running your Azure Virtual Machine
This article isn’t going to mention anything new. May people may already know Azure runs on a Microsoft Hypervisor. Even on a standalone Hyper-V server the VM’s hold information about the host the virtual machine is running on. The registry key is:
HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters
You can run the following command to check the information using powershell.
Get-Item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters"
The above sample output indicates how Azure maintains virtual machine names internally.
There is other useful information in this registry and one level up.