@niharika jain Thanks for reaching here! If I have understood right your function is getting triggered but not able to read the message from the queue. There could be multiple reasons for this issue.
- Please make sure that you have provided the correct connection string for the storage account in the function app settings. You can check this by going to the function app settings and then to the "Configuration" tab.
To obtain a connection string, follow the steps shown at Manage storage account access keys.
This connection string should be stored in an application setting with a name matching the value specified by the
connection
property of the binding configuration. - Please make sure that you have provided the correct queue name in the function code. You can check this by going to the function code and looking for the
[QueueTrigger]
attribute. - You can set the
Connection
property to specify the app setting that contains the storage account connection string to use, as shown in the following example:
[FunctionName("QueueTrigger")]
public static void Run(
[QueueTrigger("myqueue-items", Connection = "StorageConnectionAppSetting")] string myQueueItem,
ILogger log)
{
....
}
If both of these are correct, then please check the logs of your function app to see if there are any errors.
- You can do this by going to the function app in the Azure portal, selecting your function, and then selecting the "Logs" tab.
Reference document: Azure Queue storage trigger for Azure Functions Please let us know if further query issue persists.