Creating the snapshot configuration

Once the parameters have been set and the source virtual machine configuration has been retrieved, we can create the snapshot configuration. To create the snapshot configuration, run the New-AzureRmSnapshotConfig command:

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

This command provides no feedback on the screen.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.220.140.5