File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/ServiceManagement/Compute/Commands.ServiceManagement/HostedServices Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 16
16
using System ;
17
17
using System . Management . Automation ;
18
18
using System . Net ;
19
- using System . Text . RegularExpressions ;
19
+ using Microsoft . Azure . Common . Authentication . Models ;
20
20
using Microsoft . WindowsAzure . Commands . Common ;
21
21
using Microsoft . WindowsAzure . Commands . ServiceManagement . Extensions ;
22
22
using Microsoft . WindowsAzure . Commands . ServiceManagement . Helpers ;
@@ -114,10 +114,7 @@ public virtual void NewPaaSDeploymentProcess()
114
114
AssertNoPersistenVmRoleExistsInDeployment ( PVM . DeploymentSlotType . Production ) ;
115
115
AssertNoPersistenVmRoleExistsInDeployment ( PVM . DeploymentSlotType . Staging ) ;
116
116
117
- var storageAccount = Profile . Context . Subscription . GetStorageAccountName ( ) ;
118
- var regex = new Regex ( @";AccountName=([a-zA-Z0-9]{0,})" ) ;
119
- var match = regex . Match ( storageAccount ) ;
120
- string storageName = match . Groups [ 1 ] . Value ;
117
+ var storageName = Profile . Context . Subscription . GetStorageAccountName ( ) ;
121
118
122
119
Uri packageUrl ;
123
120
if ( this . Package . StartsWith ( Uri . UriSchemeHttp , StringComparison . OrdinalIgnoreCase ) ||
You can’t perform that action at this time.
0 commit comments