How can I add another network interface to a VM.

Iván Ceballos (Web Devices) 0 Reputation points
2023-03-12T17:14:08.07+00:00

How can I add another network interface to a VM. I need that one Network interface is in one Vnet and the other network interface to another Vnet. I want to know how can I reach this

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,312 questions
{count} votes

3 answers

Sort by: Most helpful
  1. TP 83,971 Reputation points
    2023-03-12T18:33:59.54+00:00

    Hi,

    Additional network interfaces must be in the same virtual network (VNet) as the network interface that is already attached to the VM. You cannot have a VM with multiple network interfaces attached to different virtual networks. Each network interface can be in a different subnet within the same VNet.

    To add another network interface in the portal you first stop the VM and then on the networking blade of the VM you click Attach network interface.

    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface-vm#add-a-network-interface-to-an-existing-vm

    azure vm add network interface

    If the above was helpful please click Accept Answer.

    Thanks.

    -TP


  2. msrini-MSFT 9,276 Reputation points Microsoft Employee
    2023-03-13T08:08:24.9133333+00:00

    Hi,

    You can add multiple interfaces to the VM based on the VM SKU, but all the interfaces needs to be on the same VNET. You can create multiple subnets and deploy NICs as part of different subnet of the same VNET.

    Regards,

    Karthik Srinivas

    0 comments No comments

  3. LiJia Liu 170 Reputation points MVP
    2023-03-13T09:04:02.35+00:00
    0 comments No comments