是否有人知道如何在托管磁盘(操作系统和数据)上设置带有VM的Service Fabric群集?我很想知道如何使用模板配置来做到这一点。
答案 0 :(得分:4)
您需要将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会为您处理)。