Condividi tramite


ManagementLocksOperationsExtensions.DeleteAtResourceLevel Method

Definition

Deletes the management lock of a resource or any level below the resource.

public static void DeleteAtResourceLevel (this Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName);
static member DeleteAtResourceLevel : Microsoft.Azure.Management.ResourceManager.IManagementLocksOperations * string * string * string * string * string * string -> unit
<Extension()>
Public Sub DeleteAtResourceLevel (operations As IManagementLocksOperations, resourceGroupName As String, resourceProviderNamespace As String, parentResourcePath As String, resourceType As String, resourceName As String, lockName As String)

Parameters

operations
IManagementLocksOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group containing the resource with the lock to delete.

resourceProviderNamespace
String

The resource provider namespace of the resource with the lock to delete.

parentResourcePath
String

The parent resource identity.

resourceType
String

The resource type of the resource with the lock to delete.

resourceName
String

The name of the resource with the lock to delete.

lockName
String

The name of the lock to delete.

Remarks

To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.

Applies to