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
powershell_heavy
windows_tools
windows_first
Summary
The documentation provides a significant number of examples and troubleshooting steps using Azure PowerShell cmdlets (e.g., Get-AzRoleAssignment, Remove-AzRoleAssignment), which are primarily associated with Windows environments. In several troubleshooting sections, PowerShell is presented as the main or only scripting interface, with detailed command-line examples and error outputs. While Azure CLI is mentioned and used in some examples (which is cross-platform), PowerShell is often given equal or greater prominence, and in some cases, only PowerShell examples are provided for certain troubleshooting flows. There are no explicit Linux shell (bash) or native Linux tool examples, and Windows/PowerShell patterns are sometimes described before CLI or REST alternatives.
Recommendations
  • For every PowerShell example, provide an equivalent Azure CLI (bash/shell) example, especially for common tasks like listing, assigning, or removing role assignments.
  • When showing troubleshooting steps or error messages, include both PowerShell and CLI outputs where applicable.
  • Where PowerShell is referenced, clarify that Azure CLI commands are cross-platform and can be used on Linux, macOS, and Windows.
  • If possible, add bash script snippets or usage patterns for Linux users, especially for filtering or processing output (e.g., using jq or grep with az CLI).
  • In sections where PowerShell is presented first, consider presenting Azure CLI examples first or side-by-side to avoid a Windows-first impression.
  • Explicitly mention that all management tasks can be performed from Linux/macOS using Azure CLI or REST API, not just PowerShell.
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 Biased Biased
2026-01-11 00:00 #240 completed Biased Biased
2026-01-10 00:00 #237 completed Biased Biased
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-10 00:00 #107 completed Clean Clean
2025-08-17 00:01 #83 cancelled Clean Clean
2025-07-13 21:37 #48 completed Clean Clean
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

PS C:\> Remove-AzRoleAssignment -ObjectId 33333333-3333-3333-3333-333333333333 -RoleDefinitionName "Storage Blob Data Contributor" -Scope /subscriptions/11111111-1111-1111-1111-111111111111
RoleAssignmentId   : /subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Authorization/roleAssignments/22222222-2222-2222-2222-222222222222
Scope              : /subscriptions/11111111-1111-1111-1111-111111111111
DisplayName        :
SignInName         :
RoleDefinitionName : Storage Blob Data Contributor
RoleDefinitionId   : ba92f5b4-2d11-453d-a403-e96b0029c9fe
ObjectId           : 33333333-3333-3333-3333-333333333333
ObjectType         : User
CanDelegate        : False
PS C:\> Remove-AzRoleAssignment -ObjectId 33333333-3333-3333-3333-333333333333 -RoleDefinitionName "Storage Blob Data Contributor"

Remove-AzRoleAssignment : The provided information does not map to a role assignment.
At line:1 char:1
+ Remove-AzRoleAssignment -ObjectId 33333333-3333-3333-3333-333333333333 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : CloseError: (:) [Remove-AzRoleAssignment], KeyNotFoundException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.RemoveAzureRoleAssignmentCommand
Get-AzRoleAssignment -ObjectId $securityPrincipalObject.Id
$validateRemovedRoles = Get-AzRoleAssignment -ObjectId $securityPrincipalObject.Id 
$validateRemovedRoles = Get-AzRoleAssignment -Scope /subscriptions/$subId | Where-Object -Property ObjectId -EQ $securityPrincipalObject.Id