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
This article describes how to create a Linux virtual machine (VM) with Accelerated Networking (AccelNet) enabled by using the Azure command-line interface, Azure CLI. The article also discusses application binding requirements, and how to enable and manage Accelerated Networking on existing VMs.
18
18
19
-
You can also create a Linux VM with Accelerated Networking enabled by using the [Azure portal](../virtual-machines/linux/quick-create-portal.md?toc=%2fazure%2fvirtual-network%2ftoc.json) or [Azure PowerShell](../virtual-network/create-vm-accelerated-networking-powershell.md). To manage Accelerated Networking on VMs by using the Azure portal, see [Portal management].
19
+
You can also create a VM with Accelerated Networking enabled by using the [Azure portal](/azure/virtual-machines/linux/quick-create-portal) or [Azure PowerShell](../virtual-network/create-vm-accelerated-networking-powershell.md). To view and manage Accelerated Networking on VMs through the Azure portal, see [Manage Accelerated Networking through the portal](#manage-accelerated-networking-through-the-portal).
20
20
21
21
## Prerequisites
22
22
@@ -62,7 +62,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
62
62
az network nsg rule create \
63
63
--resource-group <myResourceGroup> \
64
64
--nsg-name <myNsg> \
65
-
--name Allow-SSH-Internet \
65
+
--name Allow-SSH-Internet \
66
66
--access Allow \
67
67
--protocol Tcp \
68
68
--direction Inbound \
@@ -75,7 +75,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
75
75
76
76
### Create a network interface with Accelerated Networking
77
77
78
-
1. Use [az network public-ip create](/cli/azure/network/public-ip) to create a public IP address. A VM doesn't need a public IP address if you don't access it from the internet, but you need the public IP to complete the steps for this article.
78
+
1. Use [az network public-ip create](/cli/azure/network/public-ip) to create a public IP address. The VM doesn't need a public IP address if you don't access it from the internet, but you need the public IP to complete the steps for this article.
79
79
80
80
```azurecli
81
81
az network public-ip create \
@@ -214,7 +214,7 @@ It's possible to enable Accelerated Networking on an existing VM. The VM must me
214
214
215
215
### Enable Accelerated Networking on Virtual Machine Scale Sets
216
216
217
-
Azure Virtual Machine Scale Sets is slightly different but follows the same workflow.
217
+
Azure Virtual Machine Scale Sets is slightly different, but follows the same workflow.
218
218
219
219
1. First, stop the VMs:
220
220
@@ -253,15 +253,17 @@ Once you restart and the upgrades finish, the VF appears inside VMs that use a s
253
253
254
254
### Resize existing VMs with Accelerated Networking
255
255
256
-
VMs with Accelerated Networking enabled can be resized only to sizes that also support Accelerated Networking. You can't resize a VM with Accelerated Networking to a VM instance that doesn't support Accelerated Networking by using the resize operation. Instead, use the following process to resize these VMs:
256
+
You can resize VMs with Accelerated Networking enabled only to sizes that also support Accelerated Networking. You can't resize a VM with Accelerated Networking to a VM instance that doesn't support Accelerated Networking by using the resize operation. Instead, use the following process to resize these VMs:
257
257
258
258
1. Stop and deallocate the VM or all the VMs in the availability set or Virtual Machine Scale Sets.
259
259
1. Disable Accelerated Networking on the NIC of the VM or all the VMs in the availability set or Virtual Machine Scale Sets.
260
260
1. Move the VM or VMs to a new size that doesn't support Accelerated Networking, and restart them.
261
261
262
-
###Manage Accelerated Networking through the portal
262
+
## Manage Accelerated Networking through the portal
263
263
264
-
When you [create a VM in the Azure portal](/azure/virtual-machines/linux/quick-create-portal) that uses a [supported operating system](./accelerated-networking-overview.md#supported-operating-systems) and [VM size](./accelerated-networking-overview.md#supported-vm-instances), the **Enable accelerated networking** checkbox on the **Networking** tab of the **Create a virtual machine** screen is automatically selected. If Accelerated Networking isn't supported, the checkbox isn't selected, and a message explains the reason.
264
+
When you [create a VM in the Azure portal](/azure/virtual-machines/linux/quick-create-portal), you can select the **Enable accelerated networking** checkbox on the **Networking** tab of the **Create a virtual machine** screen.
265
+
266
+
If the VM uses a [supported operating system](./accelerated-networking-overview.md#supported-operating-systems) and [VM size](./accelerated-networking-overview.md#supported-vm-instances) for Accelerated Networking, the **Enable accelerated networking** checkbox on the **Networking** tab of the **Create a virtual machine** screen is automatically selected. If Accelerated Networking isn't supported, the checkbox isn't selected, and a message explains the reason.
265
267
266
268
>[!NOTE]
267
269
>- You can enable Accelerated Networking during portal VM creation only for Azure Marketplace supported operating systems. To create and enable Accelerated Networking for a VM with a custom OS image, you must use Azure CLI or PowerShell.
@@ -275,6 +277,12 @@ To enable or disable Accelerated Networking for an existing VM through the Azure
275
277
1. At the top of the NIC **Overview** page, select **Edit accelerated networking**.
276
278
1. Select **Automatic**, **Enabled**, or **Disabled**, and then select **Save**.
277
279
280
+
To confirm whether Accelerated Networking is enabled for an existing VM:
281
+
282
+
1. From the [Azure portal](https://portal.azure.com) page for the VM, select **Networking** from the left menu.
283
+
1. On the **Networking** page, select the **Network Interface**.
284
+
1. On the network interface **Overview** page, under **Essentials**, note whether **Accelerated networking** is set to **Enabled** or **Disabled**.
285
+
278
286
## Next steps
279
287
280
288
-[How Accelerated Networking works in Linux and FreeBSD VMs](./accelerated-networking-how-it-works.md)
Copy file name to clipboardExpand all lines: articles/virtual-network/create-vm-accelerated-networking-powershell.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This article describes how to create a Windows virtual machine (VM) with Acceler
19
19
20
20
You can also create a Windows VM with Accelerated Networking enabled by using the [Azure portal](quick-create-portal.md). To manage Accelerated Networking on VMs through the Azure portal, see [Manage Accelerated Networking through the portal](#manage-accelerated-networking-through-the-portal).
21
21
22
-
To create a Linux VM with Accelerated Networking enabled, see [Use Azure CLI to create a Linux VM with Accelerated Networking](create-vm-accelerated-networking-clil.md).
22
+
To create a Linux VM with Accelerated Networking enabled, see [Use Azure CLI to create a Linux VM with Accelerated Networking](create-vm-accelerated-networking-cli.md).
23
23
24
24
## Prerequisites
25
25
@@ -123,7 +123,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
123
123
124
124
### Create a VM and attach the network interface
125
125
126
-
1. Use [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) to set your VM credentials to the `$cred` variable, which prompts you to sign in.
126
+
1. Use [Get-Credential](/powershell/module/microsoft.powershell.security/get-credential) to set your VM credentials to the `$cred` variable, which prompts you to sign in.
127
127
128
128
```azurepowershell
129
129
$cred = Get-Credential
@@ -163,7 +163,7 @@ In the following examples, replace the example parameters such as `<myResourceGr
## Confirm the Ethernet controller is installed in the VM
166
+
## Confirm the Ethernet controller is installed
167
167
168
168
Once you create the VM in Azure, connect to the VM and confirm that the Ethernet controller is installed in Windows.
169
169
@@ -175,7 +175,7 @@ Once you create the VM in Azure, connect to the VM and confirm that the Ethernet
175
175
176
176
4. From the VM overview toolbar, select **Connect** > **RDP** > **Download RDP File**.
177
177
178
-
5. Open the .rdp file, and then sign in to the VM with the credentials you entered in the [Create a VM and attach the network interface](#create-a-vm-and-attach-the-network-interface) section. If you've never connected to a Windows VM in Azure, see [Connect to virtual machine](../virtual-machines/windows/quick-create-portal.md?toc=%2fazure%2fvirtual-network%2ftoc.json#connect-to-virtual-machine).
178
+
5. Open the RDP file, and then sign in to the VM with the credentials you entered in the [Create a VM and attach the network interface](#create-a-vm-and-attach-the-network-interface) section. If you've never connected to a Windows VM in Azure, see [Connect to virtual machine](../virtual-machines/windows/quick-create-portal.md?toc=%2fazure%2fvirtual-network%2ftoc.json#connect-to-virtual-machine).
179
179
180
180
6. After the remote desktop session for your VM appears, right-click the Windows Start button and choose **Device Manager**.
181
181
@@ -224,7 +224,7 @@ You can enable Accelerated Networking on an existing VM. The VM must meet the fo
224
224
$nic | Set-AzNetworkInterface
225
225
```
226
226
227
-
3. Restart your VM, or all the VMs in the availability set, and [confirm that Accelerated Networking is enabled](#confirm-that-accelerated-networking-is-enabled).
227
+
3. Restart your VM, or all the VMs in the availability set, and [confirm that Accelerated Networking is enabled](#confirm-the-ethernet-controller-is-installed).
228
228
229
229
```azurepowershell
230
230
Start-AzVM -ResourceGroup "myResourceGroup" `
@@ -302,7 +302,6 @@ To confirm whether Accelerated Networking is enabled for an existing VM:
302
302
1. On the **Networking** page, select the **Network Interface**.
303
303
1. On the NIC **Overview** page, under **Essentials**, note whether **Accelerated networking** is set to **Enabled** or **Disabled**.
304
304
305
-
306
305
## Next steps
307
306
308
307
- [How Accelerated Networking works in Linux and FreeBSD VMs](accelerated-networking-how-it-works.md)
0 commit comments