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
missing_linux_example
windows_tools
Summary
The documentation provides cross-platform deployment examples for most stacks, but the ASP.NET (non-Core) section exclusively uses Windows runners and Windows-specific tools (NuGet, MSBuild) without offering Linux alternatives or parity. This creates a Windows-first impression for ASP.NET, and omits Linux-based guidance for that scenario.
Recommendations
  • Provide a Linux-based example for ASP.NET (non-Core) deployment, using Mono or .NET SDK on Linux if feasible.
  • Explicitly mention platform constraints for ASP.NET (non-Core) and clarify if Windows is required, or provide guidance for cross-platform alternatives.
  • For all stacks, ensure that both Windows and Linux runner options are shown where possible, or explain why only one is supported.
  • Consider reordering or grouping examples so that Linux and Windows options are presented together, rather than defaulting to Windows for legacy stacks.
  • Add notes about tool availability (e.g., MSBuild, NuGet) on Linux and how to install or use them if supported.
GitHub Create Pull Request

Scan History

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

Flagged Code Snippets

name: Deploy ASP.NET MVC App deploy to Azure Web App

on: [push]

env:
  AZURE_WEBAPP_NAME: my-app    # Set this to your application's name
  AZURE_WEBAPP_PACKAGE_PATH: '.'      # Set this to the path to your web app project, defaults to the repository root
  NUGET_VERSION: '5.3.x'           # Set this to the dot net version to use

jobs:
  build-and-deploy:
    runs-on: windows-latest
    steps:

    - uses: actions/checkout@main  
    
    - name: Install Nuget
      uses: nuget/setup-nuget@v1
      with:
        nuget-version: ${{ env.NUGET_VERSION}}
    - name: NuGet to restore dependencies as well as project-specific tools that are specified in the project file
      run: nuget restore
  
    - name: Add msbuild to PATH
      uses: microsoft/setup-msbuild@v1.0.2

    - name: Run MSBuild
      run: msbuild .\SampleWebApplication.sln
       
    - name: 'Run Azure webapp deploy action using publish profile credentials'
      uses: azure/webapps-deploy@v3
      with: 
        app-name: ${{ env.AZURE_WEBAPP_NAME }} # Replace with your app name
        publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE  }} # Define secret variable in repository settings as per action documentation
        package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/SampleWebApplication/'