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/ip-services/virtual-network-multiple-ip-addresses-portal.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,17 @@ This article explains how to add multiple IP addresses to a virtual machine usin
52
52
53
53
*Figure: Diagram of network configuration resources created in this How-to article.*
54
54
55
+
> [!IMPORTANT]
56
+
> Avoid breaking connectivity when adding IP addresses
57
+
> When adding additional IP configurations to a VM, you **do not need to convert the existing (primary) private IP address from Dynamic to Static**.
58
+
>
59
+
> Changing the primary IP allocation type can disrupt RDP/SSH connectivity and may require recovery steps such as adding a temporary IP address. This is unnecessary when your goal is only to add secondary IP addresses.
60
+
>
61
+
> Recommended approach:
62
+
> - Leave the primary private IP configuration unchanged.
63
+
> - Add new **secondary IP configurations** (static or dynamic) directly to the NIC.
64
+
> - Only change the primary IP to Static if a fixed primary address is explicitly required and you understand the impact.
65
+
55
66
## Add public and private IP address to a VM
56
67
57
68
You can add a private and public IP address to an Azure network interface by completing the following steps.
@@ -68,9 +79,9 @@ You can add a private and public IP address to an Azure network interface by com
68
79
69
80
:::image type="content" source="./media/virtual-network-multiple-ip-addresses-portal/select-nic.png" alt-text="Screenshot of myVM networking and network interface selection.":::
70
81
71
-
6. In **IP Configurations** To add a private and public IP address to the virtual machine, select **+ Add**.
82
+
6. In **IP configurations**, select **+ Add** to create a new secondary IP configuration.
72
83
73
-
8. In **Add IP configuration**, enter or select the following information.
84
+
7. In **Add IP configuration**, enter or select the following information.
74
85
75
86
| Setting | Value |
76
87
| ------- | ----- |
@@ -81,13 +92,15 @@ You can add a private and public IP address to an Azure network interface by com
81
92
|**Public IP address**| Select **Associate public IP address**|
82
93
| Public IP address | Select **Create a public IP address**. </br> Enter **public-ip-02** in **Name**. </br> Select **Standard** in **SKU**. </br> Select **OK**. |
83
94
84
-
9. Select **OK**.
95
+
8. Select **OK**.
85
96
86
-
> [!NOTE]
87
-
> When adding a static IP address, you must specify an unused, valid address on the subnet the NIC is connected to.
97
+
> [!NOTE]
98
+
> When adding a static IP address, specify an unused and valid address in the subnet.
99
+
> This applies only to the **new secondary IP configuration**. The primary IP configuration does not need to be changed.
88
100
89
101
> [!IMPORTANT]
90
-
> After you change the IP address configuration, you must restart the VM for the changes to take effect in the VM.
102
+
> Restarting the VM is required for the operating system to recognize newly added IP addresses.
103
+
> Adding secondary IP configurations does **not** require changing the primary IP allocation and does not inherently break existing connectivity.
91
104
92
105
## Add private IP address to a VM
93
106
@@ -121,10 +134,12 @@ You can add a private IP address to a virtual machine by completing the followin
121
134
9. Select **OK**.
122
135
123
136
> [!NOTE]
124
-
> When adding a static IP address, you must specify an unused, valid address on the subnet the NIC is connected to.
137
+
> When adding a static IP address, specify an unused and valid address in the subnet.
138
+
> This applies only to the **new secondary IP configuration**. The primary IP configuration does not need to be changed.
125
139
126
-
> [!IMPORTANT]
127
-
> After you change the IP address configuration, you must restart the VM for the changes to take effect in the VM.
140
+
> [!IMPORTANT]
141
+
> Restarting the VM is required for the operating system to recognize newly added IP addresses.
142
+
> Adding secondary IP configurations does **not** require changing the primary IP allocation and does not inherently break existing connectivity.
0 commit comments