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/create-vm-accelerated-networking-cli.md
+20-11Lines changed: 20 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,10 @@
1
1
---
2
2
title: Use Azure CLI to create a Windows or Linux VM with Accelerated Networking
3
3
description: Use Azure CLI to create and manage virtual machines that have Accelerated Networking enabled for improved network performance.
4
-
services: virtual-network
5
4
author: asudbring
6
-
manager: gedegrac
7
-
tags: azure-resource-manager
8
5
ms.service: virtual-network
9
6
ms.topic: how-to
10
-
ms.workload: infrastructure-services
11
-
ms.date: 03/20/2023
7
+
ms.date: 04/18/2023
12
8
ms.author: allensu
13
9
ms.custom: fasttrack-edit, devx-track-azurecli
14
10
---
@@ -23,6 +19,7 @@ To use Azure PowerShell to create a Windows VM with Accelerated Networking enabl
23
19
## Prerequisites
24
20
25
21
- An Azure account with an active subscription. You can [create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
22
+
26
23
- The latest version of [Azure CLI installed](/cli/azure/install-azure-cli). Sign in to Azure by using the [az login](/cli/azure/reference-index#az-login) command.
27
24
28
25
## Create a VM with Accelerated Networking
@@ -139,7 +136,7 @@ az vm create \
139
136
140
137
# [Linux](#tab/linux)
141
138
142
-
The following example creates a VM with the UbuntuLTS OS image and a size that supports Accelerated Networking, Standard_DS4_v2.
139
+
The following example creates a VM with a size that supports Accelerated Networking, Standard_DS4_v2.
143
140
144
141
```azurecli
145
142
az vm create \
@@ -206,11 +203,11 @@ Once you create the VM in Azure, connect to the VM and confirm that the Ethernet
206
203
207
204
1. Use the following command to create an SSH session with the VM. Replace `<myPublicIp>` with the public IP address assigned to the VM you created, and replace `<myAdminUser>` with the `--admin-username` you specified when you created the VM.
208
205
209
-
```bash
206
+
```azurecli
210
207
ssh <myAdminUser>@<myPublicIp>
211
208
```
212
209
213
-
1. From a Bash shell on the remote VM, enter `uname -r` and confirm that the kernel version is one of the following versions, or greater:
210
+
1. From a shell on the remote VM, enter `uname -r` and confirm that the kernel version is one of the following versions, or greater:
214
211
215
212
-**Ubuntu 16.04**: 4.11.0-1013.
216
213
-**SLES SP3**: 4.4.92-6.18.
@@ -252,13 +249,16 @@ You must run an application over the synthetic NIC to guarantee that the applica
252
249
For more information about application binding requirements, see [How Accelerated Networking works in Linux and FreeBSD VMs](./accelerated-networking-how-it-works.md#application-usage).
It's possible to enable Accelerated Networking on an existing VM. The VM must meet the following requirements to support Accelerated Networking:
258
256
259
-
- Be a supported size for Accelerated Networking.
260
-
- Be a supported Azure Marketplace image and kernel version for Linux.
261
-
- Be stopped or deallocated before you can enable Accelerated Networking on any NIC. This requirement applies to all individual VMs or VMs in an availability set or Azure Virtual Machine Scale Sets.
257
+
- A supported size for Accelerated Networking.
258
+
259
+
- A supported Azure Marketplace image and kernel version for Linux.
260
+
261
+
- Stopped or deallocated before you can enable Accelerated Networking on any NIC. This requirement applies to all individual VMs or VMs in an availability set or Azure Virtual Machine Scale Sets.
262
262
263
263
### Enable Accelerated Networking on individual VMs or VMs in availability sets
264
264
@@ -332,7 +332,9 @@ Once you restart and the upgrades finish, the VF appears inside VMs that use a s
332
332
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:
333
333
334
334
1. Stop and deallocate the VM or all the VMs in the availability set or Virtual Machine Scale Sets.
335
+
335
336
1. Disable Accelerated Networking on the NIC of the VM or all the VMs in the availability set or Virtual Machine Scale Sets.
337
+
336
338
1. Move the VM or VMs to a new size that doesn't support Accelerated Networking, and restart them.
337
339
338
340
## Manage Accelerated Networking through the portal
@@ -349,18 +351,25 @@ If the VM uses a [supported operating system](./accelerated-networking-overview.
349
351
To enable or disable Accelerated Networking for an existing VM through the Azure portal:
350
352
351
353
1. From the [Azure portal](https://portal.azure.com) page for the VM, select **Networking** from the left menu.
354
+
352
355
1. On the **Networking** page, select the **Network Interface**.
356
+
353
357
1. At the top of the NIC **Overview** page, select **Edit accelerated networking**.
358
+
354
359
1. Select **Automatic**, **Enabled**, or **Disabled**, and then select **Save**.
355
360
356
361
To confirm whether Accelerated Networking is enabled for an existing VM:
357
362
358
363
1. From the portal page for the VM, select **Networking** from the left menu.
364
+
359
365
1. On the **Networking** page, select the **Network Interface**.
366
+
360
367
1. On the network interface **Overview** page, under **Essentials**, note whether **Accelerated networking** is set to **Enabled** or **Disabled**.
361
368
362
369
## Next steps
363
370
364
371
-[How Accelerated Networking works in Linux and FreeBSD VMs](./accelerated-networking-how-it-works.md)
372
+
365
373
-[Create a VM with Accelerated Networking by using PowerShell](../virtual-network/create-vm-accelerated-networking-powershell.md)
0 commit comments