Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Export (express mode) azure function api to Flow, missing security scheme

I try to follow this tutorial where you can create an Azure Function, define it as an api. And then export the api to Flow in express mode. At this last step I see in the tutorial you need to select the security scheme "API Key". But in my situation I do not see "API Key" in the dropdown.


Tutorial link:


Why I dont see the security scheme "API Key"?


See below an picture of the turial:



See below a picture on my environment:


missing security scheme.png


When I export the azure function api manual I can see the security scheme "API Key". Here's a tutorial of how you can export it manual:



Community Support
Community Support

Hi @khalidinio,


I have made a test on my side and don't have the issue that you mentioned. 


Please check if you have obtained the API key for your custom API. If you have obtained the API key on your side, please consider refresh your browser or clear the cache of your browser and check if he issue is solved.


Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

What do you exactly mean with: "Please check if you have obtained the API key for your custom API" ?? I followed this toturial to create the Azure function api:


Do you mean this step in the tutorial? 


Also my api definition template is created like in the tutorial. You see below in the template the authentication type.


  "swagger": "2.0",
  "info": {
    "title": "",
    "version": "1.0.0"
  "host": "",
  "basePath": "/",
  "schemes": [ "https", "http" ],
  "paths": {
    "/api/TurbineRepair": {
      "post": {
        "operationId": "CalculateCosts",
        "description": "Determines if a technician should be sent for repair",
        "summary": "Calculates costs",
        "x-ms-summary": "Calculates costs",
        "x-ms-visibility": "important",
        "produces": [ "application/json" ],
        "consumes": [ "application/json" ],
        "parameters": [
            "name": "body",
            "in": "body",
            "description": "Hours and capacity used to calculate costs",
            "x-ms-summary": "Hours and capacity",
            "x-ms-visibility": "important",
            "required": true,
            "schema": {
              "type": "object",
              "properties": {
                "hours": {
                  "description": "The amount of effort in hours required to conduct repair",
                  "type": "number",
                  "x-ms-summary": "Hours",
                  "x-ms-visibility": "important"
                "capacity": {
                  "description": "The max output of a turbine in kilowatts",
                  "type": "number",
                  "x-ms-summary": "Capacity",
                  "x-ms-visibility": "important"
        "responses": {
          "200": {
            "description": "Message with cost and revenue numbers",
            "x-ms-summary": "Message",
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Returns Yes or No depending on calculations",
                  "x-ms-summary": "Message"
                "revenueOpportunity": {
                  "type": "string",
                  "description": "The revenue opportunity cost",
                  "x-ms-summary": "RevenueOpportunity"
                "costToFix": {
                  "type": "string",
                  "description": "The cost in $ to fix the turbine",
                  "x-ms-summary": "CostToFix"
        "security": [ { "apikeyQuery": [] } ]
  "definitions": {},
  "securityDefinitions": {
    "apikeyQuery": {
      "type": "apiKey",
      "name": "code",
      "in": "query"


We are facing the same issue.

Unable to select APIKey for security, I only see "None".


Please let me know how you resolve this?


Thank you.

Frequent Visitor

I used the manual export of the azure function. That will generate an json file. You can import that json file as a custom connector in flow.




Hello, @khalidinio!


Thank you for posting to the Flow Community Forum! It appears you have found a solution to your issue! If you feel as though your issue has been resolved and you are satisfied with one of the previous replies, please click "Accept as Solution" so that this thread will be marked for other users to easily identify!


Thank you for being an active member of the Flow Community!



(Flow Community Admin)

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager

I have the same issue... I feel doing a manual export is not exactly a solution to this problem.


I would like to see a "real" solution making the API Key option available in the dropdown.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,005)