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
⚠️ windows_first
Summary:
The documentation demonstrates a strong Windows/PowerShell bias. All command-line instructions for creating Azure resources (resource group, storage account, blob container, file copy) are provided exclusively as PowerShell scripts, with no equivalent Bash, Azure CLI, or Linux-native instructions. The prerequisites and workflow assume the use of PowerShell, a tool primarily associated with Windows environments, and reference Windows-centric patterns (e.g., 'Write-Host', PowerShell modules). There are no Linux shell or Azure CLI alternatives, and the documentation does not mention how to perform these steps from a Linux or cross-platform environment. This could hinder accessibility for users working on Linux or macOS systems.
Recommendations:
  • Provide equivalent Azure CLI (az) commands for all PowerShell scripts, as Azure CLI is cross-platform and widely used on Linux and macOS.
  • Explicitly mention that the steps can be performed from Linux, macOS, or Windows, and provide guidance for each platform.
  • Where PowerShell is referenced, add a parallel section or code block for Bash/Azure CLI users.
  • Clarify in the prerequisites that either PowerShell or Azure CLI can be used, and link to installation instructions for both.
  • Ensure that all portal navigation and screenshots are not Windows-specific and clarify that the Azure portal is web-based and OS-agnostic.
  • Consider including a table or toggle that lets users select their preferred environment (Windows/PowerShell or Linux/Bash/Azure CLI) for code samples.
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