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.