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 page demonstrates a Windows bias by focusing primarily on PowerShell cmdlets and workflows, with detailed examples and step-by-step instructions for Windows PowerShell. The creation and management of connections are described almost exclusively using PowerShell and the Az modules, which are most commonly used on Windows. There is no mention of Linux shell (bash/CLI) equivalents for managing connections, nor are there any examples using Azure CLI or other cross-platform tools. The Python section is present but limited to runbook scripting, not connection management. There are no Linux-specific instructions or examples for creating or managing connections outside the Azure portal.
Recommendations:
  • Add Azure CLI examples for creating, retrieving, and managing Automation connections, as Azure CLI is cross-platform and widely used on Linux and macOS.
  • Include bash shell script examples for interacting with Azure Automation via REST API or Azure CLI.
  • Reorganize sections so that cross-platform tools (like Azure CLI) are presented before or alongside PowerShell examples, rather than PowerShell-first.
  • Explicitly mention Linux/macOS compatibility and provide guidance for non-Windows users, including any prerequisites or differences in workflow.
  • Where PowerShell is referenced, clarify that PowerShell Core is cross-platform and provide examples for both Windows PowerShell and PowerShell Core on Linux/macOS.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-07-12 23:44 #41 in_progress ❌ Biased
2025-07-12 00:58 #8 cancelled ✅ Clean
2025-07-10 05:06 #7 processing ✅ Clean
2025-07-09 23:22 #6 cancelled ✅ Clean

Flagged Code Snippets

$Conn = Get-AutomationConnection -Name AzureConnection Connect-AzAccount -ServicePrincipal -Tenant $Conn.TenantID -ApplicationId $Conn.ApplicationID -CertificateThumbprint $Conn.CertificateThumbprint
$ConnectionAssetName = "AzureConnection" $ConnectionFieldValues = @{"ApplicationId" = $Application.ApplicationId; "TenantId" = $TenantID.TenantId; "CertificateThumbprint" = $Cert.Thumbprint; "SubscriptionId" = $SubscriptionId} New-AzAutomationConnection -ResourceGroupName $ResourceGroup -AutomationAccountName $AutomationAccountName -Name $ConnectionAssetName -ConnectionTypeName AzureServicePrincipal -ConnectionFieldValues $ConnectionFieldValues