This is an old revision of the document!
Table of Contents
Azure function
Setting up IDE: Visual Studio Code
Use to reload the env variables after installing
$env:Path = ` [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + ` [System.Environment]::GetEnvironmentVariable("Path","User")
Install packages locally, to make imports succeed
pip install -r .\requirements.txt
Make sure you select the right python version, for which you executed the “pip install”
Then even under windows one can run “func start” to test linux functions
func start
Azure functions in Azure Portal
The trigger and code.
Only available after uploading the code into the function, via
az functionapp deployment source config-zip -g $resourceg -n $functionname –src app.zip
which uploads the app.zip
into the associated blob-container,
from where it automatically is executed by the azure_function.
Here the function http_trigger
was recognized.
Limitations of Azure functions
- Azure functions - are NOT only serverless.
- You can choose a premium subscription and deploy your Azure function as an always running instance into your network
- You CAN'T use a serverless function - in a private network
- You CAN'T have multiple triggers for a function. ONly one of
- http_trigger
- Blob trigger
- CosmosDB trigger
- EventHub trigger
- Queue trigger
- ServiceBus Queue trigger
- ServiceBus Topic trigger
- Timer Trigger
Serverless Azure functions
Python linux functions
func start
IN general read about developing locally: https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-local