如何使用加速网络创建Azure VMSS?

时间:2019-04-22 11:52:52

标签: azure azure-powershell azureportal

我创建了Azure VMSS(Windows 2016 Datacenter,Standart F2s)。不知何故,“加速网络”选项被禁用(根据规范,Standart F2s 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' .

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

1 个答案:

答案 0 :(得分:1)

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

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

有关更多详细信息,请参见Accelerated Networking in Azure VMSS。还有一些Limitations and Constraints of the Accelerated Networking