Skip to content

Commit 593816a

Browse files
committed
Revert unnecessary change
1 parent 88bc078 commit 593816a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using System;
1717
using System.Management.Automation;
1818
using System.Net;
19-
using System.Text.RegularExpressions;
19+
using Microsoft.Azure.Common.Authentication.Models;
2020
using Microsoft.WindowsAzure.Commands.Common;
2121
using Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions;
2222
using Microsoft.WindowsAzure.Commands.ServiceManagement.Helpers;
@@ -114,10 +114,7 @@ public virtual void NewPaaSDeploymentProcess()
114114
AssertNoPersistenVmRoleExistsInDeployment(PVM.DeploymentSlotType.Production);
115115
AssertNoPersistenVmRoleExistsInDeployment(PVM.DeploymentSlotType.Staging);
116116

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();
121118

122119
Uri packageUrl;
123120
if (this.Package.StartsWith(Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase) ||

0 commit comments

Comments
 (0)