Skip to content

Commit 3fc5f35

Browse files
committed
Update SaveAzureVhdCommand
1 parent cb5ff10 commit 3fc5f35

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CLU/Microsoft.Azure.Commands.Compute/StorageServices/SaveAzureVhdCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ public class SaveAzureVhdCommand : ComputeClientBaseCmdlet
5454
HelpMessage = "Uri to blob")]
5555
[ValidateNotNullOrEmpty]
5656
[Alias("src", "Source")]
57-
public Uri SourceUri { get; set; }
57+
public string SourceUri { get; set; }
5858

5959
[Parameter(
6060
Position = 2,
6161
Mandatory = true,
6262
HelpMessage = "Local path of the vhd file")]
6363
[ValidateNotNullOrEmpty]
6464
[Alias("lf")]
65-
public FileInfo LocalFilePath { get; set; }
65+
public string LocalFilePath { get; set; }
6666

6767
private int numberOfThreads = DefaultNumberOfUploaderThreads;
6868

@@ -91,8 +91,8 @@ protected override void ProcessRecord()
9191
{
9292
var result = DownloadFromBlobUri(
9393
this,
94-
this.SourceUri,
95-
this.LocalFilePath,
94+
new Uri(this.SourceUri),
95+
new FileInfo(this.LocalFilePath),
9696
this.StorageKey,
9797
this.ResourceGroupName,
9898
this.NumberOfThreads,

0 commit comments

Comments
 (0)