Skip to content

Commit 72a137d

Browse files
gandhinirajHovsep
authored andcommitted
Fix New and Set ResourceLock issue by using Scope level parameter set (Azure#2607)
* Fix the parameter set for New And Set Resource Lock cmdlet * Instead of using subscription level parameter set use scope level
1 parent b2fd921 commit 72a137d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2222
/// <summary>
2323
/// The new azure resource lock cmdlet.
2424
/// </summary>
25-
[Cmdlet(VerbsCommon.New, "AzureRmResourceLock", SupportsShouldProcess = true, DefaultParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock), OutputType(typeof(PSObject))]
25+
[Cmdlet(VerbsCommon.New, "AzureRmResourceLock", SupportsShouldProcess = true, DefaultParameterSetName = ResourceLockManagementCmdletBase.ScopeLevelLock), OutputType(typeof(PSObject))]
2626
public class NewAzureResourceLockCmdlet : ResourceLockManagementCmdletBase
2727
{
2828
/// <summary>

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Lock/SetAzureResourceLockCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
1919
/// <summary>
2020
/// The set resource lock cmdlet.
2121
/// </summary>
22-
[Cmdlet(VerbsCommon.Set, "AzureRmResourceLock", SupportsShouldProcess = true, DefaultParameterSetName = ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock), OutputType(typeof(PSObject))]
22+
[Cmdlet(VerbsCommon.Set, "AzureRmResourceLock", SupportsShouldProcess = true, DefaultParameterSetName = ResourceLockManagementCmdletBase.ScopeLevelLock), OutputType(typeof(PSObject))]
2323
public class SetAzureResourceLockCmdlet : NewAzureResourceLockCmdlet
2424
{
2525
/// <summary>

0 commit comments

Comments
 (0)