In the previous section, you had a chance to add data disks, which can be used as external storage for your data. However, VMs are not only about storage – they are also a part of a network that you have to configure properly to ensure proper access. In this section, you will learn what network interfaces are and how they work to deliver a proper VM security model.
This section requires you to have a VM already deployed. For detailed instructions, go back to the Adding data disks section, where I described the process step by step.
Network interfaces are a feature of Azure that aggregates the following configurations:
- IP configuration
- DNS servers
- Network Security Groups (NSGs)
They act as an interface to your VM and ensure the proper communication between it and other components. To create a network interface (NIC), use the following Azure CLI command:
az network nic create --resource-group "<resource-group-name>"...