> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/azure-data-lake/createcontainer.md).

# CreateContainer

Frends Task for creating a container to Azure Data Lake.

Task version: 1.4.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.AzureDataLake/tree/main/Frends.AzureDataLake.CreateContainer>

## Task Parameters

{% tabs %}
{% tab title="Input" %}

| Name                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ConnectionMethod : `ConnectionMethod` | <p>Which connection method should be used for connecting to Azure Data Lake.</p><p>Possible values:</p><ul><li><code>ConnectionString</code>: Which connection method should be used for connecting to Azure Data Lake.</li><li><code>OAuth2</code>: Which connection method should be used for connecting to Azure Data Lake.</li></ul><p><br>Default: <code>ConnectionString</code><br>Example: <code>ConnectionMethod.ConnectionString</code></p> |
| 🗝ConnectionString : `String`         | <p>Connection string to Azure Data Lake.</p><p><br>Default: <code>-</code><br>Example: <code>DefaultEndpointsProtocol=https;AccountName=accountname;AccountKey=Pdlrxyz==;EndpointSuffix=core.windows.net</code></p>                                                                                                                                                                                                                                  |
| StorageAccountName : `String`         | <p>Name of the Azure Data Lake account.</p><p><br>Default: <code>-</code><br>Example: <code>Storager</code></p>                                                                                                                                                                                                                                                                                                                                      |
| ApplicationID : `String`              | <p>Application (Client) ID of Azure AD Application.</p><p><br>Default: <code>-</code><br>Example: <code>Y6b1hf2a-80e2-xyz2-qwer3h-3a7c3a8as4b7f</code></p>                                                                                                                                                                                                                                                                                           |
| TenantID : `String`                   | <p>Tenant ID of Azure Tenant.</p><p><br>Default: <code>-</code><br>Example: <code>Y6b1hf2a-80e2-xyz2-qwer3h-3a7c3a8as4b7f</code></p>                                                                                                                                                                                                                                                                                                                 |
| 🗝ClientSecret : `String`             | <p>Client Secret of Azure AD Application.</p><p><br>Default: <code>-</code><br>Example: <code>Password!</code></p>                                                                                                                                                                                                                                                                                                                                   |
| ContainerName : `String`              | <p>Name of the Azure Data Lake container where the data will be uploaded.</p><p>Naming: lowercase</p><p>Valid chars: alphanumeric and dash, but cannot start or end with dash.</p><p><br>Default: <code>test-container</code><br>Example: <code>test-container</code></p>                                                                                                                                                                            |
| {% endtab %}                          |                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

{% tab title="Options" %}

| Name                             | Description                                                                                                                                                                                                                 |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ThrowErrorOnFailure : `Boolean`  | <p>True: Throw an exception on failure.</p><p>False: Return Result with Success=false and Error with description of exception.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                       |
| ErrorMessageOnFailure : `String` | <p>Custom error message to use when ThrowErrorOnFailure is true or when returning an error result.</p><p>If empty, the original exception message is used.</p><p><br>Default: <code>-</code><br>Example: <code>-</code></p> |
| {% endtab %}                     |                                                                                                                                                                                                                             |
| {% endtabs %}                    |                                                                                                                                                                                                                             |

## Task Result

| Name                               | Description                                                                                                                                          |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean`                | <p>Container created successfully.<br>Example: <code>true</code></p>                                                                                 |
| Uri : `String`                     | <p>URI string of newly created container.<br>Example: <code><https://test.lake.core.windows.net/test8f237ae0-ad33-b4b3-48d9-23b20a14c909></code></p> |
| Error : `Error`                    | Error information when Success is false and ThrowErrorOnFailure is false.                                                                            |
| Error.Message : `String`           | <p>Error message.<br>Example: <code>Container creation failed.</code></p>                                                                            |
| Error.AdditionalInfo : `Exception` | The exception that caused the failure.                                                                                                               |

## Task Changelog

Changelog for Task Frends.AzureDataLake.CreateContainer.

### \[1.4.0] - 2026-08-07

#### Added

* Added `Options` parameter with `ThrowErrorOnFailure` (default: true) and `ErrorMessageOnFailure` settings, giving you control over whether errors are thrown as exceptions or returned as part of the result.
* The result now includes an `Error` property with a message and additional exception details when the task fails and `ThrowErrorOnFailure` is set to false.

#### Changed

* Updated target framework to .NET 8.

### \[1.3.0] - 2026-01-15

#### Changed

* Updated Azure packages to latest versions:
* Azure.Storage.Files.DataLake 12.25.0
* Azure.Identity 1.17.1

### \[1.2.0] - 2024-08-23

#### Changed

* Updated the Azure.Identity package to version 1.12.0

### \[1.1.0] - 2024-05-20

#### Added

* Added FrendsTaskMetadata.json

### \[1.0.0] - 2024-05-06

#### Added

* Initial implementation of Frends.AzureDataLake.CreateContainer.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.frends.com/tasks/tasks/azure-data-lake/createcontainer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
