Skip to content

Commit 44b46cb

Browse files
committed
Merge pull request Azure#337 from Azure/clu
Clu
2 parents d01830f + 1a2268b commit 44b46cb

File tree

64 files changed

+44
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+44
-41
lines changed

examples/compute-management/02-VirtualMachineCreation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ subnetId="/subscriptions/$subId/resourceGroups/$groupName/providers/Microsoft.Ne
1919

2020
printf "\n4. Create network interface with:\r\nsubId='%s' \r\n& \r\nsubnetId='$subnetId'.\n" "$subId"
2121
export MSYS_NO_PATHCONV=1
22-
az networkinterface create--name test --resourcegroupname "$groupName" --location "$location" --subnetid "$subnetId"
22+
az vnet create--name test --resourcegroupname "$groupName" --location "$location" --subnetid "$subnetId"
2323
export MSYS_NO_PATHCONV=
2424

2525
nicId="/subscriptions/$subId/resourceGroups/$groupName/providers/Microsoft.Network/networkInterfaces/test"

examples/storage-management/01-Storage-Accounts.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export BASEDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
55
az reource group get -n $groupName
66
if [ $? -ne 0 ]; then
77
printf "\n Creating group %s in location %s \n" $groupName $location
8-
az group create -n "$groupName" --location "$location"
8+
az resource group create -n "$groupName" --location "$location"
99
fi
1010

1111
set -e
@@ -16,7 +16,7 @@ printf "\n1. Creating storage account %s in resrouce group %s with type %s in lo
1616
az storage account create -g "$groupName" -n "$accountName" -t "$accountType" -l "$location"
1717

1818
printf "\n2. Get account info of storage account %s in group %s\n" $accountName $groupName
19-
az storage account get -g $groupName -n $accountName > $BASEDIR/$accountName.json
19+
az storage account ls -g $groupName -n $accountName > $BASEDIR/$accountName.json
2020
[ $(cat $BASEDIR/$accountName.json | jq '.ResourceGroupName' --raw-output) == "$groupName" ]
2121
[ $(cat $BASEDIR/$accountName.json | jq '.StorageAccountName' --raw-output) == "$accountName" ]
2222
[ $(cat $BASEDIR/$accountName.json | jq '.AccountType' --raw-output) == "$accountType" ]
@@ -30,23 +30,23 @@ az storage account set -g $groupName -n $accountName -t "$accountType1" > $BASED
3030
rm -f $BASEDIR/$accountName.json
3131

3232
printf "\n4. Get account key of storage account %s in group %s\n" $accountName $groupName
33-
az storage account key get -g $groupName -n $accountName > $BASEDIR/$accountName.json
33+
az storage key ls -g $groupName -n $accountName > $BASEDIR/$accountName.json
3434
key1=$(cat $BASEDIR/$accountName.json | jq '.key1' --raw-output)
3535
key2=$(cat $BASEDIR/$accountName.json | jq '.key2' --raw-output)
3636
[ $key1 != $key2 ]
3737
rm -f $BASEDIR/$accountName.json
3838

3939
printf "\n5. Renew account key1 of storage account %s in group %s\n" $accountName $groupName
40-
az storage account key create -g $groupName -n $accountName -k "key1"
41-
az storage account key get -g $groupName -n $accountName > $BASEDIR/$accountName.json
40+
az storage key create -g $groupName -n $accountName -k "key1"
41+
az storage key ls -g $groupName -n $accountName > $BASEDIR/$accountName.json
4242
[ $(cat $BASEDIR/$accountName.json | jq '.key1' --raw-output) != $key1 ]
4343
rm -f $BASEDIR/$accountName.json
4444

4545
printf "\n6. Renew account key2 of storage account %s in group %s\n" $accountName $groupName
46-
az storage account key create -g $groupName -n $accountName -k "key2"
47-
az storage account key get -g $groupName -n $accountName > $BASEDIR/$accountName.json
46+
az storage key create -g $groupName -n $accountName -k "key2"
47+
az storage key ls -g $groupName -n $accountName > $BASEDIR/$accountName.json
4848
[ $(cat $BASEDIR/$accountName.json | jq '.key2' --raw-output) != $key2 ]
4949
rm -f $BASEDIR/$accountName.json
5050

5151
printf "\n7. Removing account %s in group %s\n" $accountName $groupName
52-
az storage account remove -g $groupName -n $accountName
52+
az storage account rm -g $groupName -n $accountName

src/CLU/Microsoft.Azure.Commands.Compute/AvailabilitySets/NewAzureAvailabilitySetCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Compute
2323
{
2424
[Cmdlet(VerbsCommon.New, ProfileNouns.AvailabilitySet)]
2525
[OutputType(typeof(PSAvailabilitySet))]
26-
[CliCommandAlias("vm availabilityset new")]
26+
[CliCommandAlias("vm availabilityset create")]
2727
public class NewAzureAvailabilitySetCommand : AvailabilitySetBaseCmdlet
2828
{
2929
[Parameter(

src/CLU/Microsoft.Azure.Commands.Compute/Extension/CustomScript/GetAzureVMCustomScriptExtensionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace Microsoft.Azure.Commands.Compute
2727
DefaultParameterSetName = GetCustomScriptExtensionParamSetName),
2828
OutputType(
2929
typeof(VirtualMachineCustomScriptExtensionContext))]
30-
[CliCommandAlias("vm customscriptextension ls")]
30+
[CliCommandAlias("vm extension script ls")]
3131
public class GetAzureVMCustomScriptExtensionCommand : VirtualMachineExtensionBaseCmdlet
3232
{
3333
protected const string GetCustomScriptExtensionParamSetName = "GetCustomScriptExtension";

src/CLU/Microsoft.Azure.Commands.Compute/Extension/CustomScript/RemoveAzureVMCustomScriptExtensionCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ namespace Microsoft.Azure.Commands.Compute
2020
{
2121
[Cmdlet(
2222
VerbsCommon.Remove,
23-
ProfileNouns.VirtualMachineCustomScriptExtension)]
24-
[CliCommandAlias("vm customscriptextension rm")]
25-
[OutputType(typeof(void))]
23+
ProfileNouns.VirtualMachineCustomScriptExtension), OutputType(typeof(void))]
24+
[CliCommandAlias("vm extension script rm")]
2625
public class RemoveAzureVMCustomScriptExtensionCommand : VirtualMachineExtensionBaseCmdlet
2726
{
2827
[Parameter(

src/CLU/Microsoft.Azure.Commands.Compute/Extension/CustomScript/SetAzureVMCustomScriptExtensionCommand.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ namespace Microsoft.Azure.Commands.Compute
3333
[Cmdlet(
3434
VerbsCommon.Set,
3535
ProfileNouns.VirtualMachineCustomScriptExtension,
36-
DefaultParameterSetName = SetCustomScriptExtensionByContainerBlobsParamSetName)]
37-
[CliCommandAlias("vm customscriptextension set")]
38-
[OutputType(typeof(void))]
36+
DefaultParameterSetName = SetCustomScriptExtensionByContainerBlobsParamSetName), OutputType(typeof(void))]
37+
[CliCommandAlias("vm extension script set")]
3938
public class SetAzureVMCustomScriptExtensionCommand : VirtualMachineExtensionBaseCmdlet
4039
{
4140
protected const string SetCustomScriptExtensionByContainerBlobsParamSetName = "SetCustomScriptExtensionByContainerAndFileNames";

src/CLU/Microsoft.Azure.Commands.Compute/Extension/VMAccess/GetAzureVMAccessExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Compute
2626
VerbsCommon.Get,
2727
ProfileNouns.VirtualMachineAccessExtension),
2828
OutputType(typeof(VirtualMachineAccessExtensionContext))]
29-
[CliCommandAlias("vm accessextension ls")]
29+
[CliCommandAlias("vm extension access ls")]
3030
public class GetAzureVMAccessExtensionCommand : VirtualMachineExtensionBaseCmdlet
3131
{
3232
[Parameter(

src/CLU/Microsoft.Azure.Commands.Compute/Extension/VMAccess/RemoveAzureVMAccessExtension.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ namespace Microsoft.Azure.Commands.Compute
2121
[Cmdlet(
2222
VerbsCommon.Remove,
2323
ProfileNouns.VirtualMachineAccessExtension)]
24-
[CliCommandAlias("vm accessextension rm")]
25-
[OutputType(typeof(void))]
26-
public class RemoveAzureVMAccessExtensionCommand : VirtualMachineExtensionBaseCmdlet
24+
[CliCommandAlias("vm extension access rm")]
25+
[OutputType(typeof(void))] public class RemoveAzureVMAccessExtensionCommand : VirtualMachineExtensionBaseCmdlet
2726
{
2827
[Parameter(
2928
Mandatory = true,

src/CLU/Microsoft.Azure.Commands.Compute/Extension/VMAccess/SetAzureVMAccessExtension.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ namespace Microsoft.Azure.Commands.Compute
2525
[Cmdlet(
2626
VerbsCommon.Set,
2727
ProfileNouns.VirtualMachineAccessExtension)]
28-
[CliCommandAlias("vm accessextension set")]
29-
[OutputType(typeof(void))]
30-
public class SetAzureVMAccessExtensionCommand : VirtualMachineExtensionBaseCmdlet
28+
[CliCommandAlias("vm extension access set")] [OutputType(typeof(void))] public class SetAzureVMAccessExtensionCommand : VirtualMachineExtensionBaseCmdlet
3129
{
3230
private const string userNameKey = "UserName";
3331
private const string passwordKey = "Password";

src/CLU/Microsoft.Azure.Commands.Compute/StorageServices/AddAzureVhdCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ namespace Microsoft.Azure.Commands.Compute.StorageServices
2828
/// Uploads a vhd as fixed disk format vhd to a blob in Microsoft Azure Storage
2929
/// </summary>
3030
[Cmdlet(VerbsCommon.Add, ProfileNouns.Vhd), OutputType(typeof(VhdUploadContext))]
31-
[CliCommandAlias("vhd add")]
32-
public class AddAzureVhdCommand : ComputeClientBaseCmdlet
31+
[CliCommandAlias("vm vhd add")] public class AddAzureVhdCommand : ComputeClientBaseCmdlet
3332
{
3433
private const int DefaultNumberOfUploaderThreads = 8;
3534

src/CLU/Microsoft.Azure.Commands.Compute/StorageServices/SaveAzureVhdCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace Microsoft.Azure.Commands.Compute.StorageServices
2525
{
2626
[Cmdlet(VerbsData.Save, ProfileNouns.Vhd), OutputType(typeof(VhdDownloadContext))]
27-
[CliCommandAlias("vhd save")]
27+
[CliCommandAlias("vm vhd save")]
2828
public class SaveAzureVhdCommand : ComputeClientBaseCmdlet
2929
{
3030
private const int DefaultNumberOfUploaderThreads = 8;

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/AddAzureVMAdditionalUnattendContentCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.Compute
3030
ProfileNouns.AdditionalUnattendContent),
3131
OutputType(
3232
typeof(PSVirtualMachine))]
33-
[CliCommandAlias("vm additional unattend content add")]
33+
[CliCommandAlias("vm config additionalunattendcontent add")]
3434
public class NewAzureAdditionalUnattendContentCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3535
{
3636
private const string defaultComponentName = "Microsoft-Windows-Shell-Setup";

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/AddAzureVMDataDiskCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Compute
2626
ProfileNouns.DataDisk),
2727
OutputType(
2828
typeof(PSVirtualMachine))]
29-
[CliCommandAlias("vm datadisk add")]
29+
[CliCommandAlias("vm config datadisk add")]
3030
public class AddAzureVMDataDiskCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3131
{
3232
[Alias("VMProfile")]

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/AddAzureVMNetworkInterfaceCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.Compute
3030
DefaultParameterSetName = NicIdParamSetName),
3131
OutputType(
3232
typeof(PSVirtualMachine))]
33-
[CliCommandAlias("vm network interface add")]
33+
[CliCommandAlias("vm config network interface add")]
3434
public class AddAzureVMNetworkInterfaceCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3535
{
3636
protected const string NicIdParamSetName = "GetNicFromNicId";

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/AddAzureVMSecretCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.Compute
3030
ProfileNouns.VaultSecretGroup),
3131
OutputType(
3232
typeof(PSVirtualMachine))]
33-
[CliCommandAlias("vm secret add")]
33+
[CliCommandAlias("vm config secret add")]
3434
public class NewAzureVaultSecretGroupCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3535
{
3636
[Alias("VMProfile")]

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/AddAzureVMSshPublicKeyCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.Compute
3030
ProfileNouns.SshPublicKey),
3131
OutputType(
3232
typeof(PSVirtualMachine))]
33-
[CliCommandAlias("vm ssh public key add")]
33+
[CliCommandAlias("vm config ssh public key add")]
3434
public class NewAzureSshPublicKeyCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3535
{
3636
[Alias("VMProfile")]

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/NewAzureVMConfigCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Compute
2525
ProfileNouns.VirtualMachineConfig),
2626
OutputType(
2727
typeof(PSVirtualMachine))]
28-
[CliCommandAlias("vm config new")]
28+
[CliCommandAlias("vm config create")]
2929
public class NewAzureVMConfigCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3030
{
3131
[Alias("ResourceName", "Name")]

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/RemoveAzureVMDataDiskCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Compute
2626
ProfileNouns.DataDisk),
2727
OutputType(
2828
typeof(PSVirtualMachine))]
29-
[CliCommandAlias("vm datadisk rm")]
29+
[CliCommandAlias("vm config datadisk rm")]
3030
public class RemoveAzureVMDataDiskCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3131
{
3232
[Alias("VMProfile")]

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/RemoveAzureVMNetworkInterfaceCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.Compute
2929
ProfileNouns.NetworkInterface),
3030
OutputType(
3131
typeof(PSVirtualMachine))]
32-
[CliCommandAlias("vm network interface rm")]
32+
[CliCommandAlias("vm config network interface rm")]
3333
public class RemoveAzureVMNetworkInterfaceCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3434
{
3535
[Alias("VMProfile")]

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/SetAzureVMBootDiagnosticsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Microsoft.Azure.Commands.Compute
3131
ProfileNouns.BootDiagnostics),
3232
OutputType(
3333
typeof(PSVirtualMachine))]
34-
[CliCommandAlias("vm bootdiagnostics set")]
34+
[CliCommandAlias("vm config bootdiagnostics set")]
3535
public class SetAzureVMBootDiagnosticsCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3636
{
3737
private const string EnableParameterSet = "EnableBootDiagnostics";

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/SetAzureVMDataDiskCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.Compute
3030
ProfileNouns.DataDisk),
3131
OutputType(
3232
typeof(PSVirtualMachine))]
33-
[CliCommandAlias("vm datadisk set")]
33+
[CliCommandAlias("vm config datadisk set")]
3434
public class SetAzureVMDataDiskCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3535
{
3636
private const string NameParameterSet = "ChangeWithName";

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/SetAzureVMOSDiskCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Microsoft.Azure.Commands.Compute
2828
DefaultParameterSetName = DefaultParamSet),
2929
OutputType(
3030
typeof(PSVirtualMachine))]
31-
[CliCommandAlias("vm os disk set")]
31+
[CliCommandAlias("vm config osdisk set")]
3232
public class SetAzureVMOSDiskCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3333
{
3434
protected const string DefaultParamSet = "DefaultParamSet";

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/SetAzureVMOperatingSystemCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace Microsoft.Azure.Commands.Compute
3434
DefaultParameterSetName = WindowsParamSet),
3535
OutputType(
3636
typeof(PSVirtualMachine))]
37-
[CliCommandAlias("vm os set")]
37+
[CliCommandAlias("vm config os set")]
3838
public class SetAzureVMOperatingSystemCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
3939
{
4040
protected const string WindowsParamSet = "Windows";

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Config/SetAzureVMSourceImage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.Compute
2424
{
2525
[Cmdlet(VerbsCommon.Set, ProfileNouns.SourceImage, DefaultParameterSetName = ImageReferenceParameterSet),
2626
OutputType(typeof(PSVirtualMachine))]
27-
[CliCommandAlias("vm source image set")]
27+
[CliCommandAlias("vm config source image set")]
2828
public class SetAzureVMSourceImageCommand : Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet
2929
{
3030
protected const string ImageReferenceParameterSet = "ImageReferenceParameterSet";

src/CLU/Microsoft.Azure.Commands.Compute/VirtualMachine/Operation/GetAzureVMBootDiagnosticsDataCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Microsoft.Azure.Commands.Compute
2929
{
3030
[Cmdlet(VerbsCommon.Get, ProfileNouns.BootDiagnosticsData, DefaultParameterSetName = WindowsParamSet)]
3131
[OutputType(typeof(PSVirtualMachine), typeof(PSVirtualMachineInstanceView))]
32-
[CliCommandAlias("vm bootdiagnostics data ls")]
32+
[CliCommandAlias("vm bootdiagnostics ls")]
3333
public class GetAzureVMBootDiagnosticsDataCommand : VirtualMachineBaseCmdlet
3434
{
3535
private const string WindowsParamSet = "WindowsParamSet";

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/GetAzureStorageAccount.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
namespace Microsoft.Azure.Commands.Management.Storage
2121
{
2222
[Cmdlet(VerbsCommon.Get, StorageAccountNounStr), OutputType(typeof(PSStorageAccount))]
23+
[CliCommandAlias("storage account ls")]
2324
public class GetAzureStorageAccountCommand : StorageAccountBaseCmdlet
2425
{
2526
[Parameter(

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/GetAzureStorageAccountKey.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
namespace Microsoft.Azure.Commands.Management.Storage
2020
{
2121
[Cmdlet(VerbsCommon.Get, StorageAccountKeyNounStr), OutputType(typeof(StorageAccountKeys))]
22+
[CliCommandAlias("storage key ls")]
2223
public class GetAzureStorageAccountKeyCommand : StorageAccountBaseCmdlet
2324
{
2425
[Parameter(

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/GetAzureStorageAccountNameAvailability.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
namespace Microsoft.Azure.Commands.Management.Storage.StorageAccount
2020
{
2121
[Cmdlet(VerbsCommon.Get, StorageAccountNameAvailabilityStr), OutputType(typeof(CheckNameAvailabilityResult))]
22+
[CliCommandAlias("storage name test")]
2223
public class GetAzureStorageAccountNameAvailability : StorageAccountBaseCmdlet
2324
{
2425
[Parameter(

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/GetAzureStorageUsage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
namespace Microsoft.Azure.Commands.Management.Storage.StorageAccount
2020
{
2121
[Cmdlet(VerbsCommon.Get, StorageUsageNounStr), OutputType(typeof(PSUsage))]
22+
[CliCommandAlias("storage usage ls")]
2223
public class GetAzureStorageUsageCommand : StorageAccountBaseCmdlet
2324
{
2425
protected override void ProcessRecord()

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/NewAzureStorageAccount.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
namespace Microsoft.Azure.Commands.Management.Storage
2424
{
2525
[Cmdlet(VerbsCommon.New, StorageAccountNounStr), OutputType(typeof(PSStorageAccount))]
26+
[CliCommandAlias("storage account create")]
2627
public class NewAzureStorageAccountCommand : StorageAccountBaseCmdlet
2728
{
2829
[Parameter(

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/NewAzureStorageAccountKey.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
namespace Microsoft.Azure.Commands.Management.Storage
2121
{
2222
[Cmdlet(VerbsCommon.New, StorageAccountKeyNounStr), OutputType(typeof(StorageAccountKeys))]
23+
[CliCommandAlias("storage key create")]
2324
public class NewAzureStorageAccountKeyCommand : StorageAccountBaseCmdlet
2425
{
2526
private const string Key1 = "Key1";

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/RemoveAzureStorageAccount.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace Microsoft.Azure.Commands.Management.Storage
2121
/// Lists all storage services underneath the subscription.
2222
/// </summary>
2323
[Cmdlet(VerbsCommon.Remove, StorageAccountNounStr)]
24+
[CliCommandAlias("storage account rm")]
2425
public class RemoveAzureStorageAccountCommand : StorageAccountBaseCmdlet
2526
{
2627
[Parameter(

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/SetAzureRmCurrentStorageAccount.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace Microsoft.Azure.Commands.Management.Storage
2222
{
2323
[Cmdlet(VerbsCommon.Set, "AzureRmCurrentStorageAccount", DefaultParameterSetName=ResourceNameParameterSet),
2424
OutputType(typeof(string))]
25+
[CliCommandAlias("storage account current set")]
2526
public class SetAzureRmCurrentStorageAccount : StorageAccountBaseCmdlet
2627
{
2728
private const string StorageContextParameterSet = "UsingStorageContext";

src/CLU/Microsoft.Azure.Commands.Management.Storage/StorageAccount/SetAzureStorageAccount.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace Microsoft.Azure.Commands.Management.Storage
2626
/// Lists all storage services underneath the subscription.
2727
/// </summary>
2828
[Cmdlet(VerbsCommon.Set, StorageAccountNounStr, DefaultParameterSetName = UpdateAccountTypeParamSet), OutputType(typeof(StorageModels.StorageAccount))]
29+
[CliCommandAlias("storage account set")]
2930
public class SetAzureStorageAccountCommand : StorageAccountBaseCmdlet
3031
{
3132
protected const string UpdateAccountTypeParamSet = "UpdateAccountType";

0 commit comments

Comments
 (0)