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:
⚠️
windows_first
⚠️
powershell_heavy
⚠️
missing_linux_example
⚠️
windows_tools
Summary:
The documentation exhibits a Windows bias by presenting Windows terminology and tools first (e.g., RDP before SSH), providing code examples that default to Windows node agent SKUs, and omitting explicit Linux-specific examples or commands. References to Windows-specific tools and patterns (such as RDP and nodeAgentSkuId for Windows) are more prominent, while Linux equivalents are only mentioned in passing or as secondary options.
Recommendations:
- Provide parallel Linux-focused examples alongside Windows ones, including explicit nodeAgentSkuId values for Linux pools.
- When listing connection methods, mention SSH (Linux) before or alongside RDP (Windows), or present both equally.
- Include sample code snippets and REST API request bodies for creating Linux-based pools, not just Windows.
- Reference Linux tools and workflows (e.g., bash, Linux CLI commands) explicitly in relevant sections.
- Ensure that all guidance (such as for Packer or image preparation) includes both Linux and Windows links and steps, not just Windows or generic instructions.
- Avoid defaulting to Windows-specific values (like 'batch.node.windows amd64') in code samples; provide Linux alternatives or clarify how to select the appropriate value.
Create pull request
Flagged Code Snippets
private static VirtualMachineConfiguration CreateVirtualMachineConfiguration(ImageReference imageReference)
{
return new VirtualMachineConfiguration(
imageReference: imageReference,
nodeAgentSkuId: "batch.node.windows amd64");
}
private static ImageReference CreateImageReference()
{
return new ImageReference(
virtualMachineImageId: "/subscriptions/{sub id}/resourceGroups/{resource group name}/providers/Microsoft.Compute/images/{image definition name}");
}
private static void CreateBatchPool(BatchClient batchClient, VirtualMachineConfiguration vmConfiguration)
{
try
{
CloudPool pool = batchClient.PoolOperations.CreatePool(
poolId: PoolId,
targetDedicatedComputeNodes: PoolNodeCount,
virtualMachineSize: PoolVMSize,
virtualMachineConfiguration: vmConfiguration);
pool.Commit();
}