Skip to content

Commit 944c1c6

Browse files
committed
edits
1 parent 6bf502a commit 944c1c6

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed
25.3 KB
Loading

articles/virtual-network/virtual-network-network-interface.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ To work with NICs, your account must be assigned to the [network contributor](..
8989
To create a NIC, use the following procedure.
9090

9191
>[!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).
9399
94100
# [Portal](#tab/network-interface-portal)
95101

@@ -105,21 +111,13 @@ To create a NIC, use the following procedure.
105111
| **Region** | Select your region.| The Azure region where you create the NIC. |
106112
| **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. |
107113
| **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. |
110116

111117
:::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.":::
112118

113119
1. Select **Review + create**, and when validation passes, select **Create**.
114120

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-
123121
# [Azure CLI](#tab/network-interface-cli)
124122

125123
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
299297
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.
300298

301299
>[!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.
303301
304302
- **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.
305303

@@ -372,7 +370,7 @@ You must enable the setting for every NIC attached to the VM that needs to forwa
372370

373371
IP forwarding is typically used with user-defined routes. For more information, see [User-defined routes](virtual-networks-udr-overview.md).
374372

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).
376374

377375
# [Portal](#tab/network-interface-portal)
378376

@@ -443,7 +441,7 @@ You can change the subnet, but not the virtual network, that a NIC is assigned t
443441
# [Portal](#tab/network-interface-portal)
444442

445443
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.
447445

448446
To change the assignment method to dynamic:
449447

@@ -452,9 +450,7 @@ You can change the subnet, but not the virtual network, that a NIC is assigned t
452450
1. Select **Save**.
453451

454452
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.
458454

459455
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).
460456

0 commit comments

Comments
 (0)