/aspnet-web-api-for-power-platform-custom-connector

This provides a sample ASP.NET Core Web API app to deploy on Azure and integrate with Azure API Management

Primary LanguageC#MIT LicenseMIT

ASP.NET Web API for Power Platform Custom Connector (feat. Azure OpenAI Service)

This is a sample application that lists up GitHub issues on a specific repository and summarize them. Through this sample application, it shows:

  1. How easy to integrate ASP.NET Core Web API with Azure API Management within Visual Studio
  2. How easy to set up an authorization feature directly on Azure API Management
  3. How easy to export a Power Platform Custom Connector directly from Azure API Management

Goal

  • You can call Azure OpenAI Service API through ASP.NET Core Web API.
  • You can call GitHub API through ASP.NET Core Web API.
  • You can build and deploy an ASP.NET Core Web API to Azure App Service within Visual Studio.
  • You can integrate the Azure App Service instance with Azure API Management within Visual Studio.
  • You can automatically generate a GitHub access token through Azure API Management.
  • You can create a Power Platform Custom Connector directly from Azure API Management.

Application Architecture

Application Architecture

Prerequisites

Getting Started

  1. Fork this repository to your GitHub account. {{GITHUB_USERNAME}} is your GitHub username.

  2. Follow the steps in the following order.

    • The {{RANDOM_KEY}} value can be any string. You can get a random string like $(New-Guid).Guid in PowerShell for example.
    # Provision resources on Azure
    azd auth login
    azd init
    azd env set AZURE_APPSERVICE_KEY {{RANDOM_KEY}}
    azd up
    azd pipeline config
    
    # Deploy app to Azure
    gh auth login
    gh workflow run "Azure Dev" --repo {{GITHUB_USERNAME}}/aspnet-web-api-for-power-platform-custom-connector

Resources