Azure / Azure/azure-functions-host

Azure function fails to deploy. "Error while loading functions Encountered an error (ServiceUnavailable) from host runtime."

Open
#10,033 4 comments 1 reaction 0 assignees View on GitHub
Needs: Attention :wave:
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:
![image](https://github.com/Azure/azure-functions-host/assets/132805526/4d8abcb4-5544-42a4-99dd-63ba0993dedd)

In addition to that I am getting the same error in the azure portal
![image](https://github.com/Azure/azure-functions-host/assets/132805526/34cb65a2-e837-4a9e-a2fd-6fbe8a8c1ad4)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.