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
⚠️
windows_tools
Summary:
The documentation demonstrates a moderate Windows bias. PowerShell examples are consistently provided before Azure CLI (Linux-friendly) examples, and the PowerShell Az module is referenced as a primary automation tool. The structure and ordering of sections (PowerShell before CLI) reinforce a Windows-first approach. While Linux is referenced (e.g., performance counters, SSH logs, and a Linux tutorial link), there are no explicit Linux shell or scripting examples beyond Azure CLI, and Windows-centric tools (PowerShell) are emphasized.
Recommendations:
- Alternate the order of PowerShell and Azure CLI examples, or present them side-by-side, to avoid a Windows-first impression.
- Explicitly mention that Azure CLI commands are cross-platform and runnable on Linux, macOS, and Windows.
- Where PowerShell is referenced, consider also providing Bash or shell script equivalents for common administrative tasks.
- Expand on Linux-specific monitoring or troubleshooting steps, especially for agent management and log collection.
- Clarify in prerequisites that both Windows and Linux users are supported equally, and link to Linux-specific setup guides where appropriate.
Create pull request
Flagged Code Snippets
Disable-AzHDInsightAzureMonitor -ResourceGroupName $resourceGroup `
-ClusterName $cluster
Disable-AzHDInsightMonitoring -Name "<your-cluster>"
# Enter user information
$resourceGroup = "<your-resource-group>"
$cluster = "<your-cluster>"
$LAW = "<your-Log-Analytics-workspace>"
# End of user input
# obtain workspace id for defined Log Analytics workspace
$WorkspaceId = (Get-AzOperationalInsightsWorkspace `
-ResourceGroupName $resourceGroup `
-Name $LAW).CustomerId
# obtain primary key for defined Log Analytics workspace
$PrimaryKey = (Get-AzOperationalInsightsWorkspace `
-ResourceGroupName $resourceGroup `
-Name $LAW | Get-AzOperationalInsightsWorkspaceSharedKeys).PrimarySharedKey
# Enables monitoring and relevant logs will be sent to the specified workspace.
Enable-AzHDInsightAzureMonitor `
-ResourceGroupName $resourceGroup `
-ClusterName $cluster `
-WorkspaceId $WorkspaceId `
-PrimaryKey $PrimaryKey
# Gets the status of monitoring installation on the cluster.
Get-AzHDInsightAzureMonitor `
-ResourceGroupName $resourceGroup `
-ClusterName $cluster
# Enter user information
$resourceGroup = "<your-resource-group>"
$cluster = "<your-cluster>"
$LAW = "<your-Log-Analytics-workspace>"
# End of user input
# obtain workspace id for defined Log Analytics workspace
$WorkspaceId = (Get-AzOperationalInsightsWorkspace `
-ResourceGroupName $resourceGroup `
-Name $LAW).ResourceId
# obtain primary key for defined Log Analytics workspace
$PrimaryKey = (Get-AzOperationalInsightsWorkspace `
-ResourceGroupName $resourceGroup `
-Name $LAW | Get-AzOperationalInsightsWorkspaceSharedKeys).PrimarySharedKey
# Enables monitoring and relevant logs will be sent to the specified workspace.
Enable-AzHDInsightMonitoring `
-ResourceGroupName $resourceGroup `
-Name $cluster `
-WorkspaceId $WorkspaceId `
-PrimaryKey $PrimaryKey
# Gets the status of monitoring installation on the cluster.
Get-AzHDInsightMonitoring `
-ResourceGroupName $resourceGroup `
-Name $cluster