Fix bug in snapshot client creation

This commit is contained in:
Amrita Dutta 2018-11-09 03:30:57 +00:00
parent 8d8c86366b
commit 8881bc2d64
2 changed files with 4 additions and 4 deletions

View File

@ -34,8 +34,8 @@ func (s *StepSnapshotDataDisks) createDataDiskSnapshot(ctx context.Context, reso
srcVhdToSnapshot := compute.Snapshot{ srcVhdToSnapshot := compute.Snapshot{
DiskProperties: &compute.DiskProperties{ DiskProperties: &compute.DiskProperties{
CreationData: &compute.CreationData{ CreationData: &compute.CreationData{
CreateOption: compute.Import, CreateOption: compute.Copy,
SourceURI: to.StringPtr(srcUriVhd), SourceResourceID: to.StringPtr(srcUriVhd),
}, },
}, },
Location: to.StringPtr(location), Location: to.StringPtr(location),

View File

@ -33,8 +33,8 @@ func (s *StepSnapshotOSDisk) createSnapshot(ctx context.Context, resourceGroupNa
srcVhdToSnapshot := compute.Snapshot{ srcVhdToSnapshot := compute.Snapshot{
DiskProperties: &compute.DiskProperties{ DiskProperties: &compute.DiskProperties{
CreationData: &compute.CreationData{ CreationData: &compute.CreationData{
CreateOption: compute.Import, CreateOption: compute.Copy,
SourceURI: to.StringPtr(srcUriVhd), SourceResourceID: to.StringPtr(srcUriVhd),
}, },
}, },
Location: to.StringPtr(location), Location: to.StringPtr(location),