azure-func-python-layout | basic Azure Function App with multiple functions
kandi X-RAY | azure-func-python-layout Summary
kandi X-RAY | azure-func-python-layout Summary
I had some difficulty in getting the default Azure Functions working beyond the most trivial case, as at April 2020. You will find the tutorials on the Microsoft website. This repo is my best attempt at creating an example with two Azure Functions, based on HTTP Triggers that depend on some common shared code, with some automated pytests. I am using Insiders build of Windows 10 and VSCode and WSL2. I am not paid to write code professionally, but I thought that it would be useful for me to better understand what "Serverless Functions" are about by getting some personal experience. The layout is based on the Azure func templates and feedback by a Brett Cannon and Anthony Chu. I wanted to ensure that everything works via the terminal command line and/or via the VS-Code GUI. You should be able use the repo as a template, copy and rename it, create a Python virtualenv in the root directory, update pip & install pip-tools, activate virtualenv .venv and then be ready to proceed on developing your own functions. Initialise the pre-commit githook with pre-commit install. The pre-commit will use black to auto-format python files, remove trailing whitespace and check that you use case insensitive file names. There is a github workflow that will run some quality checks,. and then deploy to Azure. To check your test coverage with python -m pytest --cov --cov-config=.coveragerc tests/. Or coverage run -m pytest --cov __app__/. For the github workflow to work you will need you to create/download a "publish profile" which must be added as Github repo secret in order for the workflow to deploy to Azure.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Set project preferences .
- Main code function .
- Get the name from the request .
- Return hello message .
- Called when a project is opened .
azure-func-python-layout Key Features
azure-func-python-layout Examples and Code Snippets
Community Discussions
Trending Discussions on azure-func-python-layout
QUESTION
I followed this Microsoft tutorial using CLI to create Azure-Function in python.
I then created a second function, both HttpTriggered.
...ANSWER
Answered 2020-Apr-17 at 03:44In your case, running f5 will starts two functions. You need to send a request to the corresponding URL to go into the logic when you debug these two functions. When you use f5 at the functionapp level, all triggers will start and are in a state of waiting for trigger.
You can create some breakpoints within the trigger logic that you need to debug, and then satisfy its triggering method.
For example, if you have two http trigger, and you want to debug httptrigger1. You can create some breakpoint in it and then run f5. After that, send a request to the related url and then use f8(continue) to debug.
This is my launch.json:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-func-python-layout
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page