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:
⚠️ windows_first
⚠️ powershell_heavy
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation page demonstrates a strong Windows bias. All code samples use Windows-specific command syntax (cmd.exe), and there are no Linux shell (bash) equivalents. File path examples use backslashes, with only a brief note to change to forward slashes for Linux, but no Linux-specific code is provided. The sample project is a Visual Studio solution targeting .NET/C#, with no mention of cross-platform development environments or alternative languages. Windows tools and patterns (such as Visual Studio, .exe files, and Windows paths) are mentioned exclusively or before any Linux equivalents, which are not provided.
Recommendations:
  • Provide equivalent Linux/bash code samples for task commands (e.g., use bash shell commands instead of only cmd.exe).
  • Show file path examples using both Windows (\) and Linux (/) conventions, or use platform-agnostic path construction.
  • Include instructions for running the sample project on Linux (e.g., using .NET Core/SDK on Linux, VS Code, or CLI tools), not just Visual Studio on Windows.
  • Mention and provide examples for alternative languages and SDKs (e.g., Python, Java) that are cross-platform.
  • Explicitly state any platform-specific requirements or differences, and offer guidance for both Windows and Linux users.
  • Where possible, use platform-neutral terminology and tools, or provide parallel instructions for both environments.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-07-12 23:44 #41 in_progress ❌ Biased
2025-07-12 00:58 #8 cancelled ✅ Clean
2025-07-10 05:06 #7 processing ✅ Clean

Flagged Code Snippets

CloudBlobContainer container = storageAccount.CreateCloudBlobClient().GetContainerReference(containerName); await container.CreateIfNotExists(); new CloudTask(taskId, "cmd /v:ON /c \"echo off && set && (FOR /L %i IN (1,1,100000) DO (ECHO !RANDOM!)) > output.txt\"") { OutputFiles = new List<OutputFile> { new OutputFile( filePattern: @"..\std*.txt", destination: new OutputFileDestination( new OutputFileBlobContainerDestination( containerUrl: container.Uri, path: taskId, identityReference: new ComputeNodeIdentityReference() { ResourceId = "/subscriptions/SUB/resourceGroups/RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name"} })), uploadOptions: new OutputFileUploadOptions( uploadCondition: OutputFileUploadCondition.TaskCompletion)) } }
new CloudTask(taskId, "cmd /v:ON /c \"echo off && set && (FOR /L %i IN (1,1,100000) DO (ECHO !RANDOM!)) > output.txt\"") { OutputFiles = new List<OutputFile> { new OutputFile( filePattern: @"..\std*.txt", destination: new OutputFileDestination( new OutputFileBlobContainerDestination( containerUrl: containerSasUrl, path: taskId)), uploadOptions: new OutputFileUploadOptions( uploadCondition: OutputFileUploadCondition.TaskCompletion)), new OutputFile( filePattern: @"output.txt", destination: new OutputFileDestination(new OutputFileBlobContainerDestination( containerUrl: containerSasUrl, path: taskId + @"\output.txt")), uploadOptions: new OutputFileUploadOptions( uploadCondition: OutputFileUploadCondition.TaskCompletion)), }