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_first
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation page demonstrates a strong Windows bias by providing only PowerShell-based CLI examples for exporting, modifying, and deploying Azure Resource Manager templates. There are no Bash, Azure CLI, or Linux-native command examples. The PowerShell approach is presented as the sole scripting method, and region code discovery is shown only via PowerShell commands. While AzCopy is mentioned (which is cross-platform), all automation and scripting guidance is Windows/PowerShell-centric, with no parity for Linux or macOS users.
Recommendations:
  • Add Azure CLI (az) command examples alongside PowerShell for all template export, modification, and deployment steps. Azure CLI is cross-platform and widely used on Linux and macOS.
  • Include Bash shell script examples for common operations, such as deploying templates and managing resources.
  • When referencing tools like AzCopy, explicitly mention that it is available for Windows, Linux, and macOS, and provide example commands for each platform.
  • For region code discovery, show how to list regions using Azure CLI (e.g., 'az account list-locations') in addition to PowerShell.
  • Ensure that all instructions and code snippets are available in both PowerShell and Bash/Azure CLI tabs, so users on any OS can follow the documentation without needing to adapt Windows-centric instructions.
  • Consider adding a section or note about cross-platform compatibility and how to choose the right tool for your OS.
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

--- ## Redeploy Deploy the template to create a new storage account in the target region. ### [Portal](#tab/azure-portal) 1. Save the **template.json** file. 1. Enter or select the property values: - **Subscription**: Select an Azure subscription. - **Resource group**: Select **Create new** and give the resource group a name. - **Location**: Select an Azure location. 1. Select **I agree to the terms and conditions stated above**, and then select **Select Purchase**. ### [PowerShell](#tab/azure-powershell) 1. Obtain the subscription ID where you want to deploy the target public IP with [Get-AzSubscription](/powershell/module/az.accounts/get-azsubscription):
--- > [!TIP] > If you receive an error which states that the XML specified is not syntactically valid, compare the JSON in your template with the schemas described in the [Azure Resource Manager documentation](/azure/templates/microsoft.storage/allversions). ### Configure the new storage account Some features won't export to a template, so you'll have to add them to the new storage account. The following table lists these features along with guidance for adding them to your new storage account. | Feature | Guidance | |--------|-----------| | **Lifecycle management policies** | [Manage the Azure Blob storage lifecycle](../../../storage/blobs/storage-lifecycle-management-concepts.md) | | **Static websites** | [Host a static website in Azure Storage](../../../storage/blobs/storage-blob-static-website-how-to.md) | | **Event subscriptions** | [Reacting to Blob storage events](../../../storage/blobs/storage-blob-event-overview.md) | | **Alerts** | [Create, view, and manage activity log alerts by using Azure Monitor](/azure/azure-monitor/alerts/alerts-activity-log) | | **Content Delivery Network (CDN)** | [Use Azure CDN to access blobs with custom domains over HTTPS](../../../storage/blobs/storage-https-custom-domain-cdn.md) | > [!NOTE] > If you set up a CDN for the source storage account, just change the origin of your existing CDN to the primary blob service endpoint (or the primary static website endpoint) of your new account. ### Move data to the new storage account AzCopy is the preferred tool to move your data over due to its performance optimization. With AzCopy, data is copied directly between storage servers, and so it doesn't use the network bandwidth of your computer. You can run AzCopy at the command line or as part of a custom script. For more information, see [Copy blobs between Azure storage accounts by using AzCopy](/azure/storage/common/storage-use-azcopy-blobs-copy?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json&branch=pr-en-us-259662). You can also use Azure Data Factory to move your data over. To learn how to use Data Factory to relocate your data see one of the following guides: - [Copy data to or from Azure Blob storage by using Azure Data Factory](/azure/data-factory/connector-azure-blob-storage) - [Copy data to or from Azure Data Lake Storage Gen2 using Azure Data Factory](/azure/data-factory/connector-azure-data-lake-storage) - [Copy data from or to Azure Files by using Azure Data Factory](/azure/data-factory/connector-azure-file-storage) - [Copy data to and from Azure Table storage by using Azure Data Factory](/azure/data-factory/connector-azure-table-storage) ## Discard or clean up After the deployment, if you want to start over, you can delete the target storage account, and repeat the steps described in the [Prepare](#prepare) and [Redeploy](#redeploy) sections of this article. To commit the changes and complete the move of a storage account, delete the source storage account. ### [Portal](#tab/azure-portal) To remove a storage account by using the Azure portal: 1. In the Azure portal, expand the menu on the left side to open the menu of services, and choose **Storage accounts** to display the list of your storage accounts. 1. Locate the target storage account to delete, and right-click the **More** button (**...**) on the right side of the listing. 1. Select **Delete**, and confirm. ### [PowerShell](#tab/azure-powershell) To remove the resource group and its associated resources, including the new storage account, use the [Remove-AzStorageAccount](/powershell/module/az.storage/remove-azstorageaccount) command: