concept VM in category azure

This is an excerpt from Manning's book Learn Azure in a Month of Lunches, Second Edition.
Entire books are dedicated to virtualization, but here’s a quick overview: virtualization logically divides physical resources in a server into virtual resources that can be securely accessed by individual workloads. A VM is one of the most common resources in cloud computing. A VM contains a virtual CPU (vCPU), memory (vRAM), storage (vDisk), and network connectivity (vNIC), as shown in figure 1.4.
When you create a VM in the Azure portal or by using the CLI or PowerShell, you must choose what size VM to use. A common VM size, such as D2s_v3, is often used as a default to get you started. This is probably way too much power for a basic web server in this chapter, but it’s quick to create the VM and install the required packages!
The Azure portal lets you filter based on a rough size (such as small, medium, or large) or a specific family (such as the general-purpose or memory-optimized VMs). An estimated monthly cost is also shown to give you an idea of how expensive each VM is. Pay attention to the costs, as they can add up quickly! Within reason, you can usually change the VM size after the VM is up and running, though the VM must shut down and reboot to complete the process.
To view your public key and use it with a VM, enter the following command: cat .ssh/id_rsa.pubSelect the output, and copy it to a simple text file on your computer. You’ll use this public key to create a VM in section 2.3; this VM is referenced from the Azure CLI throughout the rest of the book. Usually, you don’t need to copy and paste the whole key each time, but it’s good to see what’s happening at first. This information isn’t super-secret, so using Notepad or TextEdit to create and save a copy of the key is fine. Be careful when copying the output of the public key, because it’s sensitive to additional whitespace or missing characters. An example of a complete SSH public key is as follows: