User Tools

Site Tools


cloud:azure:functions

This is an old revision of the document!


Azure function

Setting up IDE: Visual Studio Code

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 runtime

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.

The Function URL

The URL response

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

cloud/azure/functions.1714240113.txt.gz · Last modified: by skipidar