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

How do i snapshot a Data Disk?

$
0
0

Hi, this is my first question so bare with me if i create more questions than answers.

Im trying to snapshot a data disk attached to one of my VM. I already snapped the OS disk, but i dont know how to do the same for my other vhd.

The Microsoft Doc use the OS disk in their example.

This is what im using right now:

$snapshot = New-AzureRmSnapshotConfig `
-SourceUri $vm.StorageProfile.OsDisk.ManagedDisk.Id `
-Location $location `

-CreateOption copy

I would really appreciate your help.

Cheers.



Viewing all articles
Browse latest Browse all 12545

Trending Articles



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