Skip to content

The purpose of this repository is that it has code of Azure app function. We will create an azure app function locally and then we will upload into AZ app functions portal

Notifications You must be signed in to change notification settings

bizimunda/Azure-app-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Azure Function

Last updated: December 12th 2022

Project Structure

The main project folder (<project_root>) can contain the following files:

  • local.settings.json - Used to store app settings and connection strings when running locally. This file doesn't get published to Azure. To learn more, see local.settings.file.
  • requirements.txt - Contains the list of Python packages the system installs when publishing to Azure.
  • host.json - Contains global configuration options that affect all functions in a function app. This file does get published to Azure. Not all options are supported when running locally. To learn more, see host.json.
  • .vscode/ - (Optional) Contains store VSCode configuration. To learn more, see VSCode setting.
  • .venv/ - (Optional) Contains a Python virtual environment used by local development.
  • Dockerfile - (Optional) Used when publishing your project in a custom container.
  • tests/ - (Optional) Contains the test cases of your function app. For more information, see Unit Testing.
  • .funcignore - (Optional) Declares files that shouldn't get published to Azure. Usually, this file contains .vscode/ to ignore your editor setting, .venv/ to ignore local Python virtual environment, tests/ to ignore test cases, and local.settings.json to prevent local app settings being published.

Each function has its own code file and binding configuration file (function.json).

Developing your first Python function using VS Code

If you have not already, please checkout our quickstart to get you started with Azure Functions developments in Python.

Publishing your function app to Azure

For more information on deployment options for Azure Functions, please visit this guide.

Next Steps

First you need to create a folder called first_function

  • In that folder you create 2 files init.py and function.json
  • put the code into these files
  • then run these commands
    • pip3 install -r requirements.txt (will install all required packages)
    • func init
    • func start
    • open the url of your function

Deploy your function on Azure

  • Run this command
    • func azure functionapp publish name_of_your_app_function

About

The purpose of this repository is that it has code of Azure app function. We will create an azure app function locally and then we will upload into AZ app functions portal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages