> 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/other/frends.azuretablestorage.createtable.md). Agents can also search and read this documentation through its [MCP server](https://docs.frends.com/~gitbook/mcp).

# Frends.AzureTableStorage.CreateTable

Creates a table in Azure Table Storage.

Task version: 1.1.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.AzureTableStorage/tree/main/Frends.AzureTableStorage.CreateTable>

## Task Parameters

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

| Name                 | Description                                                                                                                                                                                                                                     |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| TableName : `String` | <p>Name of the table to create. Table names must be between 3 and 63 characters long, contain only alphanumeric characters, and cannot begin with a numeric character.</p><p><br>Default: <code>-</code><br>Example: <code>Customers</code></p> |
| {% endtab %}         |                                                                                                                                                                                                                                                 |

{% tab title="Connection" %}

| Name                                  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ConnectionMethod : `ConnectionMethod` | <p>Connection method to use for connecting to Azure Table Storage.</p><p>Possible values:</p><ul><li><code>ConnectionString</code>: Connection string.</li><li><code>OAuth2</code>: OAuth2 authentication.</li><li><code>SasToken</code>: Shared Access Signature token.</li><li><code>ArcManagedIdentity</code>: Azure Arc Managed Identity.</li><li><code>ArcManagedIdentityCrossTenant</code>: Azure Arc Managed Identity Cross Tenant.</li></ul><p><br>Default: <code>ConnectionString</code><br>Example: <code>ConnectionMethod.ConnectionString</code></p> |
| 🗝ConnectionString : `String`         | <p>Connection string for the Azure Storage Account.</p><p>Required when ConnectionMethod is ConnectionString.</p><p><br>Default: <code>-</code><br>Example: <code>DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=mykey;EndpointSuffix=core.windows.net</code></p>                                                                                                                                                                                                                                                                               |
| ApplicationId : `String`              | <p>Application (Client) ID of Azure AD Application.</p><p>Required when ConnectionMethod is OAuth2.</p><p><br>Default: <code>-</code><br>Example: <code>12345678-1234-1234-1234-123456789012</code></p>                                                                                                                                                                                                                                                                                                                                                          |
| TenantId : `String`                   | <p>Azure AD Tenant ID.</p><p>Required when ConnectionMethod is OAuth2.</p><p><br>Default: <code>-</code><br>Example: <code>12345678-1234-1234-1234-123456789012</code></p>                                                                                                                                                                                                                                                                                                                                                                                       |
| 🗝ClientSecret : `String`             | <p>Azure AD Application Client Secret.</p><p>Required when ConnectionMethod is OAuth2.</p><p><br>Default: <code>-</code><br>Example: <code>your-client-secret</code></p>                                                                                                                                                                                                                                                                                                                                                                                         |
| 🗝SasToken : `String`                 | <p>Shared Access Signature (SAS) token for authentication.</p><p>Required when ConnectionMethod is SasToken.</p><p><br>Default: <code>-</code><br>Example: <code>?sv=2021-06-08\&ss=t\&srt=sco\&sp=rwdlacu\&se=2024-12-31T23:59:59Z\&st=2024-01-01T00:00:00Z\&spr=https\&sig=...</code></p>                                                                                                                                                                                                                                                                      |
| StorageAccountName : `String`         | <p>Name of the Azure Storage Account.</p><p>Required when ConnectionMethod is OAuth2, SasToken, ArcManagedIdentity, or ArcManagedIdentityCrossTenant.</p><p><br>Default: <code>-</code><br>Example: <code>mystorageaccount</code></p>                                                                                                                                                                                                                                                                                                                            |
| Scopes : `String[]`                   | <p>Scopes used when authenticating with Arc Managed Identity Cross Tenant.</p><p>Required when ConnectionMethod is ArcManagedIdentityCrossTenant.</p><p><br>Default: <code>-</code><br>Example: <code>\["api://AzureADTokenExchange/.default"]</code></p>                                                                                                                                                                                                                                                                                                        |
| TargetTenantId : `String`             | <p>Target Tenant ID of Azure Tenant.</p><p>Required when ConnectionMethod is ArcManagedIdentityCrossTenant.</p><p><br>Default: <code>-</code><br>Example: <code>12345678-1234-1234-1234-123456789012</code></p>                                                                                                                                                                                                                                                                                                                                                  |
| TargetClientId : `String`             | <p>Target Client ID of Azure Tenant.</p><p>Required when ConnectionMethod is ArcManagedIdentityCrossTenant.</p><p><br>Default: <code>-</code><br>Example: <code>12345678-1234-1234-1234-123456789012</code></p>                                                                                                                                                                                                                                                                                                                                                  |
| {% endtab %}                          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

{% tab title="Options" %}

| Name                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                        |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FailIfTableExists : `Boolean`    | <p>Whether to treat an already existing table as a failure.</p><p>If false, the task succeeds with Created = false when the table already exists.</p><p>If true, the already-existing table is treated as a failure — the behavior then depends</p><p>on ThrowErrorOnFailure: either an exception is thrown or a result with Success = false is returned.</p><p><br>Default: <code>False</code><br>Example: <code>false</code></p> |
| ThrowErrorOnFailure : `Boolean`  | <p>Whether to throw an exception if the operation fails.</p><p>If set to false, the task returns a result with Success = false instead of throwing.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                                                                                                                                                                                                         |
| ErrorMessageOnFailure : `String` | <p>Custom error message to use when the operation fails.</p><p>If empty, the original error message is used.</p><p><br>Default: <code>-</code><br>Example: <code>Failed to create Azure table</code></p>                                                                                                                                                                                                                           |
| {% endtab %}                     |                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| {% endtabs %}                    |                                                                                                                                                                                                                                                                                                                                                                                                                                    |

## Task Result

| Name                               | Description                                                                                                                                                                         |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean`                | <p>Indicates whether the table creation operation completed successfully.<br>Example: <code>true</code></p>                                                                         |
| TableName : `String`               | <p>Name of the table that was created or already existed.<br>Example: <code>Customers</code></p>                                                                                    |
| Created : `Boolean`                | <p>Indicates whether the table was newly created (true) or already existed (false).<br>Example: <code>true</code></p>                                                               |
| TableUri : `String`                | <p>URI to the created table in Azure Table Storage.<br>Example: <code><https://mystorageaccount.table.core.windows.net/Customers></code></p>                                        |
| Error : `Error`                    | <p>Error details if the operation failed. Null when Success is true.<br>Example: <code>null</code></p>                                                                              |
| Error.Message : `String`           | <p>Error message describing what went wrong.<br>Example: <code>Failed to create table: The table already exists.</code></p>                                                         |
| Error.AdditionalInfo : `Exception` | <p>Additional technical details about the error, such as HTTP status codes or Azure error codes.<br>Example: <code>Status: 409 (Conflict), ErrorCode: TableAlreadyExists</code></p> |

## Task Changelog

Changelog for Task Frends.AzureTableStorage.CreateTable.

### \[1.1.0] - 2026-09-30

#### Changed

* Updated the package copyright metadata to identify Frends.

### \[1.0.0] - 2026-09-01

#### Added

* Initial implementation of CreateTable task.


---

# 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/other/frends.azuretablestorage.createtable.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.
