如何创建具有加速网络的 Azure VMSS?

How to create Azure VMSS with accelerated networking?

我创建了 Azure VMSS(Windows 2016 数据中心,Standart F2s)。不知何故 "Accelerated Networking" 选项被禁用(根据规范,Standart F2s 虚拟机支持网络加速,我也有单个虚拟机 运行 加速网络和完全相同的虚拟机大小和 OS)。

基于https://docs.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-powershell#vmss,升级无效。我收到以下错误:

Cannot add network interface '/subscriptions/****/resourceGroups/*****/providers/Microsoft.Network/networkInterfaces/|providers|Microsoft.Compute|virtualMachineScaleSets|*****|virtualMachines|1|networkInterfaces|*****' with accelerated networking to an existing virtual machine '/subscriptions/******/resourceGroups/*****/providers/Microsoft.Compute/virtualMachines/|providers|Microsoft.Compute|*****|*******|virtualMachines|1' .

如有任何帮助,我们将不胜感激。 谢谢

要使用加速网络创建 Azure VMSS,您需要在规模集的 networkInterfaceConfigurations 设置中将 enableAcceleratedNetworking 设置为 true:

"networkProfile": {
    "networkInterfaceConfigurations": [
    {
      "name": "niconfig1",
      "properties": {
        "primary": true,
        "enableAcceleratedNetworking" : true,
        "ipConfigurations": [
          ...
        ]
      }
    }
   ]
}

有关详细信息,请参阅 Accelerated Networking in Azure VMSS. And there are some Limitations and Constraints of the Accelerated Networking