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_first
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation page demonstrates a significant Windows bias. All command-line examples are provided exclusively using PowerShell, with explicit references to Windows file paths (e.g., C:\ADF). There are no examples or instructions for running the same tasks on Linux or macOS, nor are cross-platform tools like Azure CLI or Bash scripts mentioned. The documentation assumes a Windows environment throughout, which may hinder Linux or macOS users.
Recommendations:
  • Provide equivalent Azure CLI examples for all PowerShell commands, as Azure CLI is cross-platform and works on Windows, Linux, and macOS.
  • Include Bash script examples for Linux/macOS users, especially for automation scenarios.
  • Use platform-agnostic file paths in examples (e.g., /home/user/ADF or ~/ADF) or explain both Windows and Linux/macOS path conventions.
  • Explicitly state that the examples are for Windows/PowerShell and provide links or guidance for Linux/macOS users.
  • Consider adding a section or callout on cross-platform support, highlighting any differences or additional steps required for non-Windows 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

Connect-AzAccount Select-AzSubscription "<Your subscription name>" $resourceGroupName = "<Resource Group Name>" $dataFactoryName = "<Data Factory Name. Must be globally unique>"; Remove-AzDataFactoryV2 $dataFactoryName -ResourceGroupName $resourceGroupName -force Set-AzDataFactoryV2 -ResourceGroupName $resourceGroupName -Location "East US" -Name $dataFactoryName Set-AzDataFactoryV2LinkedService -DataFactoryName $dataFactoryName -ResourceGroupName $resourceGroupName -Name "AzureStorageLinkedService" -DefinitionFile "C:\ADF\AzureStorageLinkedService.json" Set-AzDataFactoryV2Dataset -DataFactoryName $dataFactoryName -ResourceGroupName $resourceGroupName -Name "BlobDataset" -DefinitionFile "C:\ADF\BlobDataset.json" Set-AzDataFactoryV2Pipeline -DataFactoryName $dataFactoryName -ResourceGroupName $resourceGroupName -Name "Adfv2QuickStartPipeline" -DefinitionFile "C:\ADF\Adfv2QuickStartPipeline.json" $runId = Invoke-AzDataFactoryV2Pipeline -DataFactoryName $dataFactoryName -ResourceGroupName $resourceGroupName -PipelineName "Adfv2QuickStartPipeline" -ParameterFile C:\ADF\PipelineParameters.json while ($True) { $run = Get-AzDataFactoryV2PipelineRun -ResourceGroupName $resourceGroupName -DataFactoryName $DataFactoryName -PipelineRunId $runId if ($run) { if ($run.Status -ne 'InProgress') { Write-Host "Pipeline run finished. The status is: " $run.Status -foregroundcolor "Yellow" $run break } Write-Host "Pipeline is running...status: InProgress" -foregroundcolor "Yellow" Write-Host "Activity run details:" -foregroundcolor "Yellow" $result = Get-AzDataFactoryV2ActivityRun -DataFactoryName $dataFactoryName -ResourceGroupName $resourceGroupName -PipelineRunId $runId -RunStartedAfter (Get-Date).AddMinutes(-30) -RunStartedBefore (Get-Date).AddMinutes(30) $result Write-Host "Activity 'Output' section:" -foregroundcolor "Yellow" $result.Output -join "`r`n" } Start-Sleep -Seconds 15 }