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
Summary:
The documentation provides PowerShell-based examples (specifically using the Microsoft Graph PowerShell module) for configuring password expiry, but does not offer equivalent CLI or scripting examples for Linux/macOS users. There is an implicit assumption that administrators will use PowerShell, which is more common on Windows. No mention is made of cross-platform alternatives such as Azure CLI, Bash, or REST API usage via curl, and there are no Linux/macOS-specific instructions or examples.
Recommendations:
  • Provide equivalent examples using Azure CLI and/or Bash scripts (e.g., using curl to call Microsoft Graph API), which are natively available on Linux/macOS.
  • Explicitly mention that PowerShell Core is cross-platform and provide installation instructions for non-Windows systems, if PowerShell must be used.
  • Where possible, present REST API calls with both PowerShell and curl/Bash examples, so users on any OS can follow along.
  • Reorder or parallelize examples so that Windows and Linux/macOS approaches are given equal prominence.
  • Add a note clarifying that all operations can be performed from any OS, and link to relevant cross-platform tool documentation.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-09-13 00:00 #110 completed ❌ Biased
2025-09-12 00:00 #109 completed ❌ Biased
2025-09-11 00:00 #108 completed ❌ Biased
2025-09-10 00:00 #107 completed ❌ Biased
2025-09-09 00:00 #106 completed ❌ Biased
2025-08-14 00:01 #80 in_progress ❌ Biased
2025-08-13 00:00 #79 in_progress ✅ Clean
2025-07-13 21:11 #45 cancelled ❌ Biased
2025-07-13 20:48 #44 cancelled ❌ Biased
2025-07-13 20:32 #43 cancelled ✅ Clean
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

Import-Module Microsoft.Graph.Identity.DirectoryManagement Connect-MgGraph -Scopes 'Domain.ReadWrite.All' $domainId = "contoso.com" $params = @{ passwordValidityPeriodInDays = 90 } Update-MgDomain -DomainId $domainId -BodyParameter $params