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 provides only a PowerShell script for monitoring directory quota, with no equivalent example for Linux or cross-platform environments. It assumes the use of Windows tools and patterns (PowerShell, Invoke-RestMethod, New-Object), and does not mention or prioritize Linux-compatible alternatives. This may hinder users on Linux or macOS from following the guide easily.
Recommendations:
  • Provide a cross-platform example using curl and jq (or similar tools) for Linux/macOS users.
  • Include a note that the PowerShell script can be run on PowerShell Core, which is available on Linux and macOS, if applicable.
  • List both Windows (PowerShell) and Linux/macOS (bash/curl) examples side by side, or at least mention Linux alternatives.
  • Avoid assuming the user is on Windows; use more neutral language and tool recommendations.
  • Add a section or callout for Linux users, explaining how to achieve the same result with native tools.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-09-13 00:00 #110 completed ❌ Biased
2025-08-13 00:00 #79 in_progress ✅ Clean
2025-07-13 21:17 #46 cancelled ❌ Biased
2025-07-13 20:48 #44 cancelled ✅ Clean
2025-07-13 20:32 #43 cancelled ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

$tenantId = "[TenantId]" $clientId = "[ClientID]" $clientSecret = "[ClientSecret]" ## Use Client Credentials flow to get token to call Graph API $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("Content-Type", "application/x-www-form-urlencoded") $body = "grant_type=client_credentials&client_id=" + $clientId + "&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default&client_secret=" + $clientSecret $endpoint = "https://login.microsoftonline.com/" + $tenantId + "/oauth2/v2.0/token" $response = Invoke-RestMethod $endpoint -Method "POST" -Headers $headers -Body $body ## Call Graph API using token obtained in previous step $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("Authorization", "Bearer " + $response.access_token) $response = Invoke-RestMethod 'https://graph.microsoft.com/beta/organization?$select=directorySizeQuota' -Method 'GET' -Headers $headers $response | ConvertTo-Json