Skip to content
Merged

Vmss #153

Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -422,16 +422,16 @@ function Run-AutoGeneratedServiceExtensionCmdletTests
$p1 = New-AzureComputeArgumentList -MethodName HostedServiceAddExtension;
$p1[0].Value = $svcName; #ServiceName
$p1[1].Value = 'test'; #Id
#PrivateConfiguration
#PrivateConfiguration
$p1[2].Value =
@"
<?xml version="1.0" encoding="UTF-8"?>
<PrivateConfig>
<Password>pstestuser</Password>
</PrivateConfig>
"@;
$p1[3].Value = 'Microsoft.Windows.Azure.Extensions'; #ProviderNamespace
#PublicConfiguration
$p1[3].Value = 'Microsoft.Windows.Azure.Extensions'; #ProviderNamespace
#PublicConfiguration
$p1[4].Value =
@"
<?xml version="1.0" encoding="UTF-8"?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void RunAutoGeneratedVirtualMachineCmdletTests()
this.RunPowerShellTest("Run-AutoGeneratedVirtualMachineCmdletTests");
}

[Fact]
[Fact(Skip = "TODO")]
[Trait(Category.Service, Category.ServiceManagement)]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.AcceptanceType, Category.BVT)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\Package\Debug\ServiceManagement\Azure\Compute</OutputPath>
<CrpDllPath>..\..\..\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Compute</CrpDllPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down Expand Up @@ -198,7 +197,7 @@
<None Include="Automation\Create-ParameterTree.ps1" />
<None Include="Automation\Create-ParameterObject.ps1" />
<None Include="Automation\Import-OperationFunction.ps1" />
<None Include="Automation\RunCodeGeneration.ps1" />
<None Include="Automation\Invoke-CodeGeneration.ps1" />
<None Include="Automation\ConvertTo-Json.ps1" />
<None Include="AzurePreview.psd1">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down Expand Up @@ -256,7 +255,7 @@
<Target Name="BuildGenerateRDFE">
<PropertyGroup>
<PowerShellExe Condition=" '$(PowerShellExe)'=='' ">%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellExe>
<PSCodeGenScriptPath>".\Automation\RunCodeGeneration.ps1"</PSCodeGenScriptPath>
<PSCodeGenScriptPath>".\Automation\Invoke-CodeGeneration.ps1"</PSCodeGenScriptPath>
<PSCodeGenTargetFolder>$(OutputPath)</PSCodeGenTargetFolder>
<ClientLibraryNamesSpace>"Microsoft.WindowsAzure.Management.Compute"</ClientLibraryNamesSpace>
<BaseCmdletFullName>"Microsoft.WindowsAzure.Commands.Utilities.Common.ServiceManagementBaseCmdlet"</BaseCmdletFullName>
Expand All @@ -271,16 +270,16 @@
<Target Name="BuildGenerateARM" DependsOnTargets="BuildGenerateRDFE">
<PropertyGroup>
<PowerShellExe Condition=" '$(PowerShellExe)'=='' ">%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe</PowerShellExe>
<PSCodeGenScriptPath>".\Automation\RunCodeGeneration.ps1"</PSCodeGenScriptPath>
<PSCodeGenTargetFolder>$(CrpDllPath)</PSCodeGenTargetFolder>
<BaseCmdletFullName>"Microsoft.Azure.Commands.Compute.ComputeClientBaseCmdlet"</BaseCmdletFullName>
<BaseCmdletClientName>"ComputeClient.ComputeManagementClient"</BaseCmdletClientName>
<ARMClientLibraryNamesSpace>"Microsoft.Azure.Management.Compute"</ARMClientLibraryNamesSpace>
<ARMGeneratedPSCodeFolder>..\..\..\ResourceManager\Compute\Commands.Compute</ARMGeneratedPSCodeFolder>
<ARMCmdletFlavor>Verb</ARMCmdletFlavor>
<CliCmdletFlavor>Verb</CliCmdletFlavor>
<OperationNameFilter>"VirtualMachineScaleSets","VirtualMachineScaleSetVMs"</OperationNameFilter>
<ScriptPath>".\Automation\Invoke-CodeGeneration.ps1"</ScriptPath>
<DllFolder>$(OutputPath)\..\..\..\ResourceManager\AzureResourceManager\AzureRM.Compute</DllFolder>
<TargetFolder>..\..\..\ResourceManager\Compute\Commands.Compute</TargetFolder>
<BaseCmdletFullName>Microsoft.Azure.Commands.Compute.ComputeClientBaseCmdlet</BaseCmdletFullName>
<BaseCmdletClientName>ComputeClient.ComputeManagementClient</BaseCmdletClientName>
<NamesSpace>Microsoft.Azure.Management.Compute</NamesSpace>
<PSFlavor>Verb</PSFlavor>
<CliFlavor>Verb</CliFlavor>
<Operations>VirtualMachineScaleSets,VirtualMachineScaleSetVMs</Operations>
</PropertyGroup>
<Exec Command="$(PowerShellExe) $(PSCodeGenScriptPath) $(PSCodeGenTargetFolder) $(ARMGeneratedPSCodeFolder) $(ARMClientLibraryNamesSpace) $(BaseCmdletFullName) $(BaseCmdletClientName) $(ARMCmdletFlavor) $(CliCmdletFlavor) $(OperationNameFilter)" />
<Exec Command="$(PowerShellExe) $(ScriptPath) $(DllFolder) $(TargetFolder) $(NamesSpace) $(BaseCmdletFullName) $(BaseCmdletClientName) $(PSFlavor) $(CliFlavor) $(Operations)" />
</Target>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// 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.
//

// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using Microsoft.Azure;
using Microsoft.WindowsAzure.Commands.Compute.Automation.Models;
using Microsoft.WindowsAzure.Management.Compute;
using Microsoft.WindowsAzure.Management.Compute.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;

namespace Microsoft.WindowsAzure.Commands.Compute.Automation
{
public partial class InvokeAzureComputeMethodCmdlet : ComputeAutomationBaseCmdlet
{
protected object CreateHostedServiceListPublisherExtensionsDynamicParameters()
{
dynamicParameters = new RuntimeDefinedParameterDictionary();
var pArgumentList = new RuntimeDefinedParameter();
pArgumentList.Name = "ArgumentList";
pArgumentList.ParameterType = typeof(object[]);
pArgumentList.Attributes.Add(new ParameterAttribute
{
ParameterSetName = "InvokeByStaticParameters",
Position = 1,
Mandatory = true
});
pArgumentList.Attributes.Add(new AllowNullAttribute());
dynamicParameters.Add("ArgumentList", pArgumentList);

return dynamicParameters;
}

protected void ExecuteHostedServiceListPublisherExtensionsMethod(object[] invokeMethodInputParameters)
{

var result = HostedServiceClient.ListPublisherExtensions();
WriteObject(result);
}
}

public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCmdlet
{
protected PSArgument[] CreateHostedServiceListPublisherExtensionsParameters()
{
return ConvertFromObjectsToArguments(new string[0], new object[0]);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ protected static object[] ConvertDynamicParameters(RuntimeDefinedParameterDictio
"HostedServiceListAvailableExtensions",
"HostedServiceListExtensions",
"HostedServiceListExtensionVersions",
"HostedServiceListPublisherExtensions",
"HostedServiceUpdate",
"LoadBalancerCreate",
"LoadBalancerDelete",
Expand Down Expand Up @@ -324,6 +325,9 @@ protected override void ProcessRecord()
case "HostedServiceListExtensionVersions" :
ExecuteHostedServiceListExtensionVersionsMethod(argumentList);
break;
case "HostedServiceListPublisherExtensions" :
ExecuteHostedServiceListPublisherExtensionsMethod(argumentList);
break;
case "HostedServiceUpdate" :
ExecuteHostedServiceUpdateMethod(argumentList);
break;
Expand Down Expand Up @@ -540,6 +544,7 @@ public virtual object GetDynamicParameters()
case "HostedServiceListAvailableExtensions" : return CreateHostedServiceListAvailableExtensionsDynamicParameters();
case "HostedServiceListExtensions" : return CreateHostedServiceListExtensionsDynamicParameters();
case "HostedServiceListExtensionVersions" : return CreateHostedServiceListExtensionVersionsDynamicParameters();
case "HostedServiceListPublisherExtensions" : return CreateHostedServiceListPublisherExtensionsDynamicParameters();
case "HostedServiceUpdate" : return CreateHostedServiceUpdateDynamicParameters();
case "LoadBalancerCreate" : return CreateLoadBalancerCreateDynamicParameters();
case "LoadBalancerDelete" : return CreateLoadBalancerDeleteDynamicParameters();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,10 @@
<Label>DataVirtualHardDisks</Label>
<ScriptBlock> foreach ($item in $_.DataVirtualHardDisks) { [Newtonsoft.Json.JsonConvert]::SerializeObject($item, [Newtonsoft.Json.Formatting]::Indented) } </ScriptBlock>
</ListItem>
<ListItem>
<Label>DebugSettings</Label>
<ScriptBlock>[Newtonsoft.Json.JsonConvert]::SerializeObject($_.DebugSettings, [Newtonsoft.Json.Formatting]::Indented)</ScriptBlock>
</ListItem>
<ListItem>
<Label>DefaultWinRmCertificateThumbprint</Label>
<PropertyName>DefaultWinRmCertificateThumbprint</PropertyName>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public partial class NewAzureComputeArgumentListCmdlet : ComputeAutomationBaseCm
"HostedServiceListAvailableExtensions",
"HostedServiceListExtensions",
"HostedServiceListExtensionVersions",
"HostedServiceListPublisherExtensions",
"HostedServiceUpdate",
"LoadBalancerCreate",
"LoadBalancerDelete",
Expand Down Expand Up @@ -195,6 +196,7 @@ protected override void ProcessRecord()
case "HostedServiceListAvailableExtensions" : WriteObject(CreateHostedServiceListAvailableExtensionsParameters(), true); break;
case "HostedServiceListExtensions" : WriteObject(CreateHostedServiceListExtensionsParameters(), true); break;
case "HostedServiceListExtensionVersions" : WriteObject(CreateHostedServiceListExtensionVersionsParameters(), true); break;
case "HostedServiceListPublisherExtensions" : WriteObject(CreateHostedServiceListPublisherExtensionsParameters(), true); break;
case "HostedServiceUpdate" : WriteObject(CreateHostedServiceUpdateParameters(), true); break;
case "LoadBalancerCreate" : WriteObject(CreateLoadBalancerCreateParameters(), true); break;
case "LoadBalancerDelete" : WriteObject(CreateLoadBalancerDeleteParameters(), true); break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public partial class NewAzureComputeParameterObjectCmdlet : ComputeAutomationBas
"VirtualMachineDataDiskConfigurationList",
"VirtualMachineDataVirtualHardDisk",
"VirtualMachineDataVirtualHardDiskList",
"VirtualMachineDebugSettings",
"VirtualMachineDiskCreateParameters",
"VirtualMachineDiskUpdateParameters",
"VirtualMachineDiskVirtualMachineDataDiskCreateParameters",
Expand Down Expand Up @@ -157,6 +158,7 @@ public partial class NewAzureComputeParameterObjectCmdlet : ComputeAutomationBas
"Microsoft.WindowsAzure.Management.Compute.Models.DataDiskConfigurationCreateParameters",
"Microsoft.WindowsAzure.Management.Compute.Models.DataDiskConfigurationUpdateParameters",
"Microsoft.WindowsAzure.Management.Compute.Models.DataVirtualHardDisk",
"Microsoft.WindowsAzure.Management.Compute.Models.DebugSettings",
"Microsoft.WindowsAzure.Management.Compute.Models.DeploymentChangeConfigurationParameters",
"Microsoft.WindowsAzure.Management.Compute.Models.DeploymentCreateParameters",
"Microsoft.WindowsAzure.Management.Compute.Models.DeploymentDeleteRoleInstanceParameters",
Expand Down Expand Up @@ -316,6 +318,7 @@ protected override void ProcessRecord()
case "VirtualMachineDataDiskConfigurationList" : WriteObject(new List<DataDiskConfiguration>()); break;
case "VirtualMachineDataVirtualHardDisk" : WriteObject(new DataVirtualHardDisk()); break;
case "VirtualMachineDataVirtualHardDiskList" : WriteObject(new List<DataVirtualHardDisk>()); break;
case "VirtualMachineDebugSettings" : WriteObject(new DebugSettings()); break;
case "VirtualMachineDiskCreateParameters" : WriteObject(new VirtualMachineDiskCreateParameters()); break;
case "VirtualMachineDiskUpdateParameters" : WriteObject(new VirtualMachineDiskUpdateParameters()); break;
case "VirtualMachineDiskVirtualMachineDataDiskCreateParameters" : WriteObject(new VirtualMachineDataDiskCreateParameters()); break;
Expand Down Expand Up @@ -391,6 +394,7 @@ protected override void ProcessRecord()
case "Microsoft.WindowsAzure.Management.Compute.Models.DataDiskConfigurationCreateParameters" : WriteObject(new DataDiskConfigurationCreateParameters()); break;
case "Microsoft.WindowsAzure.Management.Compute.Models.DataDiskConfigurationUpdateParameters" : WriteObject(new DataDiskConfigurationUpdateParameters()); break;
case "Microsoft.WindowsAzure.Management.Compute.Models.DataVirtualHardDisk" : WriteObject(new DataVirtualHardDisk()); break;
case "Microsoft.WindowsAzure.Management.Compute.Models.DebugSettings" : WriteObject(new DebugSettings()); break;
case "Microsoft.WindowsAzure.Management.Compute.Models.DeploymentChangeConfigurationParameters" : WriteObject(new DeploymentChangeConfigurationParameters()); break;
case "Microsoft.WindowsAzure.Management.Compute.Models.DeploymentCreateParameters" : WriteObject(new DeploymentCreateParameters()); break;
case "Microsoft.WindowsAzure.Management.Compute.Models.DeploymentDeleteRoleInstanceParameters" : WriteObject(new DeploymentDeleteRoleInstanceParameters()); break;
Expand Down
Loading