Skip to content

[Release 1.4.0] [AzureRT] Sprint 59 #2170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 56 commits into from
Apr 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
d5f4c53
Add migration cmdlets
hyonholee Mar 2, 2016
eb73d1f
Merge branch 'release-1.2.2' of https://github.com/Azure/azure-powers…
hyonholee Mar 2, 2016
c085075
Remove DebugSettings since it is not included in the private library
hyonholee Mar 2, 2016
0e84453
Update references for Compute,Storage,and Network to private library
hyonholee Mar 2, 2016
50c49da
Remove list publisher extension call
hyonholee Mar 2, 2016
9e7accc
Fix move-azureservice due to client library bug.
hyonholee Mar 2, 2016
a10c5f2
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Apr 1, 2016
522c48e
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Apr 12, 2016
21cc9f9
Remove Invoke-AzureComputeMethod, New-AzureComputeArgumentList and Ne…
hyonholee Apr 12, 2016
d9d5063
Update client library to 13.0.0-prerelease.
hyonholee Apr 12, 2016
54e1ca5
Fix localization issue when choosing existing standard stroage account
hyonholee Apr 12, 2016
68ec5ca
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Apr 12, 2016
83df954
Merge branch 'Release.1.3.2' of https://github.com/Azure/azure-powers…
hyonholee Apr 15, 2016
fd666d6
Disable Static Analysis (temporary change)
hyonholee Apr 15, 2016
e2af065
Set ASM Storage reference back to Nuget and remove Storage migration …
hyonholee Apr 15, 2016
3dfe28d
Update ASM Compute and Network dlls
hyonholee Apr 15, 2016
1d3e786
Update Move-AzureService cmdlet
hyonholee Apr 15, 2016
3d6c312
Add Move-AzureService and Move-AzureVirtualNetwork cmdlets and tests
hyonholee Apr 16, 2016
1f0bd25
Merge branch 'Release.1.3.2' of https://github.com/Azure/azure-powers…
hyonholee Apr 16, 2016
f519e7d
Add migration cmdlets to Preview module
hyonholee Apr 18, 2016
b7e3f62
Update ASM Compute and Network library references
hyonholee Apr 21, 2016
ba0ae91
Update migration deployment cmdlet
hyonholee Apr 21, 2016
594d451
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Apr 21, 2016
c2f8716
Update the compute client library to version 13.0.1-prerelease
hyonholee Apr 21, 2016
c30ba0d
Generate Container Service cmdlets
hyonholee Apr 21, 2016
f0cf827
Fix Update-AzureRmVmssInstance cmdlet name
hyonholee Apr 21, 2016
84e7420
Add ContainerService tests
hyonholee Apr 21, 2016
5ab679c
Merge branch 'migration' of https://github.com/hyonholee/azure-powers…
hyonholee Apr 22, 2016
99c1c10
Update parameter names for Container Service cmdlets
hyonholee Apr 22, 2016
8d5af39
Add LicenseType parameter to New-AzureVMConfig and BYOL test
hyonholee Apr 23, 2016
2cf5b13
Merge pull request #6 from hyonholee/byol
hyonholee Apr 25, 2016
538aa8b
Merge branch 'dev' of https://github.com/hyonholee/azure-powershell i…
hyonholee Apr 25, 2016
b729e08
Update ASM Compute help document
hyonholee Apr 27, 2016
e3dd2d8
Remove migration cmdlets from Preview module
hyonholee Apr 27, 2016
366063b
Fix Get-AzureRmVM output object
hyonholee Apr 27, 2016
612997f
Remove JsonText parameters from PSUsage, PSVirtualMachine and PSVirtu…
hyonholee Apr 27, 2016
5e117c5
Update Compute format with custom control.
hyonholee Apr 27, 2016
97e77d6
Fix Usage object mapping to show unit.
hyonholee Apr 27, 2016
a894cb2
Regenerate with updated auto-generator which supports Table and Custo…
hyonholee Apr 27, 2016
2300814
Update Vm and Vmss test with updated formatting
hyonholee Apr 27, 2016
5285c77
Include generated formatting file
hyonholee Apr 27, 2016
230a402
Add table format for VM
hyonholee Apr 27, 2016
349cc60
Update Compute help file and re-enable static analysis
hyonholee Apr 27, 2016
7c4db92
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Apr 27, 2016
3940d04
Change back to ListPublisherExtensions (previous update was due to mi…
hyonholee Apr 27, 2016
600ac5a
Adding back debug setting for VM (previous update was due to missing …
hyonholee Apr 27, 2016
b0d5441
Remove commented line in ACS test
hyonholee Apr 27, 2016
09eb683
Update test record file with updated version header and disable 4 net…
hyonholee Apr 28, 2016
ef16519
Remove skip tag from liveonly tests, and update test recording file f…
hyonholee Apr 28, 2016
76124f2
Fix overflow during format when extension settings are set.
hyonholee Apr 28, 2016
1d8a616
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Apr 28, 2016
c40c867
Add a line
hyonholee Apr 28, 2016
2bc46a2
Update according to the comments.
hyonholee Apr 28, 2016
47548fa
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hyonholee Apr 28, 2016
944157e
Remove generated CLI file
hyonholee Apr 28, 2016
841f3df
Update failed tests
hyonholee Apr 28, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Compute, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.6.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.8.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<package id="Microsoft.Rest.ClientRuntime" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.0.1-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.6.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.8.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Storage" version="5.1.1" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
<package id="xunit" version="2.1.0" targetFramework="net45" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Compute, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.6.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.8.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
</Reference>
<Reference Include="Microsoft.WindowsAzure.Management.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<package id="Microsoft.Rest.ClientRuntime" version="2.1.0" targetFramework="net45" />
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.0.1-preview" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.6.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.8.0" targetFramework="net45" />
<package id="Microsoft.WindowsAzure.Management.Storage" version="5.1.1" targetFramework="net45" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
<package id="xunit" version="2.1.0" targetFramework="net45" />
Expand Down
7 changes: 4 additions & 3 deletions src/ResourceManager/Compute/AzureRM.Compute.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
TypesToProcess = @(
'.\Microsoft.Azure.Commands.Compute.Types.ps1xml'
'.\Microsoft.Azure.Commands.Compute.Types.ps1xml'
)

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = @(
'.\Microsoft.Azure.Commands.Compute.format.ps1xml',
'.\Microsoft.Azure.Commands.Compute.format.generated.ps1xml'
'.\Microsoft.Azure.Commands.Compute.format.ps1xml',
'.\Microsoft.Azure.Commands.Compute.format.generated.ps1xml',
'.\Generated\Microsoft.Azure.Commands.Compute.Automation.format.generated.ps1xml'
)

# Modules to import as nested modules of the module specified in ModuleToProcess
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Management.Compute">
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.13.0.0-prerelease\lib\net45\Microsoft.Azure.Management.Compute.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.13.0.1-prerelease\lib\net45\Microsoft.Azure.Management.Compute.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.Management.Network, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down Expand Up @@ -168,6 +168,7 @@
<Compile Include="ScenarioTests\AddVhdTests.cs" />
<Compile Include="ScenarioTests\AEMExtensionTests.cs" />
<Compile Include="ScenarioTests\ComputeCloudExceptionTests.cs" />
<Compile Include="ScenarioTests\ContainerServiceTests.cs" />
<Compile Include="ScenarioTests\DiagnosticsExtensionTests.cs" />
<Compile Include="ScenarioTests\SqlIaaSExtensionTests.cs">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down Expand Up @@ -240,6 +241,9 @@
<None Include="ScenarioTests\ComputeCloudExceptionTests.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="ScenarioTests\ContainerServiceTests.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="ScenarioTests\DscExtensionTests.ps1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down Expand Up @@ -305,6 +309,12 @@
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.ComputeCloudExceptionTests\RunComputeCloudExceptionTests.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.ContainerServiceTests\TestContainerService.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.ContainerServiceTests\TestContainerServiceUpdate.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DiagnosticsExtensionTests\TestDiagnosticsExtensionBasic.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;

namespace Microsoft.Azure.Commands.Compute.Test.ScenarioTests
{
public partial class ContainerServiceTests
{
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestContainerService()
{
ComputeTestController.NewInstance.RunPsTest("Test-ContainerService");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestContainerServiceUpdate()
{
ComputeTestController.NewInstance.RunPsTest("Test-ContainerServiceUpdate");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

<#
.SYNOPSIS
Test Container Service
#>
function Test-ContainerService
{
# Setup
$rgname = Get-ComputeTestResourceName

try
{
# Common
$loc = 'australiasoutheast';
New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;


$csName = 'cs' + $rgname;
$masterDnsPrefixName = 'master' + $rgname;
$agentPoolDnsPrefixName = 'ap' + $rgname;
$agentPoolProfileName = 'AgentPool1';
$vmSize = 'Standard_A1';

$orchestratorType = 'DCOS';
$adminUserName = 'acsLinuxAdmin';
$sshPublicKey =
"MIIDszCCApugAwIBAgIJALBV9YJCF/tAMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV" +
"BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX" +
"aWRnaXRzIFB0eSBMdGQwHhcNMTUwMzIyMjI1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7UHIz2" +
"oe6IQTw7zJF7xuBIzTYwjOCM197GKW7xc4GU4JZIN+faZ7njl/fxfUNdlqvgZUUn" +
"kfdrzU3PZPl0w9NuncgEje/PZ+YtZvIsnH7MLSPeIGNQwW6V2kc8";

$container = New-AzureRmContainerServiceConfig -Location $loc -OrchestratorType $orchestratorType `
-MasterDnsPrefix $masterDnsPrefixName -AdminUsername $adminUserName -SshPublicKey $sshPublicKey `
| Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName -VmSize $vmSize -DnsPrefix $agentPoolDnsPrefixName `
| New-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;


$cs = Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

$cslist = Get-AzureRmContainerService -ResourceGroupName $rgname;

$st = Remove-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
}
}

<#
.SYNOPSIS
Test Container Service Update
#>
function Test-ContainerServiceUpdate
{
# Setup
$rgname = Get-ComputeTestResourceName

try
{
# Common
$loc = 'australiasoutheast';
New-AzureRMResourceGroup -Name $rgname -Location $loc -Force;


$csName = 'cs' + $rgname;
$masterDnsPrefixName = 'master' + $rgname;
$agentPoolDnsPrefixName = 'ap' + $rgname;
$agentPoolProfileName = 'AgentPool1';
$vmSize = 'Standard_A1';

$orchestratorType = 'DCOS';
$adminUserName = 'acsLinuxAdmin';
$sshPublicKey =
"MIIDszCCApugAwIBAgIJALBV9YJCF/tAMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV" +
"BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX" +
"aWRnaXRzIFB0eSBMdGQwHhcNMTUwMzIyMjI1NDQ5WhcNMTYwMzIxMjI1NDQ5WjBF" +
"MQswCQYDVQQGEwJBVTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50" +
"ZXJuZXQgV2lkZ2l0cyBQ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W6V2kc8";

$container = New-AzureRmContainerServiceConfig -Location $loc `
-OrchestratorType $orchestratorType `
-MasterDnsPrefix $masterDnsPrefixName `
-MasterCount 1 `
-AdminUsername $adminUserName `
-SshPublicKey $sshPublicKey `
| Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
-VmSize $vmSize `
-DnsPrefix $agentPoolDnsPrefixName `
-Count 1 `
| New-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName `
| Remove-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
| Add-AzureRmContainerServiceAgentPoolProfile -Name $agentPoolProfileName `
-VmSize $vmSize `
-DnsPrefix $agentPoolDnsPrefixName `
-Count 2 `
| Update-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;

$cs = Get-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
$st = Remove-AzureRmContainerService -ResourceGroupName $rgname -Name $csName;
}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
}
}

Loading