/// <summary> /// Deletes the management lock at the subscription level. /// </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='lockName'> /// The name of lock to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAtSubscriptionLevelAsync(this IManagementLocksOperations operations, string lockName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteAtSubscriptionLevelWithHttpMessagesAsync(lockName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }