Azure Durable Function does not finish when I configured Azurite with multiple Storage Accounts.

Makoto Oda 291 Reputation points
2023-03-15T08:19:58.79+00:00

I'm developing Azure Function (Python).

And I configuire Azurite with multiple Storage Accounts & Keys. I use Azurite from container, so I configure docker-compose.yml as follows:

# (omission)
services:
  azurite:
    image: mcr.microsoft.com/azure-storage/azurite
    ports:
      - 10000:10000
      - 10001:10001
      - 10002:10002
    environment:
      - AZURITE_ACCOUNTS=local-dev-sa-001:cGFzc3dvcmQ=;local-dev-sa-003:cGFzc3dvcmQ=;
    # (omission)

And I configure local.settings.json in Azure Function code as follows (other value is omitted):

{
  "Values": {
    "AzureWebJobsStorage": "DefaultEndpointsProtocol=http;AccountName=local-dev-sa-001;AccountKey=cGFzc3dvcmQ=;BlobEndpoint=http://127.0.0.1:10000/local-dev-sa-001;QueueEndpoint=http://127.0.0.1:10001/local-dev-sa-001;TableEndpoint=http://127.0.0.1:10002/local-dev-sa-001;"
  }
}

When I launch Azure Function App from Visual Studio Code with F5 and execute Durable Funcion, the funcion does not finish. Not only that, the function is executed multiple times. I confirmed from the log output on Visual Studio Code terminal pane.

The same code works fine when I use Azurite default configuration.

How do I fix this problem?

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
158 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,321 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,722 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,449 questions
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,151 Reputation points
    2023-03-22T13:55:56.3233333+00:00

    Makoto Oda Thank you for sharing the additional info. Based on the error message, it appears to be issue with Table Storage endpoint [http://127.0.0.1:10002/local-dev-sa-001] with Azurite and I found similar issue that was fixed in #796 and open issue #1141 related to batch operations (workaround to use single operations).

    However, there might be other cases and I request you to open a new issue in Azurite repo with details such as version, VS code extension, along with debug logs that you shared and let us know. That would help in engaging our product team to investigate further.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful