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
⚠️ windows_tools
Summary:
The documentation provides both Azure CLI and Azure PowerShell examples for exporting Azure Policy resources. However, the PowerShell section is prominent and detailed, and PowerShell is a Windows-centric tool (despite cross-platform support, it is still most familiar to Windows users). There is no mention of Linux-specific shell commands or workflows (e.g., Bash, jq, curl), nor are there examples showing how to process or export data in a Linux-native way. The 'Export to CSV' section references the Azure portal, which is platform-agnostic, but does not address command-line or automation scenarios on Linux.
Recommendations:
  • Add Linux-native command-line examples, such as using Azure CLI with Bash and jq to process and export policy resources.
  • Explicitly mention that Azure CLI is cross-platform and provide examples that demonstrate usage on Linux/macOS terminals.
  • Include sample scripts or one-liners for exporting to CSV or JSON using standard Linux tools.
  • Balance the prominence of PowerShell by ensuring CLI and Linux-native workflows are equally represented and described.
  • Where PowerShell is mentioned, clarify that it is available cross-platform, but also provide alternatives for users who prefer not to use PowerShell.
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

Flagged Code Snippets

## Export with Azure PowerShell Azure Policy definitions, initiatives, and assignments can each be exported as JSON with [Azure PowerShell](/powershell/azure/). Each of these cmdlets uses a `Name` parameter to specify which object to get the JSON for. The `Name` property is often a _GUID_ (Globally Unique Identifier) and isn't the `displayName` of the object. - Definition - [Get-AzPolicyDefinition](/powershell/module/az.resources/get-azpolicydefinition). - Initiative - [Get-AzPolicySetDefinition](/powershell/module/az.resources/get-azpolicysetdefinition). - Assignment - [Get-AzPolicyAssignment](/powershell/module/az.resources/get-azpolicyassignment).