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_tools
⚠️
missing_linux_example
Summary:
The documentation is heavily focused on Azure PowerShell for command-line instructions, with all CLI examples and scripts using PowerShell cmdlets and syntax. There are no examples or instructions for performing the same tasks using Bash, Azure CLI, or Linux-native tools. The only non-PowerShell method described is via the Azure Portal, which is platform-agnostic, but all scripting and automation guidance is Windows/PowerShell-centric.
Recommendations:
- Add equivalent instructions and examples using Azure CLI (az) commands, which are cross-platform and commonly used on Linux and macOS.
- Provide Bash shell script examples for Linux users, especially for steps involving secure string handling and API calls.
- Explicitly mention that the Azure Cloud Shell supports both Bash and PowerShell, and show how to perform the task in both environments.
- Where PowerShell modules are referenced, note their availability and usage on Linux/macOS or provide alternatives.
- Ensure that screenshots and sample outputs are not exclusively from Windows environments, or supplement with Linux terminal examples.
Create pull request
Flagged Code Snippets
cd ~/clouddrive
wget https://aka.ms/dbe-cmdlet-beta -O Az.DataBoxEdge.zip
unzip ./Az.DataBoxEdge.zip
Import-Module ~/clouddrive/Az.DataBoxEdge/Az.DataBoxEdge.psd1 -Force
$pass = ConvertTo-SecureString $password -AsPlainText -Force
$key = ConvertTo-SecureString $cik -AsPlainText -Force
PS Azure:\> Set-AzContext -SubscriptionId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Name Account SubscriptionName Environment TenantId
---- ------- ---------------- ----------- --------
DataBox_Edge_Test (8eb87630-972c-4c36-a… MSI@50342 DataBox_Edge_Tes AzureCloud 72f988bf-86f1-41af-91ab-2d7…
PS Azure:/
PS Azure:\> Remove-Module Az.DataBoxEdge -force
Remove-Module : No modules were removed. Verify that the specification of modules to remove is correct and those modules exist in the runspace.
At line:1 char:1
+ Remove-Module Az.DataBoxEdge -force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [Remove-Module], InvalidOperationException
+ FullyQualifiedErrorId : Modules_NoModulesRemoved,Microsoft.PowerShell.Commands.RemoveModuleCommand
PS Azure:\
$devicename = "<Azure Stack Edge resource name>"
$resourceGroup = "<Resource group name>"
$cik = "<Encryption key>"
$password = "<Password>"
Set-AzDataBoxEdgeUser -ResourceGroupName $resourceGroup -DeviceName $devicename -Name EdgeARMUser -Password $pass -EncryptionKey $key
PS /home/aseuser/clouddrive> $devicename = "myaseresource"
PS /home/aseuser/clouddrive> $resourceGroup = "myaserg"
PS /home/aseuser/clouddrive> $cik = "54a7450fd7b3c506e10efea4e0c88a9390f37e299fbf43e01fb5dfe483ac036b6d0f85a6246e1926e297f98c0ff84c20a57348c689eff179ce31571fc787ac0a"
PS /home/aseuser/clouddrive> $password = "Password2"
PS /home/aseuser/clouddrive> $pass = ConvertTo-SecureString $password -AsPlainText -Force
PS /home/aseuser/clouddrive> $key = ConvertTo-SecureString $cik -AsPlainText -Force
PS /home/aseuser/clouddrive> Set-AzDataBoxEdgeUser -ResourceGroupName $resourceGroup -DeviceName $devicename -Name EdgeARMUser -Password $pass -EncryptionKey $key
User name Type ResourceGroupName DeviceName
--------- ---- ----------------- ----------
EdgeARMUser ARM myaserg myaseresource
PS /home/aseuser/clouddrive>