Skip to content

Commit 5bc522c

Browse files
committed
Use Subscription SDK nuget.
1 parent 7faac41 commit 5bc522c

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

src/ResourceManager/Subscription/Commands.Subscription.Test/Commands.Subscription.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
6363
<Private>True</Private>
6464
</Reference>
65-
<Reference Include="Microsoft.Azure.Management.ResourceManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
65+
<Reference Include="Microsoft.Azure.Management.Subscription, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6666
<SpecificVersion>False</SpecificVersion>
67-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.ResourceManager.1.8.0-preview\lib\net452\Microsoft.Azure.Management.ResourceManager.dll</HintPath>
67+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Subscription.1.0.0-preview\lib\net452\Microsoft.Azure.Management.Subscription.dll</HintPath>
6868
</Reference>
6969
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7070
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/Subscription/Commands.Subscription.Test/ScenarioTests/TestController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
using System.Collections.Generic;
2727
using System.IO;
2828
using System.Linq;
29-
using SubscriptionDefinitionClient = Microsoft.Azure.Management.ResourceManager.SubscriptionDefinitionsClient;
29+
using SubscriptionDefinitionClient = Microsoft.Azure.Management.Subscription.SubscriptionDefinitionsClient;
3030
using TestBase = Microsoft.Azure.Test.TestBase;
3131
using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory;
3232
using TestUtilities = Microsoft.Azure.Test.TestUtilities;

src/ResourceManager/Subscription/Commands.Subscription.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<package id="Microsoft.Azure.Gallery" version="2.6.2-preview" targetFramework="net45" />
77
<package id="Microsoft.Azure.Management.Authorization" version="1.0.0" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
9-
<package id="Microsoft.Azure.Management.ResourceManager" version="1.8.0-preview" targetFramework="net452" />
9+
<package id="Microsoft.Azure.Management.Subscription" version="1.0.0-preview" targetFramework="net452" />
1010
<package id="Microsoft.Azure.Test.Framework" version="1.0.6179.26854-prerelease" targetFramework="net45" />
1111
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.8.1" targetFramework="net452" />
1212
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />

src/ResourceManager/Subscription/Commands.Subscription/Cmdlets/GetAzureRmSubscriptionDefinition.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.Subscription.Common;
1616
using Microsoft.Azure.Commands.Subscription.Models;
17-
using Microsoft.Azure.Management.ResourceManager;
17+
using Microsoft.Azure.Management.Subscription;
1818
using System.Collections.Generic;
1919
using System.Management.Automation;
2020

src/ResourceManager/Subscription/Commands.Subscription/Cmdlets/NewAzureRmSubscriptionDefinition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
using Microsoft.Azure.Commands.Subscription.Common;
1616
using Microsoft.Azure.Commands.Subscription.Models;
17-
using Microsoft.Azure.Management.ResourceManager;
17+
using Microsoft.Azure.Management.Subscription;
1818
using System.Collections;
1919
using System.Collections.Generic;
2020
using System.Linq;
@@ -39,7 +39,7 @@ public override void ExecuteCmdlet()
3939
{
4040
if (this.ShouldProcess(target: this.Name, action: "Create subscription definition"))
4141
{
42-
this.WriteSubscriptionDefinitionObject(this.SubscriptionDefinitionsClient.SubscriptionDefinitions.Create(this.Name, new Microsoft.Azure.Management.ResourceManager.Models.SubscriptionDefinition(
42+
this.WriteSubscriptionDefinitionObject(this.SubscriptionDefinitionsClient.SubscriptionDefinitions.Create(this.Name, new Microsoft.Azure.Management.Subscription.Models.SubscriptionDefinition(
4343
offerType: this.OfferType,
4444
subscriptionDisplayName: this.SubscriptionDisplayName ?? this.Name)));
4545
}

src/ResourceManager/Subscription/Commands.Subscription/Commands.Subscription.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
<Prefer32Bit>false</Prefer32Bit>
4343
</PropertyGroup>
4444
<ItemGroup>
45-
<Reference Include="Microsoft.Azure.Management.ResourceManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
45+
<Reference Include="Microsoft.Azure.Management.Subscription, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4646
<SpecificVersion>False</SpecificVersion>
47-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.ResourceManager.1.8.0-preview\lib\net452\Microsoft.Azure.Management.ResourceManager.dll</HintPath>
47+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Subscription.1.0.0-preview\lib\net452\Microsoft.Azure.Management.Subscription.dll</HintPath>
4848
</Reference>
4949
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
5050
<Reference Include="System.Web" />

src/ResourceManager/Subscription/Commands.Subscription/Common/AzureSubscriptionDefinitionCmdletBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
1717
using Microsoft.Azure.Commands.ResourceManager.Common;
1818
using Microsoft.Azure.Commands.Subscription.Models;
19-
using Microsoft.Azure.Management.ResourceManager;
19+
using Microsoft.Azure.Management.Subscription;
2020
using System.Collections.Generic;
2121
using System.Linq;
2222

@@ -44,12 +44,12 @@ public ISubscriptionDefinitionsClient SubscriptionDefinitionsClient
4444
set { _subscriptionDefinitionClient = value; }
4545
}
4646

47-
protected void WriteSubscriptionDefinitionObject(Microsoft.Azure.Management.ResourceManager.Models.SubscriptionDefinition subscriptionDefinition)
47+
protected void WriteSubscriptionDefinitionObject(Microsoft.Azure.Management.Subscription.Models.SubscriptionDefinition subscriptionDefinition)
4848
{
4949
this.WriteObject(new PSSubscriptionDefinition(subscriptionDefinition));
5050
}
5151

52-
protected void WriteSubscriptionDefinitionObjects(IEnumerable<Microsoft.Azure.Management.ResourceManager.Models.SubscriptionDefinition> subscriptionDefinitions)
52+
protected void WriteSubscriptionDefinitionObjects(IEnumerable<Microsoft.Azure.Management.Subscription.Models.SubscriptionDefinition> subscriptionDefinitions)
5353
{
5454
this.WriteObject(subscriptionDefinitions.Select(x => new PSSubscriptionDefinition(x)), enumerateCollection: true);
5555
}

src/ResourceManager/Subscription/Commands.Subscription/Models/PSSubscriptionDefinition.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 ApiSubscriptionDefinition = Microsoft.Azure.Management.ResourceManager.Models.SubscriptionDefinition;
15+
using ApiSubscriptionDefinition = Microsoft.Azure.Management.Subscription.Models.SubscriptionDefinition;
1616

1717
namespace Microsoft.Azure.Commands.Subscription.Models
1818
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Azure.Management.ResourceManager" version="1.8.0-preview" targetFramework="net452" />
3+
<package id="Microsoft.Azure.Management.Subscription" version="1.0.0-preview" targetFramework="net452" />
44
</packages>

0 commit comments

Comments
 (0)