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 page demonstrates a Windows bias in the certificate generation section by providing only Windows-specific instructions (e.g., opening Command Prompt via Win+R and using Powershell syntax), and does not provide equivalent Linux or macOS command-line examples or guidance. The sample code section assumes usage of Visual Studio and NuGet, which are Windows-centric development tools, without mentioning cross-platform alternatives.
Recommendations
  • Provide explicit Linux and macOS instructions for generating certificates with step CLI, including terminal commands and file paths.
  • Replace or supplement 'open a Command Prompt window (Win+R...)' with cross-platform terminal instructions.
  • Show bash/zsh shell commands alongside Powershell, or use bash as the default for CLI examples.
  • Mention and provide instructions for using cross-platform editors (e.g., VS Code) and package managers (e.g., dotnet CLI for NuGet) in the sample code section.
  • Ensure all steps and tools referenced are available and documented for Linux/macOS users, or clearly link to equivalent guides.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-22 01:38 #286 completed Biased Biased
2026-01-14 00:00 #250 in_progress Biased Biased
2026-01-13 00:00 #246 completed 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-17 00:01 #83 cancelled Clean Clean
2025-07-13 21:37 #48 completed Biased Biased
2025-07-09 13:09 #3 cancelled Clean Clean
2025-07-08 04:23 #2 cancelled Biased Biased

Flagged Code Snippets

## Publish and subscribe to MQTT messages

The following sample code is a simple .NET publisher that attempts to connect and publish to a namespace and subscribes to the MQTT topic. You can modify the code for your requirements and run it in Visual Studio or another design tool.

You need to install the MQTTnet package (version 4.1.4.563) from NuGet to run this code. In Visual Studio, right-click the project name in Solution Explorer, go to **Manage NuGet packages**, and search for **MQTTnet**. Select **MQTTnet package** and install.

> [!NOTE]
> The following sample code is for demonstration purposes only and isn't intended for production use.

### Sample C# code to connect a client, publish, and subscribe to an MQTT message on a topic

> [!IMPORTANT]
> Update the client certificate and key pem file paths depending on the location of your client certificate files. Also, ensure that the client authentication name and topic information match with your configuration.