在托管磁盘上设置 Azure Service Fabric 群集

Set up Azure Service Fabric cluster on managed disks

有人知道如何在托管磁盘(OS 和数据)上使用 VM 设置 Service Fabric 集群吗?我很想知道如何使用模板配置来做到这一点。

您需要将 VMSS api 版本更改为 2016-04-30-preview 并将 storageProfile 更改为:

"storageProfile": {
    "imageReference": {
        "publisher": "[parameters('vmImagePublisher')]",
        "offer": "[parameters('vmImageOffer')]",
        "sku": "[parameters('vmImageSku')]",
        "version": "[parameters('vmImageVersion')]"
    },
    "osDisk": {
        "createOption": "FromImage"
        "managedDisk": {
            "storageAccountType": "Standard_LRS" 
   # defauls to Standard_LRS,
   # you can choose to pick Premium_LRS if your VM size supports premium storage 
   # or you can omit this node completely if you need standard storage
        }
    }
}

使用托管磁盘时存储帐户是多余的(你不需要它们,Azure 会为你处理)。