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_first
⚠️
missing_linux_example
⚠️
windows_tools
Summary:
The documentation demonstrates a clear Windows bias. All code examples are in C# and use Windows-centric command lines (e.g., 'cmd /c'), with no Linux shell equivalents provided. The only virtual machine image example is for Windows Server, and environment variable usage is explained for both platforms, but only Windows command syntax is shown in executable examples. There are no Linux-specific code samples, shell commands, or references to Linux tools or patterns.
Recommendations:
- Provide parallel Linux examples for all code snippets, especially for task command lines (e.g., show both 'cmd /c ...' and '/bin/bash -c ...').
- Include examples of creating pools with Linux VM images (e.g., Ubuntu) alongside the Windows example.
- Demonstrate how to reference and execute installed applications on Linux nodes using appropriate shell syntax.
- Mention Linux-specific considerations (such as file permissions, path separators, and case sensitivity) where relevant.
- Balance the order of presentation so that Linux and Windows are treated equally (e.g., alternate or combine examples, rather than always presenting Windows first).
Create pull request
Flagged Code Snippets
// Create the unbound CloudPool
CloudPool myCloudPool =
batchClient.PoolOperations.CreatePool(
poolId: "myPool",
targetDedicatedComputeNodes: 1,
virtualMachineSize: "standard_d1_v2",
VirtualMachineConfiguration: new VirtualMachineConfiguration(
imageReference: new ImageReference(
publisher: "MicrosoftWindowsServer",
offer: "WindowsServer",
sku: "2019-datacenter-core",
version: "latest"),
nodeAgentSkuId: "batch.node.windows amd64");
// Specify the application and version to install on the compute nodes
myCloudPool.ApplicationPackageReferences = new List<ApplicationPackageReference>
{
new ApplicationPackageReference {
ApplicationId = "litware",
Version = "1.1001.2b" }
};
// Commit the pool so that it's created in the Batch service. As the nodes join
// the pool, the specified application package is installed on each.
await myCloudPool.CommitAsync();
CloudTask task =
new CloudTask(
"litwaretask001",
"cmd /c %AZ_BATCH_APP_PACKAGE_LITWARE%\\litware.exe -args -here");
task.ApplicationPackageReferences = new List<ApplicationPackageReference>
{
new ApplicationPackageReference
{
ApplicationId = "litware",
Version = "1.1001.2b"
}
};
Windows:
AZ_BATCH_APP_PACKAGE_APPLICATIONID#version
Windows:
AZ_BATCH_APP_PACKAGE_BLENDER#2.7
string taskId = "blendertask01";
string commandLine =
@"cmd /c %AZ_BATCH_APP_PACKAGE_BLENDER%\blender.exe -args -here";
CloudTask blenderTask = new CloudTask(taskId, commandLine);