Skip to content

Commit a5be6cc

Browse files
committed
Merge pull request Azure#109 from rylewell-msft/FixNewDeployment
Make NewAzureDeployment param validation consistent with SetAzureDeploym...
2 parents 1d30b37 + 564ae17 commit a5be6cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/HostedServices/NewAzureDeployment.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ public virtual void NewPaaSDeploymentProcess()
123123
}
124124
else
125125
{
126+
if (string.IsNullOrEmpty(storageName))
127+
{
128+
throw new ArgumentException(Resources.CurrentStorageAccountIsNotSet);
129+
}
130+
126131
var progress = new ProgressRecord(0, Resources.WaitForUploadingPackage, Resources.UploadingPackage);
127132
WriteProgress(progress);
128133
removePackage = true;
@@ -265,11 +270,6 @@ protected virtual void ValidateParameters()
265270
{
266271
this.Label = this.Name;
267272
}
268-
269-
if (string.IsNullOrEmpty(this.CurrentContext.Subscription.GetProperty(AzureSubscription.Property.StorageAccount)))
270-
{
271-
throw new ArgumentException(Resources.CurrentStorageAccountIsNotSet);
272-
}
273273
}
274274
}
275275
}

0 commit comments

Comments
 (0)