首页 > 解决方案 > 如何使用加速网络创建 Azure VMSS?

问题描述

我创建了 Azure VMSS(Windows 2016 Datacenter,Standart F2s)。不知何故,“加速网络”选项被禁用(根据规范,Standart F2s vm 支持网络加速,我也有单个 VM 运行加速网络和完全相同的 VM 大小和操作系统)。

基于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' .

任何帮助,将不胜感激。谢谢。

标签: azureazure-powershellazureportal

解决方案


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

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

有关更多详细信息,请参阅Azure VMSS 中的加速网络加速网络也有一些限制和约束。


推荐阅读