Exemple #1
0
 /// <summary>
 /// Deletes the management lock of a resource or any level below the resource.
 /// </summary>
 /// <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.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the resource with the lock to
 /// delete.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// The resource provider namespace of the resource with the lock to delete.
 /// </param>
 /// <param name='parentResourcePath'>
 /// The parent resource identity.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type of the resource with the lock to delete.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource with the lock to delete.
 /// </param>
 /// <param name='lockName'>
 /// The name of the lock to delete.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAtResourceLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteAtResourceLevelWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }