Skip to content

Update the prefix of vmss helper cmdlet names from Azure to AzureRm #118

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 1 commit into from
Feb 5, 2016
Merged
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 @@ -92,15 +92,15 @@ function Test-VirtualMachineScaleSet
$aucSetting = "AutoLogon";
$aucContent = "<UserAccounts><AdministratorPassword><Value>password</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>";

$ipCfg = New-AzureVmssIPConfigurationConfig -Name 'test' -LoadBalancerBackendAddressPoolsId $null -SubnetId $subnetId;
$vmss = New-AzureVmssConfig -Location $loc -SkuCapacity 2 -SkuName 'Standard_A0' -UpgradePolicyMode 'automatic' -NetworkInterfaceConfiguration $netCfg `
| Add-AzureVmssNetworkInterfaceConfiguration -Name 'test' -Primary $true -IPConfiguration $ipCfg `
| Set-AzureVmssOSProfile -ComputerNamePrefix 'test' -AdminUsername $adminUsername -AdminPassword $adminPassword `
| Set-AzureVmssStorageProfile -Name 'test' -CreateOption 'FromImage' -Caching 'None' `
$ipCfg = New-AzureRmVmssIPConfigurationConfig -Name 'test' -LoadBalancerBackendAddressPoolsId $null -SubnetId $subnetId;
$vmss = New-AzureRmVmssConfig -Location $loc -SkuCapacity 2 -SkuName 'Standard_A0' -UpgradePolicyMode 'automatic' -NetworkInterfaceConfiguration $netCfg `
| Add-AzureRmVmssNetworkInterfaceConfiguration -Name 'test' -Primary $true -IPConfiguration $ipCfg `
| Set-AzureRmVmssOSProfile -ComputerNamePrefix 'test' -AdminUsername $adminUsername -AdminPassword $adminPassword `
| Set-AzureRmVmssStorageProfile -Name 'test' -CreateOption 'FromImage' -Caching 'None' `
-ImageReferenceOffer $imgRef.Offer -ImageReferenceSku $imgRef.Skus -ImageReferenceVersion $imgRef.Version `
-ImageReferencePublisher $imgRef.PublisherName -VhdContainer $vhdContainer `
| Add-AzureVmssAdditionalUnattendContent -ComponentName $aucComponentName -Content $aucContent -PassName $aucPassName -SettingName $aucSetting `
| Remove-AzureVmssAdditionalUnattendContent -ComponentName $aucComponentName;
| Add-AzureRmVmssAdditionalUnattendContent -ComponentName $aucComponentName -Content $aucContent -PassName $aucPassName -SettingName $aucSetting `
| Remove-AzureRmVmssAdditionalUnattendContent -ComponentName $aucComponentName;

$st = New-AzureRmVmss -ResourceGroupName $rgname -Name $vmssName -VirtualMachineScaleSetCreateOrUpdateParameter $vmss;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Add", "AzureVmssAdditionalUnattendContent")]
[Cmdlet("Add", "AzureRmVmssAdditionalUnattendContent")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class AddAzureVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class AddAzureRmVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Add", "AzureVmssExtension")]
[Cmdlet("Add", "AzureRmVmssExtension")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class AddAzureVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class AddAzureRmVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Add", "AzureVmssListener")]
[Cmdlet("Add", "AzureRmVmssListener")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class AddAzureVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class AddAzureRmVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Add", "AzureVmssNetworkInterfaceConfiguration")]
[Cmdlet("Add", "AzureRmVmssNetworkInterfaceConfiguration")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class AddAzureVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class AddAzureRmVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Add", "AzureVmssPublicKey")]
[Cmdlet("Add", "AzureRmVmssPublicKey")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class AddAzureVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class AddAzureRmVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Add", "AzureVmssSecret")]
[Cmdlet("Add", "AzureRmVmssSecret")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class AddAzureVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class AddAzureRmVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("New", "AzureVmssConfig")]
[Cmdlet("New", "AzureRmVmssConfig")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class NewAzureVmssConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class NewAzureRmVmssConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("New", "AzureVmssIpConfigurationConfig")]
[Cmdlet("New", "AzureRmVmssIpConfigurationConfig")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class NewAzureVmssIpConfigurationConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class NewAzureRmVmssIpConfigurationConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("New", "AzureVmssVaultCertificateConfig")]
[Cmdlet("New", "AzureRmVmssVaultCertificateConfig")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class NewAzureVmssVaultCertificateConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class NewAzureRmVmssVaultCertificateConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Remove", "AzureVmssAdditionalUnattendContent")]
[Cmdlet("Remove", "AzureRmVmssAdditionalUnattendContent")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class RemoveAzureVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class RemoveAzureRmVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Remove", "AzureVmssExtension")]
[Cmdlet("Remove", "AzureRmVmssExtension")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class RemoveAzureVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class RemoveAzureRmVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Remove", "AzureVmssListener")]
[Cmdlet("Remove", "AzureRmVmssListener")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class RemoveAzureVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class RemoveAzureRmVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Remove", "AzureVmssNetworkInterfaceConfiguration")]
[Cmdlet("Remove", "AzureRmVmssNetworkInterfaceConfiguration")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class RemoveAzureVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class RemoveAzureRmVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Remove", "AzureVmssPublicKey")]
[Cmdlet("Remove", "AzureRmVmssPublicKey")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class RemoveAzureVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class RemoveAzureRmVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Remove", "AzureVmssSecret")]
[Cmdlet("Remove", "AzureRmVmssSecret")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class RemoveAzureVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class RemoveAzureRmVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Set", "AzureVmssOsProfile")]
[Cmdlet("Set", "AzureRmVmssOsProfile")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class SetAzureVmssOsProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class SetAzureRmVmssOsProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

namespace Microsoft.Azure.Commands.Compute.Automation
{
[Cmdlet("Set", "AzureVmssStorageProfile")]
[Cmdlet("Set", "AzureRmVmssStorageProfile")]
[OutputType(typeof(VirtualMachineScaleSet))]
public class SetAzureVmssStorageProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
public class SetAzureRmVmssStorageProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
{
[Parameter(
Mandatory = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function Write-PowershellCmdlet

$parameter_cmdlet_usings += $ModelNameSpace;

$cmdlet_noun = "Azure";
$cmdlet_noun = "AzureRm";
$cmdlet_noun += Get-SimpleNoun $ObjectName;

if ($TreeNode.Name -ne ${ObjectName})
Expand Down