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_first
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation is heavily focused on deploying Windows containers, with all examples and instructions tailored to Windows environments. It specifies the use of 'windows-latest' build agents, references a Windows app as the starting point, and only demonstrates deployment to Windows-based App Service. There are no Linux container examples, nor mention of Linux build agents or App Service for Linux, despite Azure Pipelines supporting both platforms.
Recommendations:
  • Provide parallel examples for deploying Linux containers, including YAML snippets using 'ubuntu-latest' or other Linux build agents.
  • Mention and demonstrate how to deploy to App Service for Containers (Linux) as well as Windows.
  • Clarify in the prerequisites that the instructions are Windows-specific, or broaden the scope to include Linux scenarios.
  • Include guidance on how to adapt the pipeline for Linux-based .NET applications and Dockerfiles.
  • Balance the order of presentation so that Linux and Windows options are given equal prominence.
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
2025-07-09 23:22 #6 cancelled ✅ Clean

Flagged Code Snippets

trigger: - main pool: vmImage: 'windows-latest' variables: vmImageName: 'windows-latest' imageRepository: 'your-image-repo-name' dockerfilePath: '$(Build.SourcesDirectory)/path/to/Dockerfile' dockerRegistryServiceConnection: 'your-service-connection-number' - stage: Build displayName: Build and push stage jobs: - job: Build displayName: Build job pool: vmImage: $(vmImageName) steps: - task: Docker@2 displayName: Build and push an image to container registry inputs: command: buildAndPush repository: $(imageRepository) dockerfile: $(dockerfilePath) containerRegistry: $(dockerRegistryServiceConnection) tags: | $(tag)
trigger: - main pool: vmImage: 'windows-latest' variables: vmImageName: 'windows-latest' imageRepository: 'your-image-repo-name' dockerfilePath: '$(Build.SourcesDirectory)/path/to/Dockerfile' dockerRegistryServiceConnection: 'your-service-connection-number' - stage: Build displayName: Build and push stage jobs: - job: Build displayName: Build job pool: vmImage: $(vmImageName) steps: - task: Docker@2 displayName: Build and push an image to container registry inputs: command: buildAndPush repository: $(imageRepository) dockerfile: $(dockerfilePath) containerRegistry: $(dockerRegistryServiceConnection) tags: | $(tag) - stage: Deploy displayName: Deploy to App Service jobs: - job: Deploy displayName: Deploy pool: vmImage: $(vmImageName) steps: - task: AzureRmWebAppDeployment@4 inputs: ConnectionType: 'AzureRM' azureSubscription: 'my-subscription-name' appType: 'webAppHyperVContainer' WebAppName: 'my-app-name' DockerNamespace: 'myregsitry.azurecr.io' DockerRepository: 'dotnetframework:12'