有人知道如何在托管磁盘(操作系统和数据(上使用 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 会为你处理(。