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_first
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation is heavily focused on Windows and PowerShell, with all examples and instructions using Windows PowerShell. There is an explicit note that the Microsoft Graph PowerShell module cmdlets must be run from Windows PowerShell, and no Linux or cross-platform alternatives are provided. The use of Windows-specific tools and patterns (such as Send-MailMessage and credential assets for PowerShell) further reinforces the Windows bias. There are no Bash, Azure CLI, or PowerShell Core examples, nor any mention of how to perform these tasks on Linux or macOS.
Recommendations:
  • Provide equivalent examples using PowerShell Core (pwsh), which is cross-platform, and clarify which cmdlets are supported.
  • Include Azure CLI examples for authentication and management where possible, as Azure CLI is cross-platform.
  • Explicitly state platform limitations and suggest workarounds or alternatives for Linux/macOS users.
  • Highlight any Office 365 or Azure Automation features that are not available on non-Windows platforms.
  • Where Windows PowerShell is required, suggest using cloud-based automation (e.g., Azure Automation runbooks) that abstracts away the local OS, and clarify that local scripting on Linux/macOS is not supported for these features.
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

Install-Module Microsoft.Graph -Scope CurrentUser
$emailFromAddress = "admin@TenantOne.com" $emailToAddress = "servicedesk@TenantOne.com" $emailSMTPServer = "outlook.office365.com" $emailSubject = "Office 365 License Report" $credObject = Get-AutomationPSCredential -Name "Office-Credentials" Connect-MgGraph -Scopes "Directory.Read.All" $O365Licenses = Get-MgSubscribedSku | Out-String Send-MailMessage -Credential $credObject -From $emailFromAddress -To $emailToAddress -Subject $emailSubject -Body $O365Licenses -SmtpServer $emailSMTPServer -UseSSL