Skip to content

Commit a3b2e12

Browse files
committed
rename sealed cmdlet classes, fix one test script typo
1 parent 68d6d9c commit a3b2e12

File tree

6 files changed

+6
-1
lines changed

6 files changed

+6
-1
lines changed

examples/resource-management/01-ResourceGroups.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName"
66
az resourcemanager group create -n "$groupName" --location "$location"
77

88
printf "\n2. Updating the group %s with tags.\n" "$groupName"
9-
resourcemanager group set -n "$groupName" --tags "[{\"Value\":\"testval\",\"Name\":\"testtag\"}]"
9+
az resourcemanager group set -n "$groupName" --tags "[{\"Value\":\"testval\",\"Name\":\"testtag\"}]"
1010

1111
printf "\n3. Get information about resource group : %s.\n" "$groupName"
1212
resourceGroupInfo=`az resourcemanager group ls -n $groupName`

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/InvokeAzureResourceActionCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2626
/// </summary>
2727
[Cmdlet(VerbsLifecycle.Invoke, "AzureRmResourceAction", SupportsShouldProcess = true, DefaultParameterSetName = ResourceManipulationCmdletBase.ResourceIdParameterSet),
2828
OutputType(typeof(PSResourceObject))]
29+
[CliCommandAlias("resourcemanager;resource;action;invoke")]
2930
public sealed class InvokAzureResourceActionCmdlet : ResourceManipulationCmdletBase
3031
{
3132
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Resource/FindAzureResourceCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3131
/// Cmdlet to get existing resources from ARM cache.
3232
/// </summary>
3333
[Cmdlet(VerbsCommon.Find, "AzureRmResource", DefaultParameterSetName = FindAzureResourceCmdlet.ListResourcesParameterSet), OutputType(typeof(PSResourceObject))]
34+
[CliCommandAlias("resourcemanager;resource;find")]
3435
public sealed class FindAzureResourceCmdlet : ResourceManagerCmdletBase
3536
{
3637
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Resource/GetAzureResourceCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3131
/// Cmdlet to get existing resources.
3232
/// </summary>
3333
[Cmdlet(VerbsCommon.Get, "AzureRmResource", DefaultParameterSetName = GetAzureResourceCmdlet.ParameterlessSet), OutputType(typeof(PSResourceObject))]
34+
[CliCommandAlias("resourcemanager;resource;ls")]
3435
public sealed class GetAzureResourceCmdlet : ResourceManagerCmdletBase
3536
{
3637
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Resource/NewAzureResourceCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3232
SupportsShouldProcess = true,
3333
DefaultParameterSetName = ResourceManipulationCmdletBase.ResourceIdParameterSet),
3434
OutputType(typeof(PSResourceObject))]
35+
[CliCommandAlias("resourcemanager;resource;create")]
3536
public sealed class NewAzureResourceCmdlet : ResourceManipulationCmdletBase
3637
{
3738
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Resource/SetAzureResourceCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
3030
/// </summary>
3131
[Cmdlet(VerbsCommon.Set, "AzureRmResource", SupportsShouldProcess = true, DefaultParameterSetName = ResourceManipulationCmdletBase.ResourceIdParameterSet),
3232
OutputType(typeof(PSResourceObject))]
33+
[CliCommandAlias("resourcemanager;resource;set")]
3334
public sealed class SetAzureResourceCmdlet : ResourceManipulationCmdletBase
3435
{
3536
/// <summary>

0 commit comments

Comments
 (0)