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_first
Summary:
The documentation provides detailed instructions and examples for creating a storage task using the Azure Portal, PowerShell, Azure CLI, Bicep, and ARM templates. However, the scripting example order places PowerShell (a Windows-centric tool) before Azure CLI, and the PowerShell section is more verbose and detailed. There are no explicit Linux shell (bash) examples, and the PowerShell module is referenced as the primary scripting interface, which may disadvantage Linux users. There is no mention of Linux-specific tooling or considerations.
Recommendations:
- Provide bash shell examples using Azure CLI, including command-line usage and environment setup, to ensure Linux users have parity.
- Consider placing Azure CLI examples before PowerShell, as Azure CLI is cross-platform and more common on Linux/macOS.
- Explicitly mention that Azure CLI commands work on Linux, macOS, and Windows, and provide any Linux-specific notes if needed.
- If PowerShell is referenced, clarify that PowerShell Core is cross-platform, or provide equivalent bash examples where possible.
- Add a section or note about installing and using the Azure CLI on Linux, including package manager instructions.
Create pull request
Flagged Code Snippets
$condition = "<condition-json>"
$operation = New-AzStorageActionTaskOperationObject `
-Name "<operation-name>" `
-Parameter @{"<parameter-name>"= "<parameter-value"} `
-OnFailure break `
-OnSuccess continue
$task = New-AzStorageActionTask `
-Name "<storage-task-name>" `
-ResourceGroupName "<resource-group>" `
-Location "<location>" `
-Enabled `
-Description "<description>" `
-IfCondition $condition `
-IfOperation $operation `
-EnableSystemAssignedIdentity:$true
$managedIdentity = Get-AzUserAssignedIdentity -ResourceGroupName <resource-group> -Name <user-assigned-managed-identity-name>
$task = New-AzStorageActionTask `
-Name "<storage-task-name>" `
-ResourceGroupName "<resource-group>" `
-Location "<location>" `
-Enabled `
-Description "<description>" `
-IfCondition $condition `
-IfOperation $operation `
-UserAssignedIdentity $managedIdentity.Id