File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/ServiceManagement/Compute/Commands.ServiceManagement/HostedServices Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,11 @@ public virtual void NewPaaSDeploymentProcess()
123
123
}
124
124
else
125
125
{
126
+ if ( string . IsNullOrEmpty ( storageName ) )
127
+ {
128
+ throw new ArgumentException ( Resources . CurrentStorageAccountIsNotSet ) ;
129
+ }
130
+
126
131
var progress = new ProgressRecord ( 0 , Resources . WaitForUploadingPackage , Resources . UploadingPackage ) ;
127
132
WriteProgress ( progress ) ;
128
133
removePackage = true ;
@@ -265,11 +270,6 @@ protected virtual void ValidateParameters()
265
270
{
266
271
this . Label = this . Name ;
267
272
}
268
-
269
- if ( string . IsNullOrEmpty ( this . CurrentContext . Subscription . GetProperty ( AzureSubscription . Property . StorageAccount ) ) )
270
- {
271
- throw new ArgumentException ( Resources . CurrentStorageAccountIsNotSet ) ;
272
- }
273
273
}
274
274
}
275
275
}
You can’t perform that action at this time.
0 commit comments