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:
⚠️ windows_tools
⚠️ missing_linux_example
Summary:
The documentation consistently references Windows-specific tools and drivers (e.g., 'ODBC Driver 17 for SQL Server'), and does not provide Linux-specific guidance or examples for installing or configuring these dependencies. There are no explicit instructions or troubleshooting notes for Linux or macOS users, and the driver names and installation patterns are Windows-centric.
Recommendations:
  • Include explicit instructions for installing required drivers (such as ODBC Driver 17 for SQL Server) on Linux and macOS, not just Windows.
  • Mention cross-platform driver alternatives (e.g., FreeTDS for Linux) where appropriate.
  • Add troubleshooting notes for common Linux/macOS issues (e.g., driver not found, environment variable differences).
  • Where driver names are given (e.g., 'ODBC Driver 17 for SQL Server'), clarify that the name may differ on Linux/macOS and provide the correct names.
  • Provide at least one example of running the code on Linux/macOS, or a note confirming cross-platform compatibility and any required adjustments.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ✅ Clean
2025-07-12 23:44 #41 in_progress ❌ Biased

Flagged Code Snippets

import os import pyodbc, struct from azure.identity import DefaultAzureCredential connStr = os.getenv('FABRIC_SQL_CONNECTIONSTRING') # System-assigned managed identity connection string format # `Driver={ODBC Driver 17 for SQL Server};Server=tcp:<Fabric-SQL-Identifier>.msit-database.fabric.microsoft.com,1433;Database=<SQL-DB-name>-<Fabric-DB-Identifier>;Authentication=ActiveDirectoryMSI;` # User-assigned managed identity connection string format # `Driver={ODBC Driver 17 for SQL Server};Server=tcp:<Fabric-SQL-Identifier>.msit-database.fabric.microsoft.com,1433;Database=<SQL-DB-name>-<Fabric-DB-Identifier>;UID=<msiClientId>;Authentication=ActiveDirectoryMSI;` conn = pyodbc.connect(connString)
package main import ( "github.com/microsoft/go-mssqldb/azuread" "database/sql" "context" "log" "fmt" "os" ) var db *sql.DB var connectionString = os.Getenv("FABRIC_SQL_CONNECTIONSTRING") func main() { var err error // Create connection pool db, err = sql.Open(azuread.DriverName, connectionString) if err != nil { log.Fatal("Error creating connection pool: ", err.Error()) } ctx := context.Background() err = db.PingContext(ctx) if err != nil { log.Fatal(err.Error()) } fmt.Printf("Connected!\n") }