This page contains Windows bias

About This Page

This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.

Bias Analysis

Bias Types:
⚠️ powershell_heavy
⚠️ windows_tools
⚠️ missing_linux_example
⚠️ windows_first
Summary:
The documentation page demonstrates a strong Windows bias. All command-line examples and device management instructions are provided exclusively using PowerShell cmdlets, with no equivalent Linux shell or cross-platform CLI examples. The documentation references Windows-centric tools and patterns (such as PowerShell and Windows-specific NUMA documentation) and does not provide Linux alternatives or parity in workflow or troubleshooting. While there is a brief mention that both Windows and Linux VHDs can be used as VM images, all operational guidance assumes a Windows/PowerShell environment.
Recommendations:
  • Provide equivalent Linux shell (bash) or Azure CLI examples for all PowerShell cmdlets used (e.g., for querying and setting NUMA policies, managing VMs).
  • Reference Linux documentation for NUMA and CPU affinity management, not just Windows.
  • Clarify whether the device management interface supports SSH or Linux-native management tools, and provide instructions if so.
  • When mentioning prerequisites or workflows, explicitly state and demonstrate steps for both Windows and Linux admin environments.
  • Ensure troubleshooting and monitoring guidance includes Linux-compatible tools and commands.
  • If PowerShell is required regardless of admin OS, clarify this up front and provide installation guidance for non-Windows platforms.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

Get-HcsNumaPolicy
Set-HcsNumaLpMapping -UseSkuPolicy
Get-HcsNumaLpMapping
Set-HcsNumaLpMapping -CpusForHighPerfVmsCommaSeperated <Logical indexes from the Get-HcsNumaLpMapping cmdlet> -AssignAllCpusToRoot $false
Get-HcsNumaLpMapping
[DBE-BNVGF33.microsoftdatabox.com]: PS>Get-HcsNumaPolicy Get-HcsNumaPolicy PolicyType: AllRoot HpnLpMapping: CPUs: [] PolicyType: SkuPolicy HpnLpMapping: CPUs: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47] [DBE-BNVGF33.microsoftdatabox.com]: PS>
Get-HcsNumaLpMapping
[DBE-BNVGF33.microsoftdatabox.com]: PS>Get-HcsNumaLpMapping Hardware: { Numa Node #0 : CPUs [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] } { Numa Node #1 : CPUs [24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47] } HpnCapableLpMapping: { Numa Node #0 : CPUs [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] } { Numa Node #1 : CPUs [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47] } BNVGF33: HpnLpMapping: { Numa Node #0 : CPUs [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] } { Numa Node #1 : CPUs [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47] } HpnLpAvailable: { Numa Node #0 : CPUs [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] } { Numa Node #1 : CPUs [28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47] }
[DBE-BNVGF33.microsoftdatabox.com]: Set-HcsNumaLpMapping -UseSkuPolicy Requested Config already exists. No action needed. [DBE-BNVGF33.microsoftdatabox.com]: PS> Set-HcsNumaLpMapping -UseAllRoot Requested Configuration requires a reboot... Machine will reboot in some time. Please be patient. [DBE-BNVGF33.microsoftdatabox.com]: PS>
get-vm
stop-vm -force
Get-HcsNumaLpMapping -MapType HighPerformanceCapable -NodeName <Output of hostname command>
[dbe-1csphq2.microsoftdatabox.com]: PS>hostname 1CSPHQ2 [dbe-1csphq2.microsoftdatabox.com]: P> Get-HcsNumaLpMapping -MapType HighPerformanceCapable -NodeName 1CSPHQ2 { Numa Node #0 : CPUs [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] } { Numa Node #1 : CPUs [24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39] } [dbe-1csphq2.microsoftdatabox.com]: PS>
[dbe-1csphq2.microsoftdatabox.com]: PS>Set-HcsNumaLpMapping -CpusForHighPerfVmsCommaSeperated "4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39" -AssignAllCpusToRoot $false Requested Configuration requires a reboot... Machine will reboot in some time. Please be patient. [dbe-1csphq2.microsoftdatabox.com]: PS>
dbe-1csphq2.microsoftdatabox.com]: PS> Get-HcsNumaLpMapping -MapType MinRootAware -NodeName 1CSPHQ2 { Numa Node #0 : CPUs [0, 1, 2, 3] } { Numa Node #1 : CPUs [20, 21, 22, 23] } [dbe-1csphq2.microsoftdatabox.com]: PS>
start-vm