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
windows_first
powershell_heavy
windows_tools
Summary
The documentation provides a balanced set of code samples for generating SAS tokens in multiple languages (NodeJS, Java, PHP, C#, PowerShell, Bash). However, there is a mild Windows bias: PowerShell (a Windows-centric tool) is given a dedicated section, and the Bash example (for Linux/macOS) is placed last. Additionally, disabling SAS authentication is only described via the Azure Portal (a GUI tool most accessible on Windows) and ARM templates, with no mention of CLI or Linux-native tooling. There are no explicit Linux command-line (Azure CLI) examples for management tasks, and the documentation references .NET samples first in the 'Samples' section.
Recommendations
  • Reorder code samples so that Bash (Linux/macOS) appears before PowerShell, or present them side-by-side.
  • Add Azure CLI examples for management tasks such as disabling SAS/local authentication, alongside ARM template and Portal instructions.
  • Include references to SDK samples in other languages (e.g., Python, Java) and not just .NET, to improve cross-platform parity.
  • Explicitly mention that Bash scripts are suitable for Linux/macOS environments, and PowerShell for Windows, to guide users.
  • Where possible, provide parity in tooling instructions (e.g., show how to perform management tasks using both Azure CLI and Portal).
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Biased Biased
2026-01-13 00:00 #246 completed Clean Clean
2026-01-11 00:00 #240 completed Biased Biased
2026-01-10 00:00 #237 completed Clean Clean
2026-01-09 00:34 #234 completed Biased Biased
2026-01-08 00:53 #231 completed Biased Biased
2026-01-06 18:15 #225 cancelled Clean Clean
2025-09-11 00:00 #108 completed Clean Clean
2025-08-11 00:00 #77 completed Clean Clean
2025-08-10 00:00 #76 completed Clean Clean
2025-08-09 00:00 #75 completed Clean Clean
2025-08-08 00:00 #74 completed Clean Clean
2025-08-07 00:00 #73 completed Clean Clean
2025-08-06 00:00 #72 completed Clean Clean
2025-08-05 00:00 #71 completed Clean Clean
2025-08-03 00:00 #69 completed Clean Clean
2025-08-01 00:00 #67 completed Clean Clean
2025-07-31 00:00 #66 completed Clean Clean
2025-07-30 00:00 #65 completed Clean Clean
2025-07-29 00:01 #64 completed Clean Clean
2025-07-13 21:37 #48 completed Biased Biased
2025-07-09 13:09 #3 cancelled Clean Clean
2025-07-08 04:23 #2 cancelled Biased Biased

Flagged Code Snippets

SHA-256('https://<yournamespace>.servicebus.windows.net/'+'\n'+ 1438205742)
function generateSasToken($uri, $sasKeyName, $sasKeyValue) 
{ 
    $targetUri = strtolower(rawurlencode(strtolower($uri))); 
    $expires = time(); 	
    $expiresInMins = 60; 
    $week = 60*60*24*7;
    $expires = $expires + $week; 
    $toSign = $targetUri . "\n" . $expires; 
    $signature = rawurlencode(base64_encode(hash_hmac('sha256', 			
     $toSign, $sasKeyValue, TRUE))); 
    
    $token = "SharedAccessSignature sr=" . $targetUri . "&sig=" . $signature . "&se=" . $expires . 		"&skn=" . $sasKeyName; 
    return $token; 
}