diff --git a/builder/azure/arm/step_snapshot_data_disks.go b/builder/azure/arm/step_snapshot_data_disks.go index 3e3533fc8..df9a5bfaf 100644 --- a/builder/azure/arm/step_snapshot_data_disks.go +++ b/builder/azure/arm/step_snapshot_data_disks.go @@ -34,8 +34,8 @@ func (s *StepSnapshotDataDisks) createDataDiskSnapshot(ctx context.Context, reso srcVhdToSnapshot := compute.Snapshot{ DiskProperties: &compute.DiskProperties{ CreationData: &compute.CreationData{ - CreateOption: compute.Import, - SourceURI: to.StringPtr(srcUriVhd), + CreateOption: compute.Copy, + SourceResourceID: to.StringPtr(srcUriVhd), }, }, Location: to.StringPtr(location), diff --git a/builder/azure/arm/step_snapshot_os_disk.go b/builder/azure/arm/step_snapshot_os_disk.go index ce73f3f96..5fa9f6b0b 100644 --- a/builder/azure/arm/step_snapshot_os_disk.go +++ b/builder/azure/arm/step_snapshot_os_disk.go @@ -33,8 +33,8 @@ func (s *StepSnapshotOSDisk) createSnapshot(ctx context.Context, resourceGroupNa srcVhdToSnapshot := compute.Snapshot{ DiskProperties: &compute.DiskProperties{ CreationData: &compute.CreationData{ - CreateOption: compute.Import, - SourceURI: to.StringPtr(srcUriVhd), + CreateOption: compute.Copy, + SourceResourceID: to.StringPtr(srcUriVhd), }, }, Location: to.StringPtr(location),