/// <summary> /// Tests the existence of the specified Azure Storage container associated with the /// given Data Lake Analytics and Azure Storage accounts. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure resource group that contains the Data Lake /// Analytics account. /// </param> /// <param name='accountName'> /// The name of the Data Lake Analytics account for which to retrieve /// blob container. /// </param> /// <param name='storageAccountName'> /// The name of the Azure storage account from which to test the /// blob container's existence. /// </param> /// <param name='containerName'> /// The name of the Azure storage container to test for existence. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool> StorageContainerExistsAsync(this IAccountOperations operations, string resourceGroupName, string accountName, string storageAccountName, string containerName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.StorageContainerExistsWithHttpMessagesAsync(resourceGroupName, accountName, storageAccountName, containerName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }