Skip to content

Example create and list operations for working with MS Graph API on Azure Functions using Python 3.9

Notifications You must be signed in to change notification settings

DSpirit/azure-functions-python-ms-graph

Repository files navigation

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

About

Example create and list operations for working with MS Graph API on Azure Functions using Python 3.9

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages