DEV Community

Cover image for Preparing The Environment
lotanna obianefo
lotanna obianefo

Posted on

Preparing The Environment

In the prepare exercise, you set up the environment to complete the rest of the steps.

Create a resource group

In order to make clean-up easy at the end, start with creating a new resource group to hold the resources for this project. Using resource groups to organize things is a quick way to ensure you can manage resources when a project is over.

From the Azure portal home page, in the search box, enter resource groups.
Select Resource groups under services.
11
Select Create.
22
Enter project-rg in the Resource group name field.
The Region field will automatically populate. Leave the default value.
Select Review + create.
Select Create.
33
44
55

Create a virtual network with one subnet

From the Azure portal home page, in the search box, enter virtual networks.
Select virtual networks under services.
111
Select Create.
222
Scroll down to the Instance details section and enter guided-project-vnet for the Virtual network name.
Select Review + create.
333
Select Create.
444
Wait for the screen to refresh and show Your deployment is complete.
555
Select Home to return to the Azure portal home page.

Create a virtual machine

From the Azure portal home page, in the search box, enter virtual machines.
Select virtual machines under services.
1111
Select Create and then select Virtual machine
2222
Select project-rg for the Resource group.
Enter project-vm for the Virtual machine name.
For the Image, select one of the Ubuntu Server options. (For example, Ubuntu Server 24.04 LTS - x64 Gen2)
Continue further on the Basics page to the Administrator account section.
Select Password for authentication type.
Enter project-admin for the admin Username.
Enter a password for the admin account.
Confirm the password for the admin account.
Leave the rest of the settings as default settings. You can review the settings if you like, but shouldn’t change any.
Select Review + create.
3333
4444
5555n
Once validation has passed, you’ll receive a cost estimate of how much it will cost per hour to run the VM
Select Create to confirm the resource cost and create the virtual machine.
77677
Select Home to return to the Azure portal home page.

Create a Storage account

From the Azure portal home page, in the search box, enter storage accounts.
Select Storage accounts under services.
777
Select Create
998
Scroll down to the Instance details section and enter a name for the storage account. Storage accounts must be globally unique, so you may have to try a few different times to get a storage account name.
Select Review + create.
898
Select Create.
Wait for the screen to refresh and show Your deployment is complete.
werwrw
987tre

It's Important to take note of other resource groups that are already created. During clean up, you want to avoid deleting resource groups that were already here. Pay special attention for a resource group called NetworkWatcherRG. If it doesn’t already exist, the NetworkWatcherRG will be created during this guided project and should be deleted at the end. However, if the NetworkWatcherRG already exists prior to starting this project, you should NOT delete it at the end. It may be helpful to take a screenshot of resource groups that exist before you create the group for the guided project.

Top comments (0)