title: How to create vm using custom image from different storage account, on Azure
body: <p>I'm currently using <a href="https://github.com/Azure/azure-quickstart-templates/tree/master/101-vm-from-user-image" rel="nofollow noreferrer">this template</a> to create a vm by custom image. For the OS Disk part:</p>
  
  <pre><code>"storageProfile": {
    "osDisk": {
      "name": "[concat(variables('vmName'),'-osDisk')]",
      "osType": "[parameters('osType')]",
      "caching": "ReadWrite",
      "createOption": "FromImage",
      "image": {
        "uri": "[variables('userImageName')]"
      },
      "vhd": {
        "uri": "[variables('osDiskVhdName')]"
      }
    }
  }
  </code></pre>
  
  <p>Is it possible that image and vhd field stored in different storage account?</p>
  
  <h2>Update</h2>
  
  <p>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"</p>
  
  <p><a href="https://i.stack.imgur.com/qJYqn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qJYqn.jpg" alt="enter image description here"></a></p>