How to understand with '-Name' and 'Location', I think that they are the same.
Type of issue
Other (describe below)
Feedback
ERROR INFO
I checked both English and Chinese pages, their names were opposite. Was this a misunderstanding on my part?
Example 1: Create an empty resource group
New-AzResourceGroup -Name RG01 -Location "South Central US"
Example 2: Create an empty resource group using positional parameters
New-AzResourceGroup RG01 "South Central US"
I thought that Example 1 had location while Example not right?
Page URL
https://learn.microsoft.com/zh-cn/powershell/module/az.resources/new-azresourcegroup?view=azps-11.2.0
Content source URL
https://github.com/Azure/azure-powershell/blob/main/src/Resources/Resources/help/New-AzResourceGroup.md
Author
@mikefrobbins
Document Id
a7d58cfb-0585-ce41-da7f-b22276c52282
Hi @unstoppablecyq welcome to our repo :) Both examples are correct. They both create a resource group called "RG01" in the "South Central US" location. The only difference is that the second example uses a PowerShell syntax called positional parameters (see Parameter Position), which basically means you can supply the parameter values without their names.
BTW, Name can be arbitary but different resource types have their own list of limited supported locations you can choose from. See What are Azure regions? for more info.