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_tools
⚠️ missing_linux_example
⚠️ windows_first
Summary:
The documentation is heavily biased towards Windows and PowerShell usage. All code samples use PowerShell cmdlets, and there are no examples or guidance for using Linux-based tools or Bash scripting. The instructions for installing modules and running commands assume a PowerShell environment, and there is no mention of cross-platform alternatives or how to perform these tasks on Linux-based Hybrid Runbook Workers. The documentation also refers to Windows concepts (e.g., elevated PowerShell prompt) and does not provide parity for Linux users.
Recommendations:
  • Provide equivalent Bash/CLI examples for connecting to Azure SQL Database using managed identities (e.g., using Azure CLI and sqlcmd).
  • Document how to set up and use Hybrid Runbook Workers on Linux, including module installation and authentication steps.
  • Include instructions for installing required modules or tools on Linux (e.g., using pip for Azure CLI, apt/yum for sqlcmd).
  • Mention cross-platform compatibility of Azure Automation and clarify which steps or commands are OS-specific.
  • Add a section or note explicitly addressing Linux users and linking to relevant resources for Linux-based automation.
GitHub Create pull request

Scan History

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

Flagged Code Snippets

if ($($env:computerName) -eq "Client") {"Runbook running on Azure Client sandbox"} else {"Runbook running on " + $env:computerName} Disable-AzContextAutosave -Scope Process Connect-AzAccount -Identity $Token = (Get-AZAccessToken -ResourceUrl https://database.windows.net).Token Invoke-Sqlcmd -ServerInstance azuresqlserverxyz.database.windows.net -Database MyDBxyz -AccessToken $token -query 'select * from TableXYZ'