Azure function not reading Azure storage queue message

Madhumitha Vanamala 20 Reputation points
2023-07-19T21:23:11.54+00:00

I have created a storage account with the queue. Then Created a function app with a Storage queue trigger-based function. I have gone throw that queue name is the same in the function code and it is correct and added role assignments like Storage Queue Data Reader, Storage Queue Data Message Processor, Storage Queue Data Contributor, and Storage Queue Data Message Sender. Even I have checked the connection string and it is the same. But still, there is no response from the Azure function. But showing an error in the monitor. please help me out.

Screenshot (3019)

Screenshot (3020)

Screenshot (3022)

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,006 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 24,301 Reputation points Microsoft Employee
    2023-07-21T16:05:42.53+00:00

    Hi @Madhumitha Vanamala

    It's difficult to know for sure what the issue is without knowing the error message. However, based off provided information, I surmise the error is being caused Refer to Azure Queue storage trigger for Azure Functions for additional details but I would verify the storage connection binding in function.json of the deployed function is correct. In the example below, MyStorageConnectionAppSetting will be an application setting in your function app that's configured for the storage account

    {
      "bindings": [
        {
          "name": "QueueItem",
          "type": "queueTrigger",
          "direction": "in",
          "queueName": "messages",
          "connection": "MyStorageConnectionAppSetting"
        }
      ]
    }
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful