cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Peter1234
Advocate I
Advocate I

Import Azure function - Select security scheme does not allow me to set API-Key

I'm having an issue selecting the security scheme when exporting an azure function to Flow/PowerApps. It's not allowing me to select "API Key" as per this example:

 

https://docs.microsoft.com/nl-be/azure/azure-functions/app-service-export-api-to-powerapps-and-flow

 

Instead the dropdown just contains "none".

 

I'm using the express method to export my azure function. 

 

Here is my swagger file:

 

swagger: '2.0'
info:
  title: xxx.azurewebsites.net
  version: 1.0.0
host: xxx.azurewebsites.net
basePath: /
schemes:
  - https
  - http
paths:
  /api/HttpTriggerCSharp1:
    post:
      operationId: /api/HttpTriggerCSharp1/post
      produces:
        - application/json
      consumes:
        - multipart/form-data
      parameters:
        - name: file
          in: body
          description: Image to import
          x-ms-summary: Image to import
          x-ms-visibility: important
          required: true
          schema:
            type: string
            format: binary
      responses:
        '200':
          description: Success operation
      security:
        - apikeyQuery: []
definitions: {}
securityDefinitions:
  apikeyQuery:
    type: apiKey
    name: code
    in: query

 

Who can help me?

1 REPLY 1
tfhegdbn
Helper IV
Helper IV

Hi ,

 

It seems that this is a Thread similar to your issue, and seems to have been resolved, for reference:

https://powerusers.microsoft.com/t5/Connecting-To-Data/Export-express-mode-azure-function-api-to-Flo...

 

Regards.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,377)