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
⚠️
missing_linux_example
⚠️
windows_tools
⚠️
windows_first
Summary:
The documentation provides detailed instructions and examples for managing Azure Storage Mover projects using the Azure Portal and PowerShell. All command-line examples are exclusively in PowerShell, with installation steps referencing PowerShell 7 and the Az PowerShell modules. There are no examples or guidance for using Azure CLI, Bash, or other cross-platform tools. This creates a bias toward Windows environments and users familiar with PowerShell, while Linux and macOS users are not provided with equivalent command-line instructions.
Recommendations:
- Add equivalent Azure CLI (az) examples for all PowerShell command-line operations, including project creation, viewing/editing properties, and deletion.
- Include installation instructions for Azure CLI on Linux/macOS, alongside PowerShell installation steps.
- When listing command-line options, present Azure CLI (cross-platform) examples before or alongside PowerShell examples to avoid Windows-first bias.
- Explicitly mention that all operations can be performed from Linux/macOS using Azure CLI, and provide links to relevant documentation.
- Consider adding Bash script snippets or notes for Linux users where appropriate.
Create pull request
Flagged Code Snippets
## Set variables
$subscriptionID = "Your subscription ID GUID"
$resourceGroupName = "demoResourceGroup"
$storageMoverName = "demoMover"
$projectName = "demoProject"
$projectDescription = ""
Connect-AzAccount -Subscription $subscriptionID
Update-AzStorageMoverProject `
-Name demoProject `
-ResourceGroupName $resourceGroupName `
-StorageMoverName $storageMoverName `
-Description "Demo project managed with PowerShell."
Remove-AzStorageMoverProject `
-Name $projectName `
-ResourceGroupName $resourceGroupName `
-StorageMoverName $storageMoverName
## Ensure you are running the latest version of PowerShell 7
$PSVersionTable.PSVersion
## Your local execution policy must be set to at least remote signed or less restrictive
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
## If you don't have the general Az PowerShell module, install it first
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
## Lastly, the Az.StorageMover module is not installed by default and must be manually requested.
Install-Module -Name Az.StorageMover -Scope CurrentUser -Repository PSGallery -Force
New-AzStorageMoverProject `
-ResourceGroupName $resourceGroupName `
-StorageMoverName $storageMoverName `
-Name $projectName `
-Description $projectDescription
Get-AzStorageMoverProject `
-ResourceGroupName $resourceGroupName `
-StorageMoverName $storageMoverName `
-Name "demoProject"
Description : Demo project managed with PowerShell.
Id : /subscriptions/<GUID>/resourceGroups/
demoResourceGroup/providers/Microsoft.StorageMover/storageMovers/
demoMover/projects/demoProject
Name : demoProject
ProvisioningState : Succeeded
SystemDataCreatedAt : 7/15/2022 6:22:51 PM
SystemDataCreatedBy : user@contoso.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 8/24/2022 7:47:50 AM
SystemDataLastModifiedBy : user@contoso.com
SystemDataLastModifiedByType : User
Type : microsoft.storagemover/storagemovers/projects