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 for moving an Azure Web PubSub resource using the Azure Portal and Azure PowerShell. All command-line examples use Azure PowerShell, which is most commonly used on Windows, and there are no examples using Azure CLI, Bash, or Linux-native tools. The use of 'notepad' as the editor in the PowerShell example further reinforces a Windows-centric approach. There are no instructions or examples for Linux or cross-platform users, and PowerShell is presented as the only scripting option.
Recommendations:
- Add equivalent Azure CLI (az) command examples for exporting, editing, and deploying ARM templates, as Azure CLI is cross-platform and widely used on Linux and macOS.
- Replace or supplement 'notepad' with cross-platform editors (e.g., 'nano', 'vim', or 'code') or use a generic instruction like 'open the file in your preferred text editor'.
- Explicitly mention that PowerShell Core is available cross-platform, or provide Bash script equivalents.
- Reorder or parallelize instructions so that Azure CLI and PowerShell examples are presented together, or allow users to select their preferred platform.
- Include a note or section for Linux/macOS users, ensuring parity in guidance and tool recommendations.
Create pull request
Flagged Code Snippets
12. To verify the resources were created in the target region, use [Get-AzResourceGroup](/powershell/module/az.resources/get-azresourcegroup) and [Get-AzWebPubSub](/powershell/module/az.signalr/get-azwebpubsub):
7. To obtain region location codes, see [Azure Web PubSub Locations](https://azure.microsoft.com/global-infrastructure/services/?products=web-pubsub). The code for a region is the region name with no spaces, **Central US** = **centralus**.
8. You can also change other parameters in the template if you choose, and are optional depending on your requirements.
9. Save the **\<resource-group-name>.json** file.
10. Create a resource group in the target region for the target Web PubSub resource to be deployed using [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup).
11. Deploy the edited **\<resource-group-name>.json** file to the resource group created in the previous step using [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment):
## Discard
After the deployment, if you wish to start over or discard the Web PubSub resource in the target, delete the resource group that was created in the target and the moved Web PubSub resource will be deleted. To do so, select the resource group from your dashboard in the portal and select **Delete** at the top of the overview page. Alternatively you can use [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup):