How to fix Connection string is either blank or malformed - Azure Function App + Container

Casey C 0 Reputation points
2023-08-17T14:58:49.7266667+00:00

I have a few functions in a Docker container that I'd like to deploy on Azure. One of them is triggered by additions to a Queue.

When building the container, I add the AZURE_STORAGE_CONNECTION_STRING as an ENV.

When I then run the container locally and add a job to the queue, the function inside the container picks it up and runs successfully. This tells me the connection string is in the container correctly, since that process has been triggered by a queue, and then also writes to some tables using the connection string.

However, I then push my container to ACR and use the CLI to create a function app and all the required resources. az functionapp create....

The functionapp deploys correctly, and even picks up jobs from the queue (so it must have some kind of connection string?), but when I go to write to a table, I get the error Connection string is either blank or malformed.

I have added the connection string to the app settings, redeployed, and tried 100 other things... It just won't work. Please help!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,953 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
415 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.