We should update the "cloud" fact to determine whether or not a VM is running in Azure.
Fact structure:
"cloud": {
"provider": "azure"
}
*How to calculate whether a machine is running in Azure*
Windows
$systemEnclosure = Get-WmiObject -class Win32_SystemEnclosure -namespace root\CIMV2
$computerSystemProduct = Get-WmiObject -class Win32_ComputerSystemProduct -namespace root\CIMV2
'ChassisAssetTag: "{0}"' -f $systemEnclosure.SMBIOSAssetTag
Expected Results
"7783-7084-3265-9085-8269-3286-77"