Creating an Azure Resource Group in the Azure Portal
Here are the steps to create an Azure Resource Group in the Azure Portal:
- Login to the Azure Portal (https://portal.azure.com/) with your credentials.
- Click on the “Resource groups” option in the left-hand menu.
- Click on the “+ Add” button to create a new resource group.
- Fill in the required fields, such as Resource group name, Subscription, and Region.
- Click on the “Review + create” button to review your settings.
- Click on the “Create” button to create the resource group.
Creating an Azure Resource Group using PowerShell
Here are the steps to create an Azure Resource Group using PowerShell:
- Open the PowerShell command prompt.
- Login to Azure using the following command:
Connect-AzAccount
- Select the subscription in which you want to create the resource group:
Select-AzSubscription -SubscriptionName <subscription_name>
- Run the following command to create the resource group:
New-AzResourceGroup -Name <resource_group_name> -Location <location>
Here’s an example of creating a resource group named “myResourceGroup” in the “East US” region:
New-AzResourceGroup -Name myResourceGroup -Location "East US"