Create a Microsoft Azure resource
In this exercise, you’ll use the Azure portal to create a resource. The focus of the exercise is observing how Azure resource groups populate with created resources.
This exercise should take approximately 15 minutes to complete.
Task 1: Create a resource group
In this task, you’ll create a resource group. By creating a resource group for this exercise, it will make it easier to clean up the exercise when you’re complete.
- Log into the Azure portal.
- Select Resource groups.
- Select Create.
- Select the subscription you will use for this exercise from the Subscription dropdown list.
- Enter
IntroAzureRGfor the resource group name. - Select Central US as the region.
- Select Review + create.
- Select Create.
- Select Home to return to the Azure portal home screen.
Task 2: Create a virtual machine
In this task, you’ll create a virtual machine using the Azure portal.
- Select Create a resource.
- Select Infrastructure services from the Categories menu.
- Select Create under the virtual machine heading.
- The Create a virtual machine pane opens to the basics tab.
-
Verify or enter the following values for each setting. If a setting isn’t specified, leave the default value.
Basics tab
Setting Value Subscription Select the subscription you selected in Task 1. Resource group IntroAzureRG Virtual machine name my-VMRegion Leave default Availability options Leave default Security type Leave default Image Leave default VM architecture Leave default Run with Azure Spot discount Unchecked Size Leave default Authentication type Password Username azureuserPassword Enter a custom password Confirm password Reenter the custom password Public inbound ports None - Select Review and Create.
- Select Create.
Wait while the VM is provisioned. Deployment is in progress will change to Deployment is complete when the VM is ready.
Task 3: Verify resources created
Once the deployment is created, you can verify that Azure created not only a VM, but all of the associated resources the VM needs.
- Select Home
- Select Resource groups
- Select the IntroAzureRG resource group
You should see a list of resources in the resource group. By default, Azure gave them all a similar name to help with association and grouped them in the same resource group.
Congratulations! You’ve created a resource in Azure and had a chance to see how resources get grouped on creation.
Clean up
- From the Azure home page, under Azure services, select Resource groups.
- Select the IntroAzureRG resource group.
- Select Delete resource group.
- Ensure Apply force delete for seleted Virtual machines and Virtual machine scale sets is checked.
- Enter
IntroAzureRGto confirm deletion of the resource group. - Select Delete.
- On the Delete confirmation pop-up window, select Delete.