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
⚠️
missing_linux_example
Summary:
The documentation provides detailed PowerShell instructions (a Windows-centric tool) before Azure CLI examples, and does not include any explicit Linux or Bash-specific guidance. The PowerShell section is more extensive and comes before the cross-platform Azure CLI, which may disadvantage Linux/macOS users. There are no Linux-specific examples or notes, and the template and portal instructions are platform-neutral.
Recommendations:
- Add explicit Bash/Linux shell examples for Azure CLI commands, including any necessary authentication or environment setup steps for Linux users.
- Reorder the command-line sections to present Azure CLI (cross-platform) before PowerShell, or clarify that Azure CLI is recommended for Linux/macOS.
- Include notes or links for installing and using Azure CLI on Linux/macOS.
- Where PowerShell is used, clarify that it is primarily for Windows users, and suggest alternatives for Linux/macOS.
- Consider providing REST API or SDK examples, which are platform-agnostic, to further improve parity.
Create pull request
Flagged Code Snippets
To check the current settings for container soft delete, call the [Get-AzStorageBlobServiceProperty](/powershell/module/az.storage/get-azstorageblobserviceproperty) command:
To disable container soft delete, call the **Disable-AzStorageContainerDeleteRetentionPolicy** command.
# [Azure CLI](#tab/azure-cli)
To enable container soft delete with Azure CLI, first install Azure CLI, version 2.26.0 or later. Next, call the [az storage account blob-service-properties update](/cli/azure/storage/account/blob-service-properties#az-storage-account-blob-service-properties-update) command and specify the number of days for the retention period. Remember to replace the values in angle brackets with your own values: