Power Apps, Custom Connectors and API Management
Neil Haddley • August 2, 2021
Azure API Management Service
I used the API Management Service to control how API services are exposed to employees by applying authentication, authorization, and usage limits.

I navigated to the Azure API Management services page

I created haddley-api

haddley-api was being created

haddley-api deployment was in progress

haddley-api deployment was complete

I reviewed the haddley-api overview

I identified an existing web service API (no authentication)

The existing API included Swagger

I noted the URL to the swagger.json definition

I added the API to API Management

I provided the URL to swagger.json

I reviewed the API details

I tested /Book GET

The test was successful

I created a Power Connector (for Power Apps)

I provided a connector name

The new custom connector was added

I edited the connector to review it

I noticed that an API key/subscription was required

I created a new connection based on the custom connector

I was required to provide a subscription key

I used Chrome to call the API Management service without the subscription key

I used Postman to call the API Management service without the subscription key

I noticed the subscription key was provided in the API Management test page

I used Postman to call the API Management service with the subscription key

I copied the subscription key from the API Management Subscriptions page

I entered the subscription key

The new connection was created

I created a test Power App

I started with a blank Power App

I added a data source

The connector was added

I added a button and configured the "OnSelect" handler

On select, books were retrieved and stored in a "colBooks" collection

I previewed the app

I pressed the button

I navigated to Collections to review the result

I added a gallery control and set its items property to the colBooks collection

I updated the gallery control to display book titles and ISBN numbers

I added a new subscription

I copied the subscription key

I edited the connection

I updated the subscription key