镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages