• 9849-xxx-xxx
  • noreply@example.com
  • Tyagal, Patan, Lalitpur

Exercise 3 – creating a VM

In this section, we will learn how to create a VM.

Follow these steps to create a VM:

  1. Log into the Azure portal at https://portal.azure.com. Alternatively, you can use the Azure desktop app: https://portal.azure.com/App/Download.
  2. In the search bar, type virtual machines and click on Virtual machines from the list of services.
  3. On the Virtual machines blade, click on + Create and then Virtual machine. This option should be at the top menu of the blade.
  4. On the Basics tab, set the Project details, Instance details, Administrative accounts, Inbound port rules, and Licensing settings as required.
  5. Click Next: Disks.
  6. On the Disks tab, set the Disk options settings as required; add any data disks that are required.
  7. Click Next: Networking.
  8. On the Networking tab, set the Network interface and Load balancing settings as required.
  9. Click Next: Management.
  10. On the Management tab, set all the settings that are required.
  11. Click Next: Advanced.
  12. On the Advanced tab, set all the settings that are required.
  13. Click Next: Tags and add any tags that are required. Then, click Next: Review + create.
  14. 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.
  15. You will receive a notification stating that the resource group was created successfully.
  16. 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:

  1. Log into the Azure portal at https://portal.azure.com. Alternatively, you can use the Azure desktop app: https://portal.azure.com/App/Download.
  2. In the search bar, type container instance and click on Container instances from the list of services shown.
  3. From the Virtual networks blade, click on + Create. It should be at the top of the blade.
  4. On the Basics tab, set the Project details and Container details settings as required.
  5. Click Next: Networking.
  6. On the Networking tab, set the Networking settings as required.
  7. Click Next: Advanced.
  8. On the Advanced tab, leave the settings as is.
  9. Click Next: Tags and add any tags as required. Then, click Next: Review + create.
  10. 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.
  11. You will receive a notification stating that the resource group was created successfully.
  12. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *