Azure / Azure/azure-functions-host
Azure function fails to deploy. "Error while loading functions Encountered an error (ServiceUnavailable) from host runtime."
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
I have created a container based azure function app (linux) with an app service plan attached. B1 to be specific.
I created a python 3.10 function (http_trigger) for the same on VS Code. Whenever I try to deploy the function using VS Code it shows me the following error:

In addition to that I am getting the same error in the azure portal

I have been stuck on this issue for past few days and I have checked previous issues as well... I do not have the WEBSITE_RUN_FROM_PACKAGE app setting and I havent made any changes in the connection string.
Contributor guide
Research direction
Start with the VS Code deployment output and the Azure portal error for the Linux container-based Function App, then compare the Python 3.10 app configuration with the B1 App Service plan and host runtime logs. Done means identifying the cause of the ServiceUnavailable error and confirming a successful deployment, or documenting the missing diagnostic details needed to reproduce it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python, vscode
- Domain
- backend, cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 22/100