Currently, the Azure Function Tools do not support Python functions on an M1. There is an ongoing process to update the tools in the future. When trying to start the python function, you will receive an error message like the following:
Microsoft.Azure.WebJobs.Script: Architecture Arm64 is not supported for language python.
Meanwhile, it is necessary to implement a workaround to get the function up and running. Below, you will find the instructions to set up your primary environment, including Python, Node version manager, Node, and Azure Function Tools.
After that, I could finally run my Azure Function locally by using the command