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
⚠️
powershell_heavy
⚠️
windows_tools
⚠️
missing_linux_example
Summary:
The documentation demonstrates a Windows bias by consistently referencing Windows PowerShell as the default local shell for Azure CLI and PowerShell examples, using Windows file paths (e.g., C:\demo-file.txt), and omitting explicit Linux/macOS shell or file path examples. The instructions for running CLI commands locally mention Windows PowerShell but not Bash or other Unix shells, and there are no Linux-specific notes or parity in examples.
Recommendations:
- When referencing local command consoles for Azure CLI, mention Bash (Linux/macOS) alongside Windows PowerShell. For example: 'open a command console such as Bash or Windows PowerShell.'
- Provide file path examples in both Windows (C:\demo-file.txt) and Linux/macOS (/home/user/demo-file.txt) formats for all relevant commands.
- Add explicit notes or examples for running commands in Bash or other Unix shells, especially where quoting or path syntax may differ.
- Avoid defaulting to Windows terminology (e.g., 'Windows PowerShell') when instructions are cross-platform; use neutral terms like 'command prompt' or 'terminal.'
- Where possible, include screenshots or references to Linux/macOS environments in addition to Windows.
- Audit for other subtle Windows-centric language or assumptions and revise for cross-platform inclusivity.
Create pull request
Flagged Code Snippets
$context = Get-AzSubscription -SubscriptionId <subscription-id>
Set-AzContext $context
$storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>"
$ctx = $storageAccount.Context
$containerName = "myContainer"
$file = "C:\demo-file.txt"
Set-AzStorageBlobContent -File $file -Container $containerName -Context $ctx -Tag @{"tag1" = "value1"; "tag2" = "value2" }
az storage blob upload --account-name mystorageaccount --container-name myContainer --name demo-file.txt --file C:\demo-file.txt --tags tag1=value1 tag2=value2 --auth-mode login
$context = Get-AzSubscription -SubscriptionId <subscription-id>
Set-AzContext $context
$storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>"
$ctx = $storageAccount.Context
$containerName = "myContainer"
$blobName = "myBlob"
Get-AzStorageBlobTag -Context $ctx -Container $containerName -Blob $blobName
$containerName = "myContainer"
$blobName = "myBlob"
$tags = @{"tag1" = "value1"; "tag2" = "value2" }
Set-AzStorageBlobTag -Context $ctx -Container $containerName -Blob $blobName -Tag $tags
$context = Get-AzSubscription -SubscriptionId <subscription-id>
Set-AzContext $context
$storageAccount = Get-AzStorageAccount -ResourceGroupName "<resource-group-name>" -AccountName "<storage-account-name>"
$ctx = $storageAccount.Context
$filterExpression = """tag1""='value1'"
Get-AzStorageBlobByTag -TagFilterSqlExpression $filterExpression -Context $ctx
$filterExpression = "@container='myContainer' AND ""tag1""='value1'"
Get-AzStorageBlobByTag -TagFilterSqlExpression $filterExpression -Context $ctx
az storage blob filter --account-name mystorageaccount --tag-filter """tag1""='value1' and ""tag2""='value2'" --auth-mode login
az storage blob filter --account-name mystorageaccount --tag-filter """@container""='myContainer' and ""tag1""='value1' and ""tag2""='value2'" --auth-mode login