Start here! Get your feet wet with the Microsoft cloud and begin your journey to earning your Microsoft Certified: Azure Fundamentals certification!
Prepare and test your skills

Prepare and test your skills

Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An IT administrator needs to automate the creation of a dedicated resource container for a new project using administrative scripts. The team plans to manage the entire lifecycle of all project components together and requires a script that runs specifically in an Azure PowerShell environment.
Which command should the administrator use to create the new resource group?
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
New-AzResourceGroup is the official Azure PowerShell cmdlet within the Az module used to provision a new Azure resource group. A resource group serves as a logical container that aggregates related Azure resources—such as virtual networks, virtual machines, and storage accounts—so they can be managed, secured, and monitored as a single administrative unit.
When writing automation scripts in Azure PowerShell, the administrator needs a cmdlet that specifically initializes a resource group container by specifying essential parameters such as -Name and -Location:
New-AzResourceGroup -Name "myProject-RG" -Location "eastus"
By executing this cmdlet, Azure Resource Manager creates the container metadata in the selected Azure region, establishing the logical boundary needed to group project assets together.
New-AzResourceGroup is the exact, standard command designed for creating resource groups natively within Azure PowerShell. It directly fulfills the requirement to provision a resource group container using PowerShell syntax without requiring external shells or template deployment steps.