Skip to content

Commit d01830f

Browse files
committed
Merge pull request Azure#335 from Azure/clu
Clu
2 parents 43f5113 + 4550647 commit d01830f

File tree

102 files changed

+107
-106
lines changed

Some content is hidden

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

102 files changed

+107
-106
lines changed

examples/compute-management/02-VirtualMachineCreation.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33
printf "\n=== Managing Virtual Machine Creation in Azure Compute ===\n"
44

55
printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName" "$location"
6-
az resourcemanager group create -n "$groupName" --location "$location"
6+
az resource group create -n "$groupName" --location "$location"
77

88
printf "\n2. Creating a new storage account '%s' in type '%s'.\n" "$storageAccountName" "$storageAccountType"
99
az storage account create--resourcegroupname "$groupName" --name "$storageAccountName" --location "$location" --type "$storageAccountType"
@@ -33,4 +33,4 @@ printf "\n5. Create virtual machine with\r\nnicId='%s'\r\nvhdUri='%s'\r\nvmStr='
3333
az vm create--resourcegroupname "$groupName" --location "$location" --vmprofile "$vmStr"
3434

3535
printf "\n6. Removing resource group: %s.\n" "$groupName"
36-
az resourcemanager group rm -n "$groupName" -f
36+
az resource group rm -n "$groupName" -f

examples/resource-management/01-ResourceGroups.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ set -e
33
printf "\n=== Managing Resource Groups in Azure ===\n"
44

55
printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName" "$location"
6-
az resourcemanager group create -n "$groupName" --location "$location"
6+
az resource group create -n "$groupName" --location "$location"
77

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

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

1414
printf "\nValidating resource group name is: %s\n" "$groupName"
1515
[ $(echo $resourceGroupInfo | jq '.ResourceGroupName' --raw-output) == "$groupName" ]
1616

1717
printf "\n4. Listing all resource groups in the subscription.\n"
18-
az resourcemanager group ls
18+
az resource group ls
1919

2020
printf "\n5. Removing resource group: %s.\n" "$groupName"
21-
az resourcemanager group rm -n "$groupName" -f
21+
az resource group rm -n "$groupName" -f

examples/resource-management/02-Resource.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@ set -e
33
printf "\n=== Managing Resources in Azure ===\n"
44

55
printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName" "$location"
6-
az resourcemanager group create --name "$groupName" --location "$location"
6+
az resource group create --name "$groupName" --location "$location"
77
destinationGroupName=$groupName"Destination"
88

99
printf "\n2. Registering Resource Provider Namespace.\n"
1010
providerNamespace="Providers.Test"
11-
az resourcemanager resource provider register --ProviderNamespace $providerNamespace --Force
11+
az resource provider register --ProviderNamespace $providerNamespace --Force
1212

1313
printf "\n3. Creating a new Resource: %s.\n" "$resourceName"
1414
resourceType="$providerNamespace/statefulResources"
1515
tags='[{"Name": "testtag", "Value": "testvalue"}]'
1616
properties='{"administratorLogin": "adminuser", "administratorLoginPassword": "P@ssword1"}'
1717
apiversion="2014-04-01"
18-
az resourcemanager resource create --Name $resourceName --Location $location --Tags "$tags" --ResourceGroupName $groupName --ResourceType $resourceType --PropertyObject "$properties" --ApiVersion $apiversion --Force
18+
az resource create --Name $resourceName --Location $location --Tags "$tags" --ResourceGroupName $groupName --ResourceType $resourceType --PropertyObject "$properties" --ApiVersion $apiversion --Force
1919

2020
printf "\n4. Get information about Resource : %s.\n" "$resourceName"
21-
resourceInfo=$(az resourcemanager resource ls -n $resourceName)
21+
resourceInfo=$(az resource ls -n $resourceName)
2222
printf "\nValidating Resource name is: %s\n" "$resourceName"
2323
[ $(echo $resourceInfo | jq '.Name' --raw-output) == "$resourceName" ]
2424

2525
printf "\n5. Find Resource with name '%s' and type '%s'.\n" "$resourceName" "$resourceType"
26-
foundResource=$(az resourcemanager resource find -n "$resourceName" -t $resourceType)
26+
foundResource=$(az resource find -n "$resourceName" -t $resourceType)
2727
printf "\nValidating Resource name is: %s.\n" "$resourceName"
2828
[ $(echo $foundResource | jq '.Name' --raw-output) == "$resourceName" ]
2929

3030
printf "\n6. Update Resource.\n"
3131
tagsUpdate='[{"Name": "testtagUpdated", "Value": "testvalueUpdated"}]'
32-
az resourcemanager resource set --ResourceGroupName $groupName --ResourceName $resourceName --ResourceType $resourceType --Tags "$tagsUpdate" -f
32+
az resource set --ResourceGroupName $groupName --ResourceName $resourceName --ResourceType $resourceType --Tags "$tagsUpdate" -f
3333

3434
printf "\n7. Move Resource to resource group: %s.\n" "$destinationGroupName"
35-
az resourcemanager group create --name "$destinationGroupName" --location "$location"
35+
az resource group create --name "$destinationGroupName" --location "$location"
3636
resourceId=$(echo $resourceInfo | jq '.ResourceId')
3737
arrayId="[$resourceId]"
38-
az resourcemanager resource move -g "$destinationGroupName" --ResourceId "$arrayId" -f
38+
az resource move -g "$destinationGroupName" --ResourceId "$arrayId" -f
3939

4040
printf "\n8. Removing resource: %s.\n" "$resourceName"
41-
foundResource=$(az resourcemanager resource find -n "$resourceName" -t $resourceType)
41+
foundResource=$(az resource find -n "$resourceName" -t $resourceType)
4242
resourceId=$(echo $foundResource | jq '.ResourceId' --raw-output)
4343
echo $resourceId
4444
export MSYS_NO_PATHCONV=1
45-
az resourcemanager resource rm --Id "$resourceId" -f
45+
az resource rm --Id "$resourceId" -f
4646
export MSYS_NO_PATHCONV=

examples/resource-management/03-Deployments.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ set -e
33
printf "\n=== Provisioning Deployments in Azure ===\n"
44

55
printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName" "$location"
6-
az resourcemanager group create --name "$groupName" --location "$location"
6+
az resource group create --name "$groupName" --location "$location"
77

88
printf "\n2. Test template with dynamic parameters\n"
9-
az resourcemanager group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --siteName "$resourceName" --hostingPlanName "$resourceName" --siteLocation "$location" --workerSize "0"
9+
az resource group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --siteName "$resourceName" --hostingPlanName "$resourceName" --siteLocation "$location" --workerSize "0"
1010

1111
printf "\n3. Test template with JSON parameter object\n"
12-
az resourcemanager group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --templateparameterobject "{\"siteName\":\"$resourceName\",\"hostingPlanName\":\"$resourceName\",\"siteLocation\":\"$location\",\"workerSize\": 0 }"
12+
az resource group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --templateparameterobject "{\"siteName\":\"$resourceName\",\"hostingPlanName\":\"$resourceName\",\"siteLocation\":\"$location\",\"workerSize\": 0 }"
1313

1414
printf "\n4. Provisioning Deployment\n"
15-
deploymentInfo=`az resourcemanager group deployment create --Name "$resourceName" --ResourceGroupName "$groupName" --TemplateFile $BASEDIR/sampleTemplate.json --TemplateParameterFile $BASEDIR/sampleTemplateParams.json`
15+
deploymentInfo=`az resource group deployment create --Name "$resourceName" --ResourceGroupName "$groupName" --TemplateFile $BASEDIR/sampleTemplate.json --TemplateParameterFile $BASEDIR/sampleTemplateParams.json`
1616
echo $deploymentInfo

examples/resource-management/04-RoleAssignments.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ set -e
33
printf "\n=== Managing Role Assignments in Azure ===\n"
44

55
printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName" "$location"
6-
az resourcemanager group create --name "$groupName" --location "$location"
6+
az resource group create --name "$groupName" --location "$location"
77

88
printf "\n2. Creating a new Role Assignment.\n"
99
export MSYS_NO_PATHCONV=1
10-
users=$(az activedirectory users ls)
10+
users=$(az ad users ls)
1111
userId=$(echo $users | cat | jq '.[0].Id' -s --raw-output)
1212
echo "UserID: $userId"
13-
roleDefinitions=$(az networksecurityrole definition ls)
13+
roleDefinitions=$(az resource role definition ls)
1414
roleDefinitionId=$(echo $roleDefinitions | cat | jq '.[0].Id' -s --raw-output)
1515
echo "RoleDefinitionId: $roleDefinitionId"
1616
subsciptions=$(az subscription ls)
1717
subscriptionId=$(echo $subsciptions | cat | jq '.[0].SubscriptionId' -s --raw-output)
1818
scope="/subscriptions/$subscriptionId/resourceGroups/$groupName"
1919
echo "Scope: $scope"
20-
az networksecurityrole assignment create --ObjectId "$userId" --RoleDefinitionId "$roleDefinitionId" --Scope "$scope"
20+
az resource role assignment create --ObjectId "$userId" --RoleDefinitionId "$roleDefinitionId" --Scope "$scope"
2121

2222
printf "\n3. Delete last created Role Assignment.\n"
23-
assignments=$(az networksecurityrole assignment ls)
23+
assignments=$(az resource role assignment ls)
2424
assignmentId=$(echo $assignments | cat | jq '.[-1:][0].ObjectId' -s --raw-output)
2525
echo "Deleting assignment: $assignmentId"
26-
az networksecurityrole assignment rm --ObjectId "$assignmentId" --Scope "$scope" --RoleDefinitionId "$roleDefinitionId" -f
26+
az resource role assignment rm --ObjectId "$assignmentId" --Scope "$scope" --RoleDefinitionId "$roleDefinitionId" -f
2727
export MSYS_NO_PATHCONV=

examples/resource-management/05-RoleDefinitions.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ set -e
33
printf "\n=== Managing Role Definitions in Azure ===\n"
44

55
printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName" "$location"
6-
az resourcemanager group create --name "$groupName" --location "$location"
6+
az resource group create --name "$groupName" --location "$location"
77

88
printf "\n2. Creating a new Role Definition.\n"
9-
roleDefinition=$(az networksecurityrole definition create --inputfile $BASEDIR/roleDefinition.json)
9+
roleDefinition=$(az resource role definition create --inputfile $BASEDIR/roleDefinition.json)
1010

1111
printf "\n3. Get information about Role Definitions.\n"
1212
roleDefinitionName=$(echo $roleDefinition | jq '.Name' --raw-output)
13-
az networksecurityrole definition ls -n $roleDefinitionName
13+
az resource role definition ls -n $roleDefinitionName
1414

1515
printf "\n4. Update Role Definition.\n"
1616
export MSYS_NO_PATHCONV=1
1717
updatedRoleDefinition=$(echo $roleDefinition | jq '.Actions |= .+ ["Microsoft.Authorization/*/write"]')
18-
az networksecurityrole definition set --Role "$updatedRoleDefinition"
18+
az resource role definition set --Role "$updatedRoleDefinition"
1919

2020
printf "\n5. Delete Role Definition.\n"
2121
roleDefinitionId=$(echo $roleDefinition | jq '.Id' --raw-output)
22-
az networksecurityrole definition rm --Id $roleDefinitionId --PassThru -f
22+
az resource role definition rm --Id $roleDefinitionId --PassThru -f
2323
export MSYS_NO_PATHCONV=

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
printf "\n=== Managing Storage Accounts Resources in Azure ===\n"
33
export BASEDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
44

5-
azure group get -n $groupName
5+
az reource group get -n $groupName
66
if [ $? -ne 0 ]; then
77
printf "\n Creating group %s in location %s \n" $groupName $location
8-
azure group create -n "$groupName" --location "$location"
8+
az group create -n "$groupName" --location "$location"
99
fi
1010

1111
set -e
1212
accountName=`randomName $groupName`
1313
accountType="Standard_GRS"
1414

1515
printf "\n1. Creating storage account %s in resrouce group %s with type %s in location %s \n" $accountName $groupName $accountType $location
16-
azure storage account new -g "$groupName" -n "$accountName" -t "$accountType" -l "$location"
16+
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-
azure storage account get -g $groupName -n $accountName > $BASEDIR/$accountName.json
19+
az storage account get -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" ]
@@ -25,28 +25,28 @@ rm -f $BASEDIR/$accountName.json
2525

2626
accountType1="Standard_RAGRS"
2727
printf "\n3. Set account type from %s to %s of storage account %s in group %s\n" $accountType $accountType1 $accountName $groupName
28-
azure storage account set -g $groupName -n $accountName -t "$accountType1" > $BASEDIR/$accountName.json
28+
az storage account set -g $groupName -n $accountName -t "$accountType1" > $BASEDIR/$accountName.json
2929
[ $(cat $BASEDIR/$accountName.json | jq '.AccountType' --raw-output) == "$accountType1" ]
3030
rm -f $BASEDIR/$accountName.json
3131

3232
printf "\n4. Get account key of storage account %s in group %s\n" $accountName $groupName
33-
azure storage account key get -g $groupName -n $accountName > $BASEDIR/$accountName.json
33+
az storage account key get -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-
azure storage account key new -g $groupName -n $accountName -k "key1"
41-
azure storage account key get -g $groupName -n $accountName > $BASEDIR/$accountName.json
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
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-
azure storage account key new -g $groupName -n $accountName -k "key2"
47-
azure storage account key get -g $groupName -n $accountName > $BASEDIR/$accountName.json
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
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-
azure storage account remove -g $groupName -n $accountName
52+
az storage account remove -g $groupName -n $accountName

examples/virtual-hard-disk/01-VirtualHardDisks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ set -e
33
printf "\n=== Managing Virtual Hard Disks in Azure Compute ===\n"
44

55
printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName" "$location"
6-
az resourcemanager group create -n "$groupName" --location "$location"
6+
az resource group create -n "$groupName" --location "$location"
77

88
printf "\n2. Creating a new storage account '%s' in type '%s'.\n" "$storageAccountName" "$storageAccountType"
9-
az storage account new --resourcegroupname "$groupName" --name "$storageAccountName" --location "$location" --type "$storageAccountType"
9+
az storage account create --resourcegroupname "$groupName" --name "$storageAccountName" --location "$location" --type "$storageAccountType"
1010

1111
printf "\n3. Uploading a virtual hard disk to: %s.\n" "$storageAccountName"
1212
az vhd add -o --resourcegroupname "$groupName" --destination https://"$storageAccountName".blob.core.windows.net/test/test.vhd --localfilepath $BASEDIR/test.vhd
@@ -25,4 +25,4 @@ else
2525
fi
2626

2727
printf "\n6. Removing resource group: %s.\n" "$groupName"
28-
az resourcemanager group rm -n "$groupName" -f
28+
az resource group rm -n "$groupName" -f

examples/webapp-management/01-AppServicePlan.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tier="Standard"
99
size="Medium"
1010
capacity=2
1111
skuName="S2"
12-
az resourcemanager group create --name "$groupName" --location "$location"
12+
az resource group create --name "$groupName" --location "$location"
1313

1414
printf "\n1. Create a new app service plan %s " "$whpName"
1515
az appservice plan create -n "$whpName" -g "$groupName" -l "$location" --tier "$tier" --size "$size" --workers "$capacity"

examples/webapp-management/02-WebAppSlot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tier2="Premium"
1818
apiversion="2015-08-01"
1919
resourceType="Microsoft.Web/sites"
2020

21-
az resourcemanager group create --name "$groupName" --location "$location"
21+
az resource group create --name "$groupName" --location "$location"
2222

2323
printf "\n1. Create a new app service plan %s " "$planName1"
2424
az appservice plan create -n "$planName1" -g "$groupName" -l "$location" --tier "$tier1"
@@ -168,4 +168,4 @@ az appservice slot rm -g "$groupName" -n "$appName1" --slot "$slotname1" --force
168168
az appservice slot rm -g "$groupName" -n "$appName1" --slot "$slotname2" --force
169169

170170
printf "\n23. Remove resource group: %s." "$groupName"
171-
az resourcemanager group rm --name "$groupName" --force
171+
az resource group rm --name "$groupName" --force

examples/webapp-management/03-WebApp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
printf "\n=== Managing Web Apps in Azure ===\n"
33

44
printf "\nSetup: Creating a new resource group: %s at location: %s.\n" "$groupName" "$location"
5-
az resourcemanager group create --name "$groupName" --location "$location"
5+
az resource group create --name "$groupName" --location "$location"
66

77
slotname1="staging"
88
slotname2="testing"
@@ -175,4 +175,4 @@ az appservice rm -g "$groupName" -n "$appName3" -f
175175
#az appservice rm -g "$groupName" -n "$appName4" -f
176176

177177
printf "\n30:Remove the resource group: %s.\n" "$groupName"
178-
deleterg=`az resourcemanager group rm -n "$groupName" --force`
178+
deleterg=`az resource group rm -n "$groupName" --force`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2626
/// Finds the resource group.
2727
/// </summary>
2828
[Cmdlet(VerbsCommon.Find, "AzureRmResourceGroup"), OutputType(typeof(PSObject))]
29-
[CliCommandAlias("resourcemanager group find")]
29+
[CliCommandAlias("resource group find")]
3030
public class FindAzureResourceGroupCmdlet : ResourceManagerCmdletBase
3131
{
3232
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The tag filter for the OData query. The expected format is @{Name = 'tagName'} or @{Name = 'tagName'; Value = 'tagValue'}.")]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2626
/// Gets the deployment operation.
2727
/// </summary>
2828
[Cmdlet(VerbsCommon.Get, "AzureRmResourceGroupDeploymentOperation"), OutputType(typeof(PSResourceObject))]
29-
[CliCommandAlias("resourcemanager group deployment operation ls")]
29+
[CliCommandAlias("resource group deployment operation ls")]
3030
public class GetAzureResourceGroupDeploymentOperationCmdlet : ResourceManagerCmdletBase
3131
{
3232
/// <summary>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +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")]
29+
[CliCommandAlias("resource action invoke")]
3030
public sealed class InvokAzureResourceActionCmdlet : ResourceManipulationCmdletBase
3131
{
3232
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Lock/GetAzureResourceLockCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2424
/// Gets the resource lock.
2525
/// </summary>
2626
[Cmdlet(VerbsCommon.Get, "AzureRmResourceLock"), OutputType(typeof(ResourceLock<JToken>))]
27-
[CliCommandAlias("resourcemanager resource lock ls")]
27+
[CliCommandAlias("resource lock ls")]
2828
public class GetAzureResourceLockCmdlet : ResourceLockManagementCmdletBase
2929
{
3030
/// <summary>

src/CLU/Commands.ResourceManager.Cmdlets/Implementation/Lock/NewAzureResourceLockCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2424
/// </summary>
2525
[Cmdlet(VerbsCommon.New, "AzureRmResourceLock", SupportsShouldProcess = true, DefaultParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock),
2626
OutputType(typeof(ResourceLock<JToken>))]
27-
[CliCommandAlias("resourcemanager resource lock create")]
27+
[CliCommandAlias("resource lock create")]
2828
public class NewAzureResourceLockCmdlet : ResourceLockManagementCmdletBase
2929
{
3030
/// <summary>

0 commit comments

Comments
 (0)