Skip to content

Commit c6e5885

Browse files
Tiano2017markcowl
authored andcommitted
Fix tags usage in ARM cmdlets. (#2640)
* Fix tags usage * Fix unit test for tags * Fix scenarios test cases. * Move TagsConversionHelper to Commands.ResourceManager.Common. * Fix all the namespace usings for TagsCreationHelper. * Fix wxi file. * Fix KeyValue test failure. * Fix Compute test case failures.
1 parent 7d68056 commit c6e5885

File tree

81 files changed

+273
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+273
-499
lines changed

setup/azurecmdfiles.wxi

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,9 +1640,6 @@
16401640
<Component Id="cmp97087B286DB8BA716A4D1CB18ABCAEAE" Guid="*">
16411641
<File Id="fil7433D00EFB79F3A4CCFD09E45AA44359" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.LogicApp\Microsoft.Azure.Commands.Resources.format.ps1xml" />
16421642
</Component>
1643-
<Component Id="cmp31A15C935A4B99F456D6B8BCD2D2E607" Guid="*">
1644-
<File Id="filA627F4EBDC76F2F28011727F50240470" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.LogicApp\Microsoft.Azure.Commands.Tags.dll" />
1645-
</Component>
16461643
<Component Id="cmpE99FD9F5AA46D65F845DC100BCC04143" Guid="*">
16471644
<File Id="fil4493CA681A6906CF28E2206F03AAC26F" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.LogicApp\Microsoft.Azure.Commands.Tags.dll-help.xml" />
16481645
</Component>
@@ -2800,9 +2797,6 @@
28002797
<Component Id="cmpF84401F8328D5324A149A870ED0F7301" Guid="*">
28012798
<File Id="fil306FAD8819A1173AE5A9586132F0D45D" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Sql\Microsoft.Azure.Commands.Sql.Types.ps1xml" />
28022799
</Component>
2803-
<Component Id="cmpB9A36BC1052E6D29CA114E101033DD08" Guid="*">
2804-
<File Id="fil8798955DF65FB78CCF9FA55BCFEA7D22" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Sql\Microsoft.Azure.Commands.Tags.dll" />
2805-
</Component>
28062800
<Component Id="cmp2AC64458897F6B7E0BF3138ED38D02AB" Guid="*">
28072801
<File Id="fil52EF96572CC6A4EDE16B1D6FDF0413CD" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Sql\Microsoft.Azure.Commands.Tags.dll-help.xml" />
28082802
</Component>
@@ -3385,9 +3379,6 @@
33853379
<Component Id="cmpAF6FDD36F73DF1B8825F6FCDBF99D507" Guid="*">
33863380
<File Id="filE60B89A0375025D8078CBBE13C43626A" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Websites\Microsoft.Azure.Commands.Resources.format.ps1xml" />
33873381
</Component>
3388-
<Component Id="cmp7FD7399FBFB41BA93701CD0B54D3E590" Guid="*">
3389-
<File Id="filD2AC6C37607AB4FA8D87E34E6C5E70C7" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Websites\Microsoft.Azure.Commands.Tags.dll" />
3390-
</Component>
33913382
<Component Id="cmp9CD7A6B4A060D1905998AF07D0B4B02A" Guid="*">
33923383
<File Id="filF0458BC5D689F3255BB60BB64ACD3FAF" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Websites\Microsoft.Azure.Commands.Tags.dll-help.xml" />
33933384
</Component>
@@ -5999,7 +5990,6 @@
59995990
<ComponentRef Id="cmp1ACAC80DFD34A6D24C01FC970917FBA3" />
60005991
<ComponentRef Id="cmp8DE41CF6364D106A835E7C826522203E" />
60015992
<ComponentRef Id="cmp97087B286DB8BA716A4D1CB18ABCAEAE" />
6002-
<ComponentRef Id="cmp31A15C935A4B99F456D6B8BCD2D2E607" />
60035993
<ComponentRef Id="cmpE99FD9F5AA46D65F845DC100BCC04143" />
60045994
<ComponentRef Id="cmp3C615E8BF013B4F5F438749CFE015D29" />
60055995
<ComponentRef Id="cmp9EA2D01CED057826033649A3949A590C" />
@@ -6377,7 +6367,6 @@
63776367
<ComponentRef Id="cmp5A0DCA5FB70CF654DDE7FB3D9F1876BE" />
63786368
<ComponentRef Id="cmp90CFE28929C10FB584749B3E6662A8D9" />
63796369
<ComponentRef Id="cmpF84401F8328D5324A149A870ED0F7301" />
6380-
<ComponentRef Id="cmpB9A36BC1052E6D29CA114E101033DD08" />
63816370
<ComponentRef Id="cmp2AC64458897F6B7E0BF3138ED38D02AB" />
63826371
<ComponentRef Id="cmpF639DACA74489D20363DF71CB7BBAEAF" />
63836372
<ComponentRef Id="cmp1D909E9D8F129592EECF82B544F73D88" />
@@ -6568,7 +6557,6 @@
65686557
<ComponentRef Id="cmp93772AC2745F6B6E807F7B5A7028523B" />
65696558
<ComponentRef Id="cmp24DFBDAA3B9275C9231D1F7FCC9DAC35" />
65706559
<ComponentRef Id="cmpAF6FDD36F73DF1B8825F6FCDBF99D507" />
6571-
<ComponentRef Id="cmp7FD7399FBFB41BA93701CD0B54D3E590" />
65726560
<ComponentRef Id="cmp9CD7A6B4A060D1905998AF07D0B4B02A" />
65736561
<ComponentRef Id="cmpC3F5E35306467501723E692635390B24" />
65746562
<ComponentRef Id="cmp8F839B12289A46E7A8870014F8111911" />

src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@
282282
</Compile>
283283
<Compile Include="RPRegistrationDelegatingHandler.cs" />
284284
<Compile Include="ServiceClientTracingInterceptor.cs" />
285+
<Compile Include="Tags\PSTag.cs" />
286+
<Compile Include="Tags\PSTagValue.cs" />
287+
<Compile Include="Tags\PSTagValuePair.cs" />
288+
<Compile Include="Tags\TagsConversionHelper.cs" />
285289
<None Include="MSSharedLibKey.snk" />
286290
<None Include="packages.config">
287291
<SubType>Designer</SubType>

src/ResourceManager/Common/Commands.ResourceManager.Common/Properties/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ResourceManager/Common/Commands.ResourceManager.Common/Properties/Resources.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ Select Y to enable data collection [Y/N]:</value>
151151
<data name="InvalidDefaultSubscription" xml:space="preserve">
152152
<value>No default subscription has been designated. Use Select-AzureSubscription -Default &lt;subscriptionName&gt; to set the default subscription.</value>
153153
</data>
154+
<data name="InvalidTagFormat" xml:space="preserve">
155+
<value>Invalid tag format. Expect @{Name = "tagName"} or @{Name = "tagName"; Value = "tagValue"}</value>
156+
</data>
154157
<data name="NoSubscriptionFound" xml:space="preserve">
155158
<value>The provided account {0} does not have access to any subscriptions. Please try logging in with different credentials.</value>
156159
</data>

src/ResourceManager/Tags/Commands.Tags/Model/PSTag.cs renamed to src/ResourceManager/Common/Commands.ResourceManager.Common/Tags/PSTag.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using System.Collections.Generic;
1616

17-
namespace Microsoft.Azure.Commands.Tags.Model
17+
namespace Microsoft.Azure.Commands.ResourceManager.Common.Tags
1818
{
1919
public class PSTag
2020
{

src/ResourceManager/Tags/Commands.Tags/Model/PSTagValue.cs renamed to src/ResourceManager/Common/Commands.ResourceManager.Common/Tags/PSTagValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
namespace Microsoft.Azure.Commands.Tags.Model
15+
namespace Microsoft.Azure.Commands.ResourceManager.Common.Tags
1616
{
1717
public class PSTagValue
1818
{

src/ResourceManager/Tags/Commands.Tags/Model/PSTagValuePair.cs renamed to src/ResourceManager/Common/Commands.ResourceManager.Common/Tags/PSTagValuePair.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
namespace Microsoft.Azure.Commands.Tags.Model
15+
namespace Microsoft.Azure.Commands.ResourceManager.Common.Tags
1616
{
1717
public class PSTagValuePair
1818
{

src/ResourceManager/Tags/Commands.Tags/Model/TagsConversionHelper.cs renamed to src/ResourceManager/Common/Commands.ResourceManager.Common/Tags/TagsConversionHelper.cs

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,32 @@
1515
using System;
1616
using System.Collections;
1717
using System.Collections.Generic;
18+
using System.Linq;
19+
using ProjectResources = Microsoft.Azure.Commands.ResourceManager.Common.Properties.Resources;
1820

19-
using ProjectResources = Microsoft.Azure.Commands.Tags.Properties.Resources;
20-
21-
namespace Microsoft.Azure.Commands.Tags.Model
21+
namespace Microsoft.Azure.Commands.ResourceManager.Common.Tags
2222
{
2323
public class TagsConversionHelper
2424
{
2525
public static PSTagValuePair Create(Hashtable hashtable)
2626
{
27-
if (hashtable == null ||
28-
!hashtable.ContainsKey("Name"))
27+
if (hashtable == null)
2928
{
3029
return null;
3130
}
3231

33-
PSTagValuePair tagValue = new PSTagValuePair();
34-
tagValue.Name = hashtable["Name"].ToString();
35-
36-
if (hashtable.ContainsKey("Value"))
32+
IDictionaryEnumerator ide = hashtable.GetEnumerator();
33+
PSTagValuePair tagValuePair = new PSTagValuePair();
34+
if(ide.MoveNext())
3735
{
38-
tagValue.Value = hashtable["Value"].ToString();
36+
DictionaryEntry entry = (DictionaryEntry) ide.Current;
37+
tagValuePair.Name = entry.Key.ToString();
38+
if(entry.Value != null)
39+
{
40+
tagValuePair.Value = entry.Value.ToString();
41+
}
3942
}
40-
41-
return tagValue;
43+
return tagValuePair;
4244
}
4345

4446
public static Dictionary<string, string> CreateTagDictionary(Hashtable[] hashtableArray, bool validate)
@@ -47,19 +49,21 @@ public static Dictionary<string, string> CreateTagDictionary(Hashtable[] hashtab
4749
if (hashtableArray != null && hashtableArray.Length > 0)
4850
{
4951
tagDictionary = new Dictionary<string, string>();
52+
PSTagValuePair tvPair = new PSTagValuePair();
5053
foreach (var tag in hashtableArray)
5154
{
52-
var tagValuePair = Create(tag);
53-
if (tagValuePair != null)
55+
foreach(DictionaryEntry entry in tag)
5456
{
55-
if (tagValuePair.Value != null)
57+
tvPair.Name = entry.Key.ToString();
58+
if (entry.Value != null)
5659
{
57-
tagDictionary[tagValuePair.Name] = tagValuePair.Value;
60+
tvPair.Value = entry.Value.ToString();
5861
}
5962
else
6063
{
61-
tagDictionary[tagValuePair.Name] = "";
64+
tvPair.Value = string.Empty;
6265
}
66+
tagDictionary[tvPair.Name] = tvPair.Value;
6367
}
6468
}
6569
}
@@ -70,11 +74,6 @@ public static Dictionary<string, string> CreateTagDictionary(Hashtable[] hashtab
7074
{
7175
throw new ArgumentException(ProjectResources.InvalidTagFormat);
7276
}
73-
if (hashtableArray != null && hashtableArray.Length > 0 && hashtableArray[0].Count > 0 &&
74-
(tagDictionary == null || hashtableArray.Length != tagDictionary.Count))
75-
{
76-
throw new ArgumentException(ProjectResources.InvalidTagFormatNotUniqueName);
77-
}
7877
}
7978

8079
return tagDictionary;
@@ -92,8 +91,7 @@ public static Hashtable[] CreateTagHashtable(IDictionary<string, string> diction
9291
{
9392
tagHashtable.Add(new Hashtable
9493
{
95-
{"Name", key},
96-
{"Value", dictionary[key]}
94+
{key, dictionary[key]}
9795
});
9896
}
9997
return tagHashtable.ToArray();

src/ResourceManager/Compute/Commands.Compute/Common/HashTableExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Commands.Tags.Model;
15+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1616
using System.Collections;
1717
using System.Collections.Generic;
1818

src/ResourceManager/DataLakeAnalytics/Commands.DataLakeAnalytics/Models/DataLakeAnalyticsClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Common.Authentication.Models;
1616
using Microsoft.Azure.Commands.Common.Authentication.Properties;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.DataLake.Analytics;
1919
using Microsoft.Azure.Management.DataLake.Analytics.Models;
2020
using Microsoft.Rest.Azure;

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Commands/SetAzureRmDataLakeStoreAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.DataLakeStore.Models;
16-
using Microsoft.Azure.Commands.Tags.Model;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1717
using Microsoft.Azure.Management.DataLake.Store.Models;
1818
using System.Collections;
1919
using System.Management.Automation;

src/ResourceManager/DataLakeStore/Commands.DataLakeStore/Models/DataLakeStoreClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Common.Authentication.Models;
1616
using Microsoft.Azure.Commands.Common.Authentication.Properties;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.DataLake.Store;
1919
using Microsoft.Azure.Management.DataLake.Store.Models;
2020
using Microsoft.Rest.Azure;

src/ResourceManager/Dns/Commands.Dns/Models/DnsClient.cs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
16-
using System.IO;
17-
using System.Linq;
18-
using System.Collections;
19-
using System.Collections.Generic;
2015
using Microsoft.Azure.Commands.Common.Authentication;
2116
using Microsoft.Azure.Commands.Common.Authentication.Models;
22-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
2318
using Microsoft.Azure.Management.Dns;
2419
using Microsoft.Azure.Management.Dns.Models;
25-
using Sdk = Microsoft.Azure.Management.Dns.Models;
20+
using System;
21+
using System.Collections;
22+
using System.Collections.Generic;
23+
using System.Linq;
2624
using ProjectResources = Microsoft.Azure.Commands.Dns.Properties.Resources;
25+
using Sdk = Microsoft.Azure.Management.Dns.Models;
2726

2827
namespace Microsoft.Azure.Commands.Dns.Models
2928
{
30-
using Properties;
3129
using Rest.Azure;
32-
using AzureOperationResponse = Azure.AzureOperationResponse;
3330

3431
public class DnsClient
3532
{

src/ResourceManager/KeyVault/Commands.KeyVault.Test/Scripts/ControlPlane/KeyVaultManagementTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function Test-ListAllVaultsInSubscription
193193
function Test-ListVaultsByTag
194194
{
195195
Param($tagName, $tagValue)
196-
$list = Get-AzureRmKeyVault -Tag @{Name = $tagName; Value = $tagValue}
196+
$list = Get-AzureRmKeyVault -Tag @{ $tagName = $tagValue }
197197

198198
Assert-NotNull $list
199199
Assert-True { $list.Count -gt 0 }

src/ResourceManager/KeyVault/Commands.KeyVault/Models/KeyVaultManagementCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using Microsoft.Azure.Commands.Common.Authentication.Models;
1818
using Microsoft.Azure.Commands.KeyVault.Models;
1919
using Microsoft.Azure.Commands.ResourceManager.Common;
20-
using Microsoft.Azure.Commands.Tags.Model;
20+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
2121
using Microsoft.Azure.Management.Resources;
2222
using Microsoft.Azure.Management.Resources.Models;
2323
using System;

src/ResourceManager/KeyVault/Commands.KeyVault/Models/PSVault.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.ActiveDirectory.GraphClient;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1617
using Microsoft.Azure.Commands.Resources.Models;
17-
using Microsoft.Azure.Commands.Tags.Model;
1818
using System;
1919
using System.Linq;
2020
using KeyVaultManagement = Microsoft.Azure.Management.KeyVault;

src/ResourceManager/KeyVault/Commands.KeyVault/Models/PSVaultIdentityItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Commands.Tags.Model;
15+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1616
using System.Collections;
1717
using PSResourceManagerModels = Microsoft.Azure.Commands.Resources.Models;
1818
using ResourceManagement = Microsoft.Azure.Management.Resources.Models;

src/ResourceManager/KeyVault/Commands.KeyVault/Models/VaultManagementClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using Microsoft.Azure.ActiveDirectory.GraphClient;
1717
using Microsoft.Azure.Commands.Common.Authentication;
1818
using Microsoft.Azure.Commands.Common.Authentication.Models;
19-
using Microsoft.Azure.Commands.Tags.Model;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
2020
using Microsoft.Azure.Management.KeyVault;
2121
using System;
2222
using System.Collections.Generic;

src/ResourceManager/Network/Commands.Network/ApplicationGateway/ApplicationGatewayBaseCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
using AutoMapper;
1717
using Microsoft.Azure.Commands.Network.Models;
18-
using Microsoft.Azure.Commands.Tags.Model;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1919
using Microsoft.Azure.Management.Network;
2020
using Microsoft.Azure.Management.Network.Models;
2121
using System.Net;

src/ResourceManager/Network/Commands.Network/ApplicationGateway/NewAzureApplicationGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.Network;
1919
using System.Collections;
2020
using System.Collections.Generic;

src/ResourceManager/Network/Commands.Network/ApplicationGateway/SetAzureApplicationGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.Network;
1919
using System;
2020
using System.Management.Automation;

src/ResourceManager/Network/Commands.Network/ApplicationGateway/StartAzureApplicationGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.Network;
1919
using System;
2020
using System.Management.Automation;

src/ResourceManager/Network/Commands.Network/ApplicationGateway/StopAzureApplicationGatewayCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.Network;
1919
using System;
2020
using System.Management.Automation;

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/ExpressRouteCircuitBaseCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
using AutoMapper;
1717
using Microsoft.Azure.Commands.Network.Models;
18-
using Microsoft.Azure.Commands.Tags.Model;
18+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1919
using Microsoft.Azure.Management.Network;
2020
using System.Net;
2121

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/MoveAzureExpressRouteCircuitCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.Network;
1919
using System.Management.Automation;
2020
using MNM = Microsoft.Azure.Management.Network.Models;

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/NewAzureExpressRouteCircuitCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using AutoMapper;
1616
using Microsoft.Azure.Commands.Network.Models;
17-
using Microsoft.Azure.Commands.Tags.Model;
17+
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1818
using Microsoft.Azure.Management.Network;
1919
using System.Collections;
2020
using System.Collections.Generic;

0 commit comments

Comments
 (0)