You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network/virtual-network-network-interface.md
+13-17Lines changed: 13 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,13 @@ To work with NICs, your account must be assigned to the [network contributor](..
89
89
To create a NIC, use the following procedure.
90
90
91
91
>[!NOTE]
92
-
>A VM you create in the Azure portal has one NIC with default settings. To create a NIC with custom settings and attach it to a VM, use PowerShell or Azure CLI. You can also use PowerShell or Azure CLI to add a NIC to an existing VM.
92
+
>- A VM you create in the Azure portal has one NIC with default settings. To create a NIC with custom settings and attach it to a VM, or to add a NIC to an existing VM, use PowerShell or Azure CLI.
93
+
>
94
+
>- The portal doesn't provide the option to assign a public IP address to the NIC when you create it. If you want to create a NIC with a public IP address, use Azure CLI or PowerShell.
95
+
>
96
+
> The portal does create a public IP address and assign it to a NIC when you create a VM. To add a public IP address to a NIC after you create it, see [Configure IP addresses for an Azure network interface](./ip-services/virtual-network-network-interface-addresses.md).
97
+
>
98
+
>- The portal doesn't provide the option to assign the NIC to application security groups when you create the NIC, but Azure CLI and PowerShell do. However, you can assign an existing NIC to an application security group by using the portal if the NIC is attached to a VM. For more information, see [Add to or remove from application security groups](#add-or-remove-from-application-security-groups).
93
99
94
100
# [Portal](#tab/network-interface-portal)
95
101
@@ -105,21 +111,13 @@ To create a NIC, use the following procedure.
105
111
|**Region**| Select your region.| The Azure region where you create the NIC. |
106
112
|**Virtual network**| Select your virtual network. | You can assign a NIC only to a virtual network in the same subscription and location as the NIC. Once you create a NIC, you can't change the virtual network it's assigned to. The VM you add the NIC to must also be in the same location and subscription as the NIC. |
107
113
|**Subnet**| Select a subnet within the virtual network you selected. | You can change the subnet the NIC is assigned to after you create the NIC. |
108
-
|**IP version**| Select **IPv4** or**IPv4 and IPv6**. | You can choose to create the NIC with an IPv4 address or IPv4 and IPv6 addresses. To assign an IPv6 address, the network and subnet you use for the NIC must also have an IPv6 address space. An IPv6 configuration is assigned to a secondary IP configuration for the NIC.|
109
-
|**Private IP address assignment**| Select **Dynamic** or **Static**. | The Azure DHCP server assigns the private IP address to the NIC in the VM's operating system.<br><br>If you select **Dynamic**, Azure automatically assigns the next available address from the address space of the subnet you selected. <br><br>If you select **Static**, you must manually assign an available IP address from within the address space of the subnet you selected.<br><br>Static and dynamic addresses don't change until you change them or delete the NIC. You can change the assignment method after the NIC is created. |
114
+
|**IP version**| Select **IPv4** or<br>**IPv4 and IPv6**. | You can choose to create the NIC with an IPv4 address or IPv4 and IPv6 addresses. To assign an IPv6 address, the network and subnet you use for the NIC must also have an IPv6 address space. An IPv6 configuration is assigned to a secondary IP configuration for the NIC.|
115
+
|**Private IP address assignment**| Select **Dynamic** or **Static**. | The Azure DHCP server assigns the private IP address to the NIC in the VM's operating system.<br><br>- If you select **Dynamic**, Azure automatically assigns the next available address from the address space of the subnet you selected. <br><br>- If you select **Static**, you must manually assign an available IP address from within the address space of the subnet you selected.<br><br>Static and dynamic addresses don't change until you change them or delete the NIC. You can change the assignment method after the NIC is created. |
110
116
111
117
:::image type="content" source="./media/virtual-network-network-interface/create-network-interface.png" alt-text="Screenshot of the Create network interface screen in the Azure portal.":::
112
118
113
119
1. Select **Review + create**, and when validation passes, select **Create**.
114
120
115
-
### Portal limitations
116
-
117
-
- The portal doesn't provide the option to assign a public IP address to the NIC when you create it. If you want to create a NIC with a public IP address, use Azure CLI or PowerShell.
118
-
119
-
The portal does create a public IP address and assign it to a NIC when you create a VM. To add a public IP address to a NIC after you create it, see [Configure IP addresses for an Azure network interface](./ip-services/virtual-network-network-interface-addresses.md).
120
-
121
-
- The portal also doesn't provide the option to assign the NIC to application security groups when you create the NIC, but Azure CLI and PowerShell do. However, you can assign an existing NIC to an application security group by using the portal if the NIC is attached to a VM. For more information, see [Add to or remove from application security groups](#add-or-remove-from-application-security-groups).
122
-
123
121
# [Azure CLI](#tab/network-interface-cli)
124
122
125
123
The following example creates an Azure public IP address and associates it with the NIC.
@@ -299,7 +297,7 @@ Azure DHCP assigns the DNS server to the NIC within the VM operating system. The
299
297
The Azure-provided DNS server can resolve hostnames for resources assigned to the same virtual network. The fully qualified domain name (FQDN) must be used for resources assigned to different virtual networks.
300
298
301
299
>[!NOTE]
302
-
>If a VM uses a NIC that's part of an availability set, all the DNS servers for all NICs for all VMs that are part of the availability set are inherited.
300
+
>If a VM uses a NIC that's part of an availability set, the DNS servers for all NICs for all VMs that are part of the availability set are inherited.
303
301
304
302
-**Custom**: You can configure your own DNS server to resolve names across multiple virtual networks. Enter the IP address of the server you want to use as a DNS server. The DNS server address you specify is assigned only to this NIC and overrides any DNS setting for the virtual network the NIC is assigned to.
305
303
@@ -372,7 +370,7 @@ You must enable the setting for every NIC attached to the VM that needs to forwa
372
370
373
371
IP forwarding is typically used with user-defined routes. For more information, see [User-defined routes](virtual-networks-udr-overview.md).
374
372
375
-
While IP forwarding is an Azure setting, the VM must also run an application that's able to forward the traffic, such as a firewall, WAN optimization, or load balancing application. A VM that runs network applications is often called a network virtual appliance (NVA). You can view a list of ready-to-deploy NVAs in the [Azure Marketplace](https://azuremarketplace.microsoft.com/marketplace/apps/category/networking?page=1&subcategories=appliances).
373
+
While IP forwarding is an Azure setting, the VM must also run an application that's able to forward the traffic, such as a firewall, WAN optimization, or load balancing application. A VM that runs network applications is often called a network virtual appliance (NVA). You can view a list of ready-to-deploy NVAs in the [Azure Marketplace](https://azuremarketplace.microsoft.com/marketplace/apps?search=network%20virtual%20appliances).
376
374
377
375
# [Portal](#tab/network-interface-portal)
378
376
@@ -443,7 +441,7 @@ You can change the subnet, but not the virtual network, that a NIC is assigned t
443
441
# [Portal](#tab/network-interface-portal)
444
442
445
443
1. On the NIC's page, select **IP configurations** in the left navigation.
446
-
1.All private IP addresses must be assigned with the dynamic assignment method to change the subnet assignment for the NIC. On the **IP configurations** page, under **IP configurations**, if any private IP addresses listed have **(Static)** next to them, change the IP address assignment method to dynamic.
444
+
1. On the **IP configurations** page, under **IP configurations**, if any private IP addresses listed have **(Static)** next to them, change the IP address assignment method to dynamic. All private IP addresses must be assigned with the dynamic assignment method to change the subnet assignment for the NIC.
447
445
448
446
To change the assignment method to dynamic:
449
447
@@ -452,9 +450,7 @@ You can change the subnet, but not the virtual network, that a NIC is assigned t
452
450
1. Select **Save**.
453
451
454
452
1. When all private IP addresses are set to **Dynamic**, under **Subnet**, select the subnet you want to move the NIC to.
455
-
1. Select **Save**.
456
-
457
-
New dynamic addresses are assigned from the new subnet's address range.
453
+
1. Select **Save**. New dynamic addresses are assigned from the new subnet's address range.
458
454
459
455
After assigning the NIC to a new subnet, you can assign a static IPv4 address from the new subnet address range if you choose. For more information about adding, changing, and removing IP addresses for a NIC, see [Configure IP addresses for an Azure network interface](./ip-services/virtual-network-network-interface-addresses.md).
0 commit comments