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 page demonstrates a Windows bias by providing only PowerShell examples for command-line operations, with no mention of cross-platform alternatives such as Azure CLI or Bash. All scripting and automation guidance is centered around PowerShell cmdlets, which are traditionally associated with Windows environments, and there are no Linux/macOS-specific instructions or examples. The structure also presents PowerShell-based solutions before any mention of REST APIs or other platform-agnostic tools.
Recommendations:
- Add equivalent Azure CLI examples for all PowerShell command sequences, as Azure CLI is cross-platform and widely used on Linux/macOS.
- Explicitly mention that PowerShell can be used on Linux/macOS, or clarify any platform dependencies.
- Include Bash scripting examples where appropriate, especially for automation scenarios.
- When listing options for automation or scripting, present Azure CLI and REST API options alongside PowerShell, rather than only after or not at all.
- Review all sections for assumptions of a Windows environment and ensure parity in instructions for Linux/macOS users.
Create pull request
Flagged Code Snippets
Get-AzRoleEligibilitySchedule -Scope /subscriptions/<subscriptionId>
Get-AzRoleAssignmentSchedule -Scope /subscriptions/<subscriptionId> | Where-Object {$_.EndDateTime -ne $null }
$guid = New-Guid
New-AzRoleEligibilityScheduleRequest -Name $guid -Scope <Scope> -PrincipalId <PrincipalId> -RoleDefinitionId <RoleDefinitionId> -RequestType AdminRemove
$guid = New-Guid
New-AzRoleAssignmentScheduleRequest -Name $guid -Scope <Scope> -PrincipalId <PrincipalId> -RoleDefinitionId <RoleDefinitionId> -RequestType AdminRemove
$result = Get-AzRoleAssignment -ObjectId $RA.PrincipalId -RoleDefinitionName $RA.RoleDefinitionDisplayName -Scope $RA.Scope;
if($result -eq $null) {
New-AzRoleAssignment -ObjectId $RA.PrincipalId -RoleDefinitionName $RA.RoleDefinitionDisplayName -Scope $RA.Scope
}