- 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
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>"
}
}
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.