使用 Microsoft Graph 构建 Azure 函数

本教程向您介绍如何构建使用 Microsoft Graph API 检索用户的日历信息的 Azure 函数。This tutorial teaches you how to build an Azure Function that uses the Microsoft Graph API to retrieve calendar information for a user.

提示

如果您只想下载已完成的教程,可以下载或克隆 GitHub 存储库If you prefer to just download the completed tutorial, you can download or clone the GitHub repository. 有关使用应用 ID 和密码配置应用程序的说明,请参阅 demo 文件夹中的自述文件。See the README file in the demo folder for instructions on configuring the app with an app ID and secret.

必备条件Prerequisites

在开始本教程之前,您应在开发计算机上安装以下工具。Before you start this tutorial, you should have the following tools installed on your development machine.

此外,还应具有 Microsoft 工作或学校帐户,并访问同一组织中的全局管理员帐户。You should also have a Microsoft work or school account, with access to a global administrator account in the same organization. 如果你没有 Microsoft 帐户,可以 注册 office 365 开发人员计划 以获取免费的 office 365 订阅。If you don't have a Microsoft account, you can sign up for the Office 365 Developer Program to get a free Office 365 subscription.

备注

本教程是使用上述工具的以下版本编写的。This tutorial was written with the following versions of the above tools. 本指南中的步骤可能适用于其他版本,但尚未经过测试。The steps in this guide may work with other versions, but that has not been tested.

  • .NET Core SDK 3.1.301.NET Core SDK 3.1.301
  • Azure 函数 Core Tools 3.0.2630Azure Functions Core Tools 3.0.2630
  • Azure CLI 2.8。0Azure CLI 2.8.0
  • ngrok 2.3.35ngrok 2.3.35

反馈Feedback

请在 GitHub 存储库中提供有关本教程的任何反馈。Please provide any feedback on this tutorial in the GitHub repository.