Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 1.21 KB

README.md

File metadata and controls

34 lines (31 loc) · 1.21 KB

Setup (Ubuntu 22 LTS)

  • sudo apt install software-properties-common
  • sudo add-apt-repository ppa:deadsnakes/ppa
  • sudo apt install python3.9
  • sudo apt-get install python3.9-dev python3.9-venv
  • python3.9 -m venv sandbox
  • source sandbox/bin/activate
  • func host start

Configure your local.settings.json

In order to use the functions, you need to correctly configure a local.settings.json file. Here's an example:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopment=true",
    "FUNCTIONS_WORKER_RUNTIME": "python",
    "CLIENT_ID": "<your-client-id>",
    "TENANT_ID": "<your-tenant-id>",
    "CLIENT_SECRET": "<your-client-secret>"
  }
}

Test

Install the REST Client and open the tests.http in Visual Studio Code. When running the function, you can either list Azure AD users or create new users.

Links