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:
⚠️ powershell_heavy
⚠️ windows_tools
⚠️ windows_first
Summary:
The documentation provides parallel instructions for Azure Portal, Azure CLI, and PowerShell. However, the PowerShell examples are extensive and include Windows-specific paths (e.g., D:\testFiles), and PowerShell is traditionally a Windows-centric tool. There are no explicit Linux shell (bash) or cross-platform scripting examples, and the PowerShell section even references uploading files from a Windows file path. Additionally, PowerShell is presented as a first-class citizen alongside Azure CLI, which is more cross-platform, but there is no mention of Linux-native tools or workflows. This may make Linux users feel less directly supported.
Recommendations:
  • Include bash (Linux shell) examples for all command-line steps, especially for file operations and scripting.
  • Avoid using Windows-specific file paths (e.g., D:\testFiles) in examples; use cross-platform paths or provide both Windows and Linux examples.
  • Clarify that Azure CLI commands work on both Windows and Linux, and provide explicit Linux terminal instructions where appropriate.
  • Mention and demonstrate usage of Azure Cloud Shell (which supports both bash and PowerShell) as a cross-platform alternative.
  • Where PowerShell is referenced, note that PowerShell Core is available cross-platform, and provide Linux/macOS installation guidance if relevant.
  • For file upload/download steps, provide az storage blob commands as an alternative to Set-AzStorageBlobContent.
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

Flagged Code Snippets

Connect-AzAccount
Set-AzContext [SubscriptionID/SubscriptionName]
Get-AzDataShareReceivedInvitation
New-AzDataShareSubscription -ResourceGroupName share-rg -AccountName FabrikamDataShareAccount -Name "Fabrikam Solutions" -InvitationId "89abcdef-0123-4567-89ab-cdef01234567"
New-AzDataShareDataSetMapping -ResourceGroupName "share-rg" -AccountName "FabrikamDataShareAccount" -ShareSubscriptionName "fabrikamsolutions" -Name "Fabrikam Solutions" -StorageAccountResourceId "aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb" -DataSetId "0123abcd-ef01-2345-6789-abcdef012345" -Container "StorageContainer"
Start-AzDataShareSubscriptionSynchronization -ResourceGroupName "share-rg" -AccountName "FabrikamDataShareAccount" -ShareSubscriptionName "fabrikamsolutions" -SynchronizationMode "Incremental"
Get-AzDataShareSubscriptionSynchronization -ResourceGroupName "share-rg" -AccountName "FabrikamDataShareAccount" -ShareSubscriptionName "fabrikamsolutions"
Get-AzDataShareSubscriptionSynchronizationDetail -ResourceGroupName "share-rg" -AccountName "FabrikamDataShareAccount" -ShareSubscriptionName "fabrikamsolutions" -SynchronizationId "a6ee5c8d-0ce0-485e-b2f2-966b187dc6c7"
New-AzDataShareTrigger -ResourceGroupName "share-rg" -AccountName "FabrikamDataShareAccount" -Name "Fabrikam Solutions" -RecurrenceInterval "Day" -SynchronizationTime "2018-11-14T04:47:52.9614956Z"
az role assignment create --role "Contributor" \ --assignee-object-id aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb --assignee-principal-type ServicePrincipal --scope "your\storage\account\id\path"
$mapping='{\"data_set_id\":\"' + $dataset_id + '\",\"container_name\":\"newcontainer\", \"storage_account_name\":\"datashareconsumersa\",\"kind\":\"BlobFolder\",\"prefix\":\"consumer\"}'
Get-AzDataShareSourceDataSet -ResourceGroupName "share-rg" -AccountName "FabrikamDataShareAccount" -ShareSubscriptionName "fabrikamsolutions"
$storageAccount = New-AzStorageAccount -ResourceGroupName "share-rg" -AccountName FabrikamStorageAccount -Location "East US 2" -SkuName Standard_GRS $ctx = $storageAccount.Context
$containerName = "StorageContainer" New-AzStorageContainer -Name $containerName -Context $ctx -Permission blob
Set-AzStorageBlobContent -File "D:\testFiles\textfile.csv" -Container $containerName -Blob "textfile.csv" -Context $ctx
Get-AzStorageAccount -ResourceGroupName "share-rg" -Name FabrikamStorageAccount