Hi Pie,
What hosting method did you choose?
As I understand it, function apps created through VS Code won't be shown in the Fusions blade.
reference:
functions-create-function-app-portal
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a Azure Functions App which is using containers. The container that is being used is the Python 3.8 version.
A Docker container image is being pushed via GitHub Actions to the Azure Function. In the Deployment Center - Container Logs I can see the container being pulled when updated.
However, there are no functions present.
The logs seem to indicate nothing is happening.
When I pull the container locally, I cd into /home/site/wwwroot/azure_function/ folder and then run func start
and I get the list of functions that have been started. I would expect that to happen in the container but seems nothing is. Is there a config I am missing to start the functions after being loaded into Azure?
Hi Pie,
What hosting method did you choose?
As I understand it, function apps created through VS Code won't be shown in the Fusions blade.
reference:
functions-create-function-app-portal
@David Broggy
Not sure what you mean by hosting method. I created a Azure Function App that uses Containers and then created a Dockerfile that was based off the below. The Dockerfile just installs a few packages and the items in the requirements.txt file.
FROM mcr.microsoft.com/azure-functions/python:4-python3.8
In VS Code I have the Azure Extension installed, and I can select to deploy my Azure Function App via VS Code.
When I deploy it takes about 2 minutes but I don't see my functions show up. When I deploy to the non-container version of Azure Function using python, the deployment takes about 6 minutes and I do see several functions appear in the portal.
Got the functions running in a container. Here is what needs to be done.
Since I already had a Linux Consumption plan running with a few functions I wanted to move this to a container.
After creating the Dockerfile and copying the azure function source code I had over to the container, I was placing the code in a different directory than the /home/site/wwwroot expectation.
The root of the function app has to be copied to that folder, as the host.json file is what Azure is looking for and when found after deployment that file is used to automatically start all the functions.
The functions will then show up in the portal just like the consumption plan.