An Azure service that provides an event-driven serverless compute platform.
Hi @Udit ,
Thanks for reaching out to Microsoft Q&A.
Azure Functions host failing to reach its storage account as mentioned in the error log:
"azure.functions.webjobs.storage":{"status":"Unhealthy","description":"Unable to access AzureWebJobsStorage"}
This error occurs when your Azure Function App is unable to connect to its required storage account, which is referenced by the AzureWebJobsStorage setting.
Your Function App must connect to its Azure Storage account via AzureWebJobsStorage to run. The message:
“No connection could be made because the target machine actively refused it”
means the function tried to reach the storage endpoint, but the request was blocked rather than simply timing out. This happens when the storage account has network restrictions such as firewall rules, private endpoints, or limited access to selected networks, preventing the Function App from reaching it.
Another possible cause is an incorrect or missing connection string in the application settings, especially if the storage account keys were recently rotated or misconfigured.
In setups using private endpoints, DNS or virtual network integration issues can also lead to this problem if the Function App cannot resolve or access the private IP. Because Azure Functions rely on the storage account to manage host state, triggers, and scaling, failing to connect means the host cannot acquire its lock lease, which results in the app being marked as unhealthy.
To resolve this issue, verify that the AzureWebJobsStorage connection string is correct, ensure that the storage account allows access from the Function App either by adjusting firewall settings or configuring VNet integration properly, and confirm that the storage account is available and reachable.
If this happens locally, it could be because:
- Azurite not running
- Wrong local storage config
To resolve this, Start Azurite or update:
"AzureWebJobsStorage" : "UseDevelopmentStorage=true"
Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.