File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/ServiceManagement/Compute/Commands.ServiceManagement/HostedServices Expand file tree Collapse file tree 1 file changed +5
-2
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 Microsoft . Azure . Common . Authentication . Models ;
19
+ using System . Text . RegularExpressions ;
20
20
using Microsoft . WindowsAzure . Commands . Common ;
21
21
using Microsoft . WindowsAzure . Commands . ServiceManagement . Extensions ;
22
22
using Microsoft . WindowsAzure . Commands . ServiceManagement . Helpers ;
@@ -114,7 +114,10 @@ public virtual void NewPaaSDeploymentProcess()
114
114
AssertNoPersistenVmRoleExistsInDeployment ( PVM . DeploymentSlotType . Production ) ;
115
115
AssertNoPersistenVmRoleExistsInDeployment ( PVM . DeploymentSlotType . Staging ) ;
116
116
117
- var storageName = Profile . Context . Subscription . GetStorageAccountName ( ) ;
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 ;
118
121
119
122
Uri packageUrl ;
120
123
if ( this . Package . StartsWith ( Uri . UriSchemeHttp , StringComparison . OrdinalIgnoreCase ) ||
You can’t perform that action at this time.
0 commit comments