Skip to content

Commit

Permalink
Deect Azure and differentiate from Hyper-V by looking at hte bios ver…
Browse files Browse the repository at this point in the history
…sion

(cherry picked from commit 1279a7a)
  • Loading branch information
sbeaver-netgate authored and rbgarga committed Jun 2, 2020
1 parent 123ac7a commit 107a804
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/etc/inc/system.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2503,7 +2503,11 @@ function system_identify_specific_platform() {
break;
case 'Virtual Machine':
if ($maker[0] == "Microsoft Corporation") {
return (array('name' => 'Hyper-V', 'descr' => 'Hyper-V Virtual Machine'));
if (stripos($bios[0], "Hyper") !== false) {
return (array('name' => 'Hyper-V', 'descr' => 'Hyper-V Virtual Machine'));
} else {
return (array('name' => 'Azure', 'descr' => 'Microsoft Azure'));
}
}
break;
case 'VMware Virtual Platform':
Expand Down

0 comments on commit 107a804

Please sign in to comment.