Skip to content

Commit f8c3974

Browse files
committed
Merge branch 'vmss' of https://github.com/AzureRT/azure-powershell into VMssRdp
2 parents a4282d2 + 6f9722d commit f8c3974

File tree

175 files changed

+103684
-1103
lines changed

Some content is hidden

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

175 files changed

+103684
-1103
lines changed

setup/azurecmdfiles.wxi

Lines changed: 6 additions & 92 deletions
Large diffs are not rendered by default.

src/ResourceManager/Compute/AzureRM.Compute.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ TypesToProcess = @(
6161
# Format files (.ps1xml) to be loaded when importing this module
6262
FormatsToProcess = @(
6363
'.\Microsoft.Azure.Commands.Compute.format.ps1xml',
64-
'.\Microsoft.Azure.Commands.Compute.format.generated.ps1xml'
64+
'.\Microsoft.Azure.Commands.Compute.format.generated.ps1xml',
65+
'.\Generated\Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml'
6566
)
6667

6768
# Modules to import as nested modules of the module specified in ModuleToProcess

src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
<Reference Include="Microsoft.Azure.Management.Authorization">
6767
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
6868
</Reference>
69-
<Reference Include="Microsoft.Azure.Management.Compute, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
70-
<SpecificVersion>False</SpecificVersion>
71-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.9.1.0\lib\net40\Microsoft.Azure.Management.Compute.dll</HintPath>
69+
<Reference Include="Microsoft.Azure.Management.Compute">
70+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.9.1.1-preview\lib\net40\Microsoft.Azure.Management.Compute.dll</HintPath>
71+
<Private>True</Private>
7272
<Private>True</Private>
7373
</Reference>
7474
<Reference Include="Microsoft.Azure.Management.Network">
@@ -168,6 +168,7 @@
168168
<Compile Include="ScenarioTests\DiagnosticsExtensionTests.cs" />
169169
<Compile Include="ScenarioTests\DscExtensionTests.cs" />
170170
<Compile Include="ScenarioTests\VirtualMachineBootDiagnosticsTests.cs" />
171+
<Compile Include="ScenarioTests\VirtualMachineScaleSetTests.cs" />
171172
<Compile Include="ScenarioTests\VMDynamicTests.cs" />
172173
<Compile Include="ScenarioTests\VirtualMachineProfileTests.cs" />
173174
<Compile Include="ScenarioTests\AvailabilitySetTests.cs" />
@@ -240,11 +241,16 @@
240241
<None Include="ScenarioTests\DiagnosticsExtensionTests.ps1">
241242
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
242243
</None>
244+
<None Include="ScenarioTests\VirtualMachineScaleSetTests.ps1">
245+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
246+
</None>
243247
<None Include="ScenarioTests\VMDynamicTests.ps1">
244248
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
245249
</None>
246250
<None Include="MSSharedLibKey.snk" />
247-
<None Include="packages.config" />
251+
<None Include="packages.config">
252+
<SubType>Designer</SubType>
253+
</None>
248254
<None Include="ScenarioTests\VirtualMachineProfileTests.ps1">
249255
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
250256
</None>
@@ -329,6 +335,9 @@
329335
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineProfileTests\TestVirtualMachineProfileWithoutAUC.json">
330336
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
331337
</None>
338+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineScaleSetTests\TestVirtualMachineScaleSet.json">
339+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
340+
</None>
332341
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests\TestGetVMSizeFromAllLocations.json">
333342
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
334343
</None>

src/ResourceManager/Compute/Commands.Compute.Test/Common/ComputeTestController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private void SetupManagementClients(RestTestFramework.MockContext context)
161161
NetworkManagementClient = this.GetNetworkManagementClientClient(context);
162162
ComputeManagementClient = GetComputeManagementClient();
163163
AuthorizationManagementClient = GetAuthorizationManagementClient();
164-
GraphClient = GetGraphClient();
164+
// GraphClient = GetGraphClient();
165165

166166
helper.SetupManagementClients(
167167
ResourceManagementClient,
@@ -171,8 +171,8 @@ private void SetupManagementClients(RestTestFramework.MockContext context)
171171
//eventsClient,
172172
NetworkManagementClient,
173173
ComputeManagementClient,
174-
AuthorizationManagementClient,
175-
GraphClient);
174+
AuthorizationManagementClient);
175+
// GraphClient);
176176
}
177177

178178
private GraphRbacManagementClient GetGraphClient()
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
16+
using Xunit;
17+
18+
namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
19+
{
20+
public partial class VirtualMachineScaleSetTests
21+
{
22+
[Fact(Skip = "TODO: need to re-record")]
23+
[Trait(Category.AcceptanceType, Category.CheckIn)]
24+
public void TestVirtualMachineScaleSet()
25+
{
26+
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachineScaleSet");
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)