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_first
missing_linux_example
windows_tools
Summary
The documentation page demonstrates a Windows bias by providing only Azure PowerShell examples for custom role creation and assignment, referencing PowerShell before Azure CLI and REST API, and omitting equivalent Linux/bash examples. The use of PowerShell-centric instructions and lack of cross-platform scripting alternatives may disadvantage Linux users or those preferring bash/CLI workflows.
Recommendations
- Add equivalent Azure CLI and bash examples for custom role creation and assignment alongside PowerShell scripts.
- Present Azure CLI and REST API options before or alongside PowerShell to avoid Windows-first ordering.
- Explicitly mention cross-platform compatibility for all tools and scripts.
- Include notes or links to Linux-specific instructions or troubleshooting for common RBAC tasks.
- Ensure that all code samples are available in both PowerShell and bash/CLI formats to improve accessibility for non-Windows users.
Create Pull Request
Scan History
| Date |
Scan |
Status |
Result |
| 2026-01-12 00:00 |
#99
|
completed |
Biased
|
| 2026-01-11 06:20 |
#98
|
completed |
Biased
|
| 2026-01-11 00:00 |
#95
|
cancelled |
Clean
|
| 2026-01-10 00:00 |
#92
|
completed |
Clean
|
| 2026-01-09 00:00 |
#87
|
cancelled |
Clean
|
| 2026-01-08 00:00 |
#84
|
in_progress |
Clean
|
| 2026-01-06 22:28 |
#78
|
completed |
Clean
|
| 2025-12-29 18:00 |
#48
|
cancelled |
Biased
|
| 2025-12-22 00:00 |
#24
|
cancelled |
Clean
|
| 2025-12-15 00:00 |
#7
|
completed |
Clean
|
| 2025-12-14 05:05 |
#6
|
completed |
Clean
|
Flagged Code Snippets
$role = Get-AzRoleDefinition "API Management Service Reader Role"
$role.Id = $null
$role.Name = 'Calculator API Contributor'
$role.Description = 'Has read access to Contoso APIM instance and write access to the Calculator API.'
$role.Actions.Add('Microsoft.ApiManagement/service/apis/write')
$role.Actions.Add('Microsoft.ApiManagement/service/apis/*/write')
$role.AssignableScopes.Clear()
$role.AssignableScopes.Add('/subscriptions/<Azure subscription ID>/resourceGroups/<resource group name>/providers/Microsoft.ApiManagement/service/<APIM service instance name>/apis/<API name>')
New-AzRoleDefinition -Role $role
New-AzRoleAssignment -ObjectId <object ID of the user account> -RoleDefinitionName 'Calculator API Contributor' -Scope '/subscriptions/<subscription ID>/resourceGroups/<resource group name>/providers/Microsoft.ApiManagement/service/<APIM service instance name>/apis/<API name>'