Azure Table Storage

from the Azure documentation on how to create an Azure Storage Account.

If you wish to create a table for Dapr to use, you can do so beforehand. However, Table Storage state provider will create one for you automatically if it doesn’t exist.

In order to setup Azure Table Storage as a state store, you will need the following properties: AccountName: The storage account name. For example: mystorageaccount. AccountKey: Primary or secondary storage key.

  • TableName: The name of the table to be used for Dapr state. The table will be created for you if it doesn’t exist.

The next step is to create a Dapr component for Azure Table Storage.

Warning

The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described .

The following example uses the Kubernetes secret store to retrieve the secrets:

To apply Azure Table Storage state store to Kubernetes, use the kubectl CLI:

To run locally, create a components dir containing the YAML file and provide the path to the command with the flag --components-path.

This state store creates a column called Value in the table storage and puts raw state inside it.

For example, the following operation coming from service called

will create the following record in a table:

Azure Table Storage state concurrency is achieved by using ETags according to the official documenation.