I have taken a snapshot of a VM running as a managed disk. Now i want to create multiple vm's using that snapshot.
Can someone tell me how to create an image from that snapshot ?
I have taken a snapshot of a VM running as a managed disk. Now i want to create multiple vm's using that snapshot.
Can someone tell me how to create an image from that snapshot ?
You can create the image from a snapshot using Powershell.
$rgName = "myResourceGroup"` $location = "EastUS" $snapshotName = "mySnapshot" $imageName = "myImage"
$snapshot = Get-AzureRmSnapshot -ResourceGroupName $rgName -SnapshotName $snapshotName
$imageConfig = New-AzureRmImageConfig -Location $location $imageConfig = Set-AzureRmImageOsDisk -Image $imageConfig -OsState Generalized -OsType Windows -SnapshotId $snapshot.Id
New-AzureRmImage -ImageName $imageName -ResourceGroupName $rgName -Image $imageConfig
The link for the same can be found here: Capture Image Resource