I'm currently using this template to create a vm by custom image. For the OS Disk part:
"storageProfile": {
"osDisk": {
"name": "[concat(variables('vmName'),'-osDisk')]",
"osType": "[parameters('osType')]",
"caching": "ReadWrite",
"createOption": "FromImage",
"image": {
"uri": "[variables('userImageName')]"
},
"vhd": {
"uri": "[variables('osDiskVhdName')]"
}
}
}
Is it possible that image and vhd field stored in different storage account?
Update
I try to use two storage account in the same resource group. But the error message still mentions that "source and destination storage accounts are different"