Azure Blob Storage
To setup Azure Blobstorage state store create a component of type . See this guide on how to create and apply a state store configuration.
Warning
The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets as described here.
Spec metadata fields
Follow the instructions from the Azure documentation on how to create an Azure Storage Account.
In order to setup Azure Blob Storage as a state store, you will need the following properties:
- AccountKey: Primary or secondary storage key.
- ContainerName: The name of the container to be used for Dapr state. The container will be created for you if it doesn’t exist.
Apply the configuration
To apply Azure Blob Storage state store to Kubernetes, use the kubectl
CLI:
Running locally
To run locally, create a components
dir containing the YAML file and provide the path to the command with the flag --components-path
.
For example, the following operation coming from service called myservice
creates the blob file in the containter with key
as filename and value
as the contents of file.
Azure Blob Storage state concurrency is achieved by using ETag
s according to .
Related links
- Read this guide for instructions on configuring state store components