Author : MD TAREQ HASSAN | Updated : 2020/11/09
NIC
- NIC => network interface card
- A network interface card (NIC) is the interconnection between a VM and a virtual network (VNet)
- A VM must have at least one NIC (can have more than one, depending on the size of the VM)
- Each NIC attached to a VM must exist in the same location and subscription as the VM
- A NIC must be connected to a VNet that exists in the same Azure location and subscription as the NIC
- A network interface enables an Azure Virtual Machine to communicate with internet, Azure, and on-premises resources
- When creating a virtual machine using the Azure portal, the portal creates one network interface with default settings for you
Prerequisites of creating NIC
- Before creating a network interface you must have an existing virtual network in the same location and subscription you create a network interface in
- The portal doesn’t provide the option to assign a public IP address to the network interface when you create it (If you want to create a network interface with a public IP address, you must use the CLI or PowerShell to create the network interface)
- Public IP address can be assigned to the network interface after creating it
Create Resource Group:
- Go to: https://portal.azure.com/#create/Microsoft.ResourceGroup (login to Azure portal first, then click the link)
- Fillup details (i.e. name ‘
demo-rg
’, select subscription etc.) - Create
Create required resource:
Creating NIC using Azure portal
- Go to: https://portal.azure.com/#create/Microsoft.NetworkInterface-ARM (login to Azure portal first and then click the link)
- Fillup details (resource group, name, VNet, subnet, NSG etc.) > Next
- Add tags > Next
- Create
Associate public IP address
- Go to resource groups: https://portal.azure.com/#blade/HubsExtension/BrowseResourceGroups
- Select resource group > select target NIC
- Settings: IP configurations > Click existing config i.e. ‘ipconfig1’ (or ‘+ Add’ if you want to add new)
- Associate > Save
Links
- https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
- https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface-addresses
- https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface-vm