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
os_type_windows_default
powershell_heavy
Summary
The documentation demonstrates a Windows bias in several ways: Windows is used as the default or sole OS example in disk creation commands (e.g., --os-type Windows), and PowerShell examples and notes are given equal or greater prominence than CLI or REST. There are no explicit Linux-specific examples or references to Linux disk types, and the documentation does not mention Linux-specific considerations or patterns. The ordering and language suggest Windows as the default use case.
Recommendations
  • Provide explicit Linux examples in CLI and REST sections, e.g., use --os-type Linux and show a Linux disk creation workflow.
  • Add notes or examples for Linux-specific scenarios, such as disk formats, guest state, or metadata differences.
  • Balance PowerShell and CLI coverage by including Bash/Linux shell script examples where appropriate.
  • Clarify that the feature is supported for both Windows and Linux VMs, and highlight any differences in usage or behavior.
  • Avoid using Windows as the default in examples; alternate or show both OS types in sample commands.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Biased Biased
2026-01-11 06:20 #98 completed Biased Biased
2026-01-10 00:00 #92 completed Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

Flagged Code Snippets

az disk create -n $diskName -g $resourceGroup -l $location --os-type Windows --hyper-v-generation V2 --security-type "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" --source $sourceDiskVhdUri --security-data-uri $guestStateDiskVhdUri --security-metadata-uri $metadataDiskVhdUri \ --sku standard_lrs 
Grant-AzDiskAccess `
  -ResourceGroupName 'ResourceGroup01' `
  -DiskName 'Disk01' `
  -Access 'Read' `
  -DurationInSecond 60 `
  -SecureVmGuestStateSas
PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk?api-version=2025-01-02

{
  "location": "West US",
  "properties": {
    "osType": "Windows",
    "securityProfile": {
      "securityType": "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey"
    },
    "creationData": {
      "createOption": "ImportSecure",
      "storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
      "securityDataUri": "https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd",
      "securityMetadataUri": "https://mystorageaccount.blob.core.windows.net/osimages/vmmd.vhd"
    }
  }
}

{
  "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk",
  "name": "myDisk",
  "location": "West US",
  "properties": {
    "provisioningState": "Updating",
    "osType": "Windows",
    "securityProfile": {
      "securityType": "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey"
    },
    "creationData": {
      "createOption": "ImportSecure",
      "storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
      "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd",
      "securityDataUri": "https://mystorageaccount.blob.core.windows.net/osimages/vmgs.vhd",
      "securityMetadataUri": "https://mystorageaccount.blob.core.windows.net/osimages/vmmd.vhd"
    }
  }
}
Grant-AzDiskAccess `
  -ResourceGroupName 'ResourceGroup01' `
  -DiskName 'Disk01' `
  -Access 'Read' `
  -DurationInSecond 60 `
  -SecureVmGuestStateSas