Accelerated Networking can be enabled via the Azure portal or via the Azure CLI. See this section for detailed instructions.

Enable Accelerated Networking

Azure requires that an existing Virtual Machine (VM) be stopped/deallocated before Accelerated Networking is enabled on any Network Interface Card (NIC). For more information, see:

https://learn.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-cli

There are two ways to enable Accelerated Networking, via the Azure portal or via the Azure CLI. For detailed instructions for both, see the sections below.

Enable Accelerated Networking Via Azure Portal

To enable Accelerated Networking on an interface of an existing VM, follow the steps below, and see the image below for more information.
  1. Stop/deallocate the VM.
  2. Change the setting of accelerated networking to Enabled.
  3. Restart the VM.
Important: To fully benefit from the Accelerated Networking feature, enable it on all interfaces of the VM.
After the VM restarts, if the NIC model type allotted to the interface is not Mellanox ConnectX4 or ConnectX5, accelerated networking support for the interface is not activated by the Edge VM. As a troubleshooting effort, change the NIC model, stop/deallocate the VM, and then restart the VM.
Note: You must stop the VM before you enable the Accelerated Networking support.

Enable Accelerated Networking via Azure CLI

Follow the steps below to enable Accelerated Networking via the Azure CLI. For more information, reference the following: https://learn.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-cli?tabs=windows#enable-accelerated-networking-on-individual-vms-or-vms-in-availability-sets

  1. Deallocate resources of the VM.

    az vm deallocate --resource-group <myResourceGroup> --name <myVm>

  2. Enable Accelerated Networking on the NIC.

    az network nic update \

    --name <myNic> \

    --resource-group <myResourceGroup> \

    --accelerated-networking true

  3. Restart the VM.

    az vm start --resource-group <myResourceGroup> --name <myVm>