Skip to content

Commit c8d15f3

Browse files
committed
Adding Aliases and changing the Operation type to create from add
1 parent 7d169a1 commit c8d15f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ServiceManagement/StorSimple/Commands.StorSimple/Cmdlets/VirtualDevice/NewAzureStorSimpleVirtualDeviceCommand.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ namespace Microsoft.WindowsAzure.Commands.StorSimple.Cmdlets.VirtualDevice
2222
public class NewAzureStorSimpleVirtualDeviceCommand : StorSimpleCmdletBase
2323
{
2424
[Parameter(Position = 0, Mandatory = true, HelpMessage = StorSimpleCmdletHelpMessage.VirtualDeviceName)]
25+
[Alias("Name")]
2526
[ValidateNotNullOrEmpty]
2627
public string VirtualDeviceName { get; set; }
2728

2829
[Parameter(Position = 1, Mandatory = true, HelpMessage = StorSimpleCmdletHelpMessage.VirtualNetworkName)]
30+
[Alias("VNetName")]
2931
[ValidateNotNullOrEmpty]
3032
public string VirtualNetworkName { get; set; }
3133

@@ -56,7 +58,7 @@ public override void ExecuteCmdlet()
5658

5759
var deviceJobResponse = StorSimpleClient.CreateVirtualDevice(applianceProvisiongInfo);
5860

59-
HandleDeviceJobResponse(deviceJobResponse, "add");
61+
HandleDeviceJobResponse(deviceJobResponse, "create");
6062
}
6163
catch (Exception exception)
6264
{

0 commit comments

Comments
 (0)