Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

New Vm on targeted storage account

$
0
0

Hi,

I am trying to create a VM through powershell from a custom VM image. The custom image was captured with the Generalized parameter, and it contains both an OS vhd AND a data vhd. The custom image is located in storage account X. I am trying to create VMs from that image but I want the new vhds to be created on another existing storage account Y. I tried setting the current storage account of the subscription to Y, but the new VM vhds are created in storage X. Is there a way to do this through the use of New-AzureVMConfig and the MediaLocation parameter?

Thanks in advance...


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>