Sad Tux - Windows bias detected
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

Detected Bias Types
powershell_heavy
windows_first
Summary
The documentation provides parity between Azure Portal, PowerShell, and Azure CLI for all major operations (enable, restore, disable soft delete). However, PowerShell examples are always presented before Azure CLI, which may suggest a Windows-first approach. There are no explicit Linux-specific examples or references to Linux tools, but the CLI examples are cross-platform. There is a mild bias toward Windows/PowerShell by order of presentation and lack of explicit Linux context.
Recommendations
  • Alternate the order of PowerShell and Azure CLI examples, or present Azure CLI examples first to reflect cross-platform usage.
  • Explicitly mention that Azure CLI commands work on Windows, Linux, and macOS, and are suitable for Linux users.
  • Consider adding Bash shell context or example scripts for Linux users, especially for automation scenarios.
  • Where possible, provide notes or links for Linux-specific guidance (e.g., installing Azure CLI on Linux, using CLI in Bash scripts).
  • If PowerShell is mentioned, clarify that PowerShell Core is available cross-platform, or provide a note for Linux users.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Clean Clean
2026-01-13 00:00 #246 completed Clean Clean
2026-01-11 00:00 #240 completed Clean Clean
2026-01-10 00:00 #237 completed Clean Clean
2026-01-09 00:34 #234 completed Clean Clean
2026-01-08 00:53 #231 completed Clean Clean
2025-08-19 00:01 #85 completed Clean Clean
2025-07-13 21:37 #48 completed Biased Biased
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

$resourceGroupName = "<resource-group>"
$storageAccountName = "<storage-account>"

Update-AzStorageFileServiceProperty `
    -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName `
    -EnableShareDeleteRetentionPolicy $true `
    -ShareRetentionDays 7
Get-AzStorageFileServiceProperty `
    -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName
Get-AzRmStorageShare `
    -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName `
    -IncludeDeleted
Restore-AzRmStorageShare `
    -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName `
    -DeletedShareVersion 01D5E2783BDCDA97 # replace with your deleted version number
Update-AzStorageFileServiceProperty `
    -ResourceGroupName $resourceGroupName `
    -StorageAccountName $storageAccountName `
    -EnableShareDeleteRetentionPolicy $false