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 notable Windows bias. PowerShell commands are used exclusively for disk operations, with no Bash or CLI alternatives provided. The instructions for swapping OS disks reference a Windows-specific article. AzCopy is presented as the preferred tool, but only PowerShell usage is shown. Where both Windows (RDP) and Linux (SSH) are mentioned, the Windows example is listed first. There are no explicit Linux shell or cross-platform CLI examples for key steps, and the overall workflow assumes familiarity with Windows-centric tools and patterns.
Recommendations:
  • Provide equivalent Bash/Azure CLI examples for all PowerShell scripts, especially for disk operations and AzCopy usage.
  • Reference both Windows and Linux documentation for tasks like OS disk swapping, not just Windows-specific articles.
  • When giving examples for VM network configuration, alternate the order or present both Windows (RDP) and Linux (SSH) examples together, or lead with Linux where appropriate.
  • Explicitly mention that AzCopy and other tools can be used from Linux/macOS as well, and provide sample commands.
  • Add notes or sections for users working from Linux/macOS environments, including any prerequisites or differences in workflow.
  • Ensure that all screenshots and UI instructions are not Windows-specific, or clarify if they are cross-platform.
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

# Fill in the source/target disk names and their resource group names $sourceDiskName = "SOURCE_DISK" $sourceRG = "SOURCE_RG" $targetDiskName = "TARGET_DISK" $targetRG = "TARGET_RG" $targetRegion = "TARGET_LOCATION" # Create an empty target disk from the source disk $sourceDisk = Get-AzDisk -ResourceGroupName $sourceRG -DiskName $sourceDiskName $targetDiskconfig = New-AzDiskConfig -SkuName $sourceDisk.Sku.Name -UploadSizeInBytes $($sourceDisk.DiskSizeBytes+512) -Location $targetRegion -OsType $sourceDisk.OsType -CreateOption 'Upload' $targetDisk = New-AzDisk -ResourceGroupName $targetRG -DiskName $targetDiskName -Disk $targetDiskconfig # Copy the disk content from source to target $sourceDiskSas = Grant-AzDiskAccess -ResourceGroupName $sourceRG -DiskName $sourceDiskName -DurationInSecond 1800 -Access 'Read' $targetDiskSas = Grant-AzDiskAccess -ResourceGroupName $targetRG -DiskName $targetDiskName -DurationInSecond 1800 -Access 'Write' azcopy copy $sourceDiskSas.AccessSAS $targetDiskSas.AccessSAS --blob-type PageBlob Revoke-AzDiskAccess -ResourceGroupName $sourceRG -DiskName $sourceDiskName Revoke-AzDiskAccess -ResourceGroupName $targetRG -DiskName $targetDiskName
"networkInterface": { "sharedPublicIpAddressConfiguration": { "inboundNatRules": [ { "transportProtocol": "tcp", "backendPort": 3389 } ] } }