Skip to content

Commit 5537cb8

Browse files
committed
Merge pull request #118 from hyonholee/vmss
Update the prefix of vmss helper cmdlet names from Azure to AzureRm
2 parents 6819f3c + 02b0981 commit 5537cb8

19 files changed

+42
-42
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineScaleSetTests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ function Test-VirtualMachineScaleSet
9292
$aucSetting = "AutoLogon";
9393
$aucContent = "<UserAccounts><AdministratorPassword><Value>password</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>";
9494

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Add", "AzureVmssAdditionalUnattendContent")]
31+
[Cmdlet("Add", "AzureRmVmssAdditionalUnattendContent")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class AddAzureVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class AddAzureRmVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Add", "AzureVmssExtension")]
31+
[Cmdlet("Add", "AzureRmVmssExtension")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class AddAzureVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class AddAzureRmVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Add", "AzureVmssListener")]
31+
[Cmdlet("Add", "AzureRmVmssListener")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class AddAzureVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class AddAzureRmVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Add", "AzureVmssNetworkInterfaceConfiguration")]
31+
[Cmdlet("Add", "AzureRmVmssNetworkInterfaceConfiguration")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class AddAzureVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class AddAzureRmVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Add", "AzureVmssPublicKey")]
31+
[Cmdlet("Add", "AzureRmVmssPublicKey")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class AddAzureVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class AddAzureRmVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Add", "AzureVmssSecret")]
31+
[Cmdlet("Add", "AzureRmVmssSecret")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class AddAzureVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class AddAzureRmVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("New", "AzureVmssConfig")]
31+
[Cmdlet("New", "AzureRmVmssConfig")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class NewAzureVmssConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class NewAzureRmVmssConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("New", "AzureVmssIpConfigurationConfig")]
31+
[Cmdlet("New", "AzureRmVmssIpConfigurationConfig")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class NewAzureVmssIpConfigurationConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class NewAzureRmVmssIpConfigurationConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("New", "AzureVmssVaultCertificateConfig")]
31+
[Cmdlet("New", "AzureRmVmssVaultCertificateConfig")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class NewAzureVmssVaultCertificateConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class NewAzureRmVmssVaultCertificateConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Remove", "AzureVmssAdditionalUnattendContent")]
31+
[Cmdlet("Remove", "AzureRmVmssAdditionalUnattendContent")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class RemoveAzureVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class RemoveAzureRmVmssAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Remove", "AzureVmssExtension")]
31+
[Cmdlet("Remove", "AzureRmVmssExtension")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class RemoveAzureVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class RemoveAzureRmVmssExtensionCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Remove", "AzureVmssListener")]
31+
[Cmdlet("Remove", "AzureRmVmssListener")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class RemoveAzureVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class RemoveAzureRmVmssListenerCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Remove", "AzureVmssNetworkInterfaceConfiguration")]
31+
[Cmdlet("Remove", "AzureRmVmssNetworkInterfaceConfiguration")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class RemoveAzureVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class RemoveAzureRmVmssNetworkInterfaceConfigurationCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Remove", "AzureVmssPublicKey")]
31+
[Cmdlet("Remove", "AzureRmVmssPublicKey")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class RemoveAzureVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class RemoveAzureRmVmssPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Remove", "AzureVmssSecret")]
31+
[Cmdlet("Remove", "AzureRmVmssSecret")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class RemoveAzureVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class RemoveAzureRmVmssSecretCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Set", "AzureVmssOsProfile")]
31+
[Cmdlet("Set", "AzureRmVmssOsProfile")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class SetAzureVmssOsProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class SetAzureRmVmssOsProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
namespace Microsoft.Azure.Commands.Compute.Automation
3030
{
31-
[Cmdlet("Set", "AzureVmssStorageProfile")]
31+
[Cmdlet("Set", "AzureRmVmssStorageProfile")]
3232
[OutputType(typeof(VirtualMachineScaleSet))]
33-
public class SetAzureVmssStorageProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
33+
public class SetAzureRmVmssStorageProfileCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Parameter(
3636
Mandatory = false,

src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-PowershellParameterCmdlet.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ function Write-PowershellCmdlet
404404

405405
$parameter_cmdlet_usings += $ModelNameSpace;
406406

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

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

0 commit comments

Comments
 (0)