Exercise 3 – creating a VM
In this section, we will learn how to create a VM.
Follow these steps to create a VM:
- Log into the Azure portal at https://portal.azure.com. Alternatively, you can use the Azure desktop app: https://portal.azure.com/App/Download.
- In the search bar, type virtual machines and click on Virtual machines from the list of services.
- On the Virtual machines blade, click on + Create and then Virtual machine. This option should be at the top menu of the blade.
- On the Basics tab, set the Project details, Instance details, Administrative accounts, Inbound port rules, and Licensing settings as required.
- Click Next: Disks.
- On the Disks tab, set the Disk options settings as required; add any data disks that are required.
- Click Next: Networking.
- On the Networking tab, set the Network interface and Load balancing settings as required.
- Click Next: Management.
- On the Management tab, set all the settings that are required.
- Click Next: Advanced.
- On the Advanced tab, set all the settings that are required.
- Click Next: Tags and add any tags that are required. Then, click Next: Review + create.
- On the Review + create tab, review your settings; you may go back to the previous tabs and make any edits if required. Once you have confirmed your settings, click Create.
- You will receive a notification stating that the resource group was created successfully.
- From the Virtual machines blade, you will be able to see the VM that was created:
Figure 4.26 – Virtual machines
In this exercise, we successfully created a VM. In the next exercise, we will look at creating an Azure container instance.
Exercise 4 – creating an Azure container instance
In this section, we will look at how to create an Azure container instance.
Follow these steps to create a container:
- Log into the Azure portal at https://portal.azure.com. Alternatively, you can use the Azure desktop app: https://portal.azure.com/App/Download.
- In the search bar, type container instance and click on Container instances from the list of services shown.
- From the Virtual networks blade, click on + Create. It should be at the top of the blade.
- On the Basics tab, set the Project details and Container details settings as required.
- Click Next: Networking.
- On the Networking tab, set the Networking settings as required.
- Click Next: Advanced.
- On the Advanced tab, leave the settings as is.
- Click Next: Tags and add any tags as required. Then, click Next: Review + create.
- On the Review + create tab, review your settings; you may go back to the previous tabs and make any edits if required. Once you have confirmed your settings, click Create.
- You will receive a notification stating that the resource group was created successfully.
- From the Container instances blade, we will be able to see the container that was created:
Figure 4.27 – Container instance
In this exercise, we looked at creating an Azure container instance. In the next exercise, we will look at creating a web app.