Sad Tux - Windows bias detected
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
windows_first
powershell_heavy
missing_linux_example
Summary
The documentation provides both Azure CLI (which is cross-platform) and Azure PowerShell examples for managing access keys, but the PowerShell examples are given equal prominence and detail, despite PowerShell being primarily associated with Windows. There are no explicit Linux/Bash-native script examples, and the CLI example notes that it must be modified to run in a Windows terminal, but does not provide a corresponding Linux/Bash example. There is also no mention of Linux-specific tools or workflows, and the PowerShell examples are more verbose and detailed than the CLI ones.
Recommendations
  • Provide explicit Bash/Linux shell script examples alongside Azure CLI and PowerShell, especially for key management tasks.
  • Clarify that Azure CLI commands are cross-platform and provide any necessary modifications for both Windows and Linux shells.
  • Avoid giving PowerShell examples equal or greater prominence than CLI/Bash unless there is a Windows-specific feature being demonstrated.
  • Where PowerShell is used, consider providing a Bash equivalent for parity.
  • Explicitly mention that Azure CLI can be used on Linux, macOS, and Windows, and provide sample commands for each where syntax or environment differs.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Biased Biased
2026-01-13 00:00 #246 completed Biased Biased
2026-01-12 00:00 #243 cancelled Biased Biased
2026-01-11 00:00 #240 completed Biased Biased
2026-01-10 00:00 #237 completed Biased Biased
2026-01-09 00:34 #234 completed Biased Biased
2026-01-08 00:53 #231 completed Biased Biased
2026-01-06 18:15 #225 cancelled Clean Clean
2025-08-23 00:00 #89 cancelled Biased Biased
2025-07-23 00:00 #58 completed Clean Clean
2025-07-13 21:37 #48 completed Clean Clean
2025-07-09 13:09 #3 cancelled Clean Clean
2025-07-08 04:23 #2 cancelled Biased Biased

Flagged Code Snippets

In this script, replace `<RESOURCE_GROUP>` and `<APP_NAME>` with the resource group and your function app name, respective. This script has been created to run in Azure Cloud Shell (Bash). You must modify it to run in a Windows terminal.

The new key value generated by Functions is displayed for your reference. This new key value must be securely distributed to any apps that rely on the host key. Because the output contains sensitive information, either don't persist the output or secure any persisted file outputs.

### [Azure PowerShell](#tab/azure-powershell)

Run the following script, which uses the REST APIs to renew the `default` host key with a new key value generated by Functions.

In this script, replace `<RESOURCE_GROUP>` and `<APP_NAME>` with the resource group and your function app name, respective. 

Because the output contains sensitive information, either don't persist the output or secure any persisted file outputs.

### [Azure PowerShell](#tab/azure-powershell)

Run the following script, the output of which is the `default` host key, which can be used to access any HTTP triggered function in the function app.