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
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation demonstrates a bias toward Windows by exclusively providing Azure PowerShell scripts for resource creation and setup, with no equivalent Bash/CLI or Linux-native instructions. The use of PowerShell is assumed throughout, and there are no references to Azure CLI or Bash scripting, which are more common in Linux environments. This may hinder Linux users or those preferring cross-platform tools.
Recommendations:
  • Provide equivalent Azure CLI (az) commands and Bash script examples alongside PowerShell scripts for all resource creation and management steps.
  • Explicitly mention that users can use either PowerShell or Azure CLI, and link to both installation guides.
  • Where possible, use cross-platform tools and patterns (e.g., Azure CLI, REST API) in examples, or at least present them before or alongside Windows/PowerShell-specific instructions.
  • Add a section or callout for Linux/macOS users, clarifying any differences or additional steps required.
  • Review all step-by-step instructions to ensure parity between Windows and Linux environments, especially for scripting and automation tasks.
GitHub Create pull request

Scan History

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

Flagged Code Snippets

$resourceGroupName = "<Azure Resource Group Name>" $storageAccountName = "<Azure Storage Account Name>" $location = "East US" $sourceStorageAccountName = "hditutorialdata" $sourceContainerName = "adfv2hiveactivity" $destStorageAccountName = $storageAccountName $destContainerName = "adfgetstarted" # don't change this value. #################################### # Connect to Azure #################################### #region - Connect to Azure subscription Write-Host "`nConnecting to your Azure subscription ..." -ForegroundColor Green $sub = Get-AzSubscription -ErrorAction SilentlyContinue if(-not($sub)) { Connect-AzAccount } # If you have multiple subscriptions, set the one to use # Select-AzSubscription -SubscriptionId "<SUBSCRIPTIONID>" #endregion #################################### # Create a resource group, storage, and container #################################### #region - create Azure resources Write-Host "`nCreating resource group, storage account and blob container ..." -ForegroundColor Green New-AzResourceGroup ` -Name $resourceGroupName ` -Location $location New-AzStorageAccount ` -ResourceGroupName $resourceGroupName ` -Name $destStorageAccountName ` -Kind StorageV2 ` -Location $location ` -SkuName Standard_LRS ` -EnableHttpsTrafficOnly 1 $destStorageAccountKey = (Get-AzStorageAccountKey ` -ResourceGroupName $resourceGroupName ` -Name $destStorageAccountName)[0].Value $sourceContext = New-AzStorageContext ` -StorageAccountName $sourceStorageAccountName ` -Anonymous $destContext = New-AzStorageContext ` -StorageAccountName $destStorageAccountName ` -StorageAccountKey $destStorageAccountKey New-AzStorageContainer ` -Name $destContainerName ` -Context $destContext #endregion #################################### # Copy files #################################### #region - copy files Write-Host "`nCopying files ..." -ForegroundColor Green $blobs = Get-AzStorageBlob ` -Context $sourceContext ` -Container $sourceContainerName ` -Blob "hivescripts\hivescript.hql" $blobs|Start-AzStorageBlobCopy ` -DestContext $destContext ` -DestContainer $destContainerName ` -DestBlob "hivescripts\partitionweblogs.hql" Write-Host "`nCopied files ..." -ForegroundColor Green Get-AzStorageBlob ` -Context $destContext ` -Container $destContainerName #endregion Write-host "`nYou will use the following values:" -ForegroundColor Green write-host "`nResource group name: $resourceGroupName" Write-host "Storage Account Name: $destStorageAccountName" write-host "Storage Account Key: $destStorageAccountKey" Write-host "`nScript completed" -ForegroundColor Green