How to fix "Microsoft.Azure.Storage.Common: Operation could not be completed within the specified time."?

Pandit, Upendra 30 Reputation points

Hi, I have been facing this issue, in my function app. These function app has two triggers:

  1. Event Grid Trigger
  2. Event Hub Trigger

The first one works fine but the second one (Event Hub Trigger) is facing some issues. The 2nd function is not getting triggered when there's a new event in the event hub. It gives some error as posted in the picture.

Solutions that I have tried.
Increasing the functionTimeout in host.json, that didn't work. Deploying the function to different resource group works but I don't know what's the issue with this resource group. Also in local.settings.json instead of the real settings when I use "AzureWebJobsStorage": "UseDevelopmentStorage=true", it works fine but when I use the real connection string of the storage account it gives the below error.

Please take a look into it.
User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,512 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,836 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
581 questions
0 comments No comments
{count} vote

Accepted answer
  1. Amrinder Singh 3,795 Reputation points Microsoft Employee

    Hi Pandit, Upendra - Thanks for reaching out.

    When using development storage it tends to with Emulator

    Now as you mentioned that once you try using connecting string it tends to fails, you can try performing below checks:

    The storage account exists and isn't deleted.

    The connecting string is valid and correct. Try updating the configuration again and check if that helps.

    The connection string settings are present and not deleted.

    Check for any firewall and networking configurations if any on the storage account. If yes, can you try flipping to all the networks once and then try.

    Lastly, it is quite possible that the issue is that execution can't be configured within the timeout specified. You can try increasing the same and check ahead.

    Please let us know if that helps. I’m happy to assist you further.    

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members

0 additional answers

Sort by: Most helpful