web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can't add Azure functi...
Power Automate
Unanswered

Can't add Azure function to flow

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

Good day!

 

I'v published azure function in Visual Studio 2017. From Internet I know, I must go to Function API definition and push integration button for function creation in ms flow or powerapps. But, what I see, it is the information about: The API definition (Swagger) is not available for application functions in read-only mode.

 

How to integrate my Azure function with Flow?

 

I can't do custom user connector. I'v got the error: Internal error.

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Please make sure your API definition is valid, about creating an OpenAPI definition for a function, please check the following doc:

    https://docs.microsoft.com/en-us/azure/azure-functions/functions-openapi-definition

    Besides, to call a function from Microsoft Flow, the flowing doc would be helpful:

    https://docs.microsoft.com/en-us/azure/azure-functions/functions-flow-scenario

    More details about custom connectors in Microsoft Flow, please check it at here:

    https://docs.microsoft.com/en-us/flow/developer/register-custom-api

     

    Best regards,

    Mabel

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, Mabel!

     

    I have seen this URLs. In my case, the Azure function made in Visual Studio, not in Azure directly. This is why, I can't use instruction from your links. When I go to API definition, I see Information message about read-only function (from VS, all functions are read-only), and have no interface for generate swagger(open api) or other controls for integration.

     

    What about Azure Functions from Visual Studio? My function works, if I fire it URL, but I can't use it in flow or powerapps. I don't know how.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Have you any solution?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    1.jpg2.jpg

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous and @v-yamao-msft,

    I have the exact same issue - I can't export the API definitions to Flow if the function app is created through Visual Studio, because the function is in read-only mode by default. @v-yamao-msft your links are great, but the top one does only work for function apps created in Azure, not in VS. Do you (or anyone else) have a way to export the API definitions for function apps in read-only mode?

    Best,
    Emilie

  • jkahnt Profile Picture
    2 on at

    Same here, but I know that it worked a couple of weeks ago

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have an bypass way for this issue.

     Call in MS FLOW function url from HTTP action, select post or get method. My Visual Studio function works well. It is do word document from template. You do not need any credentials, URL works without it. I think you can do function with credentials, if you need. Pass and login are post or get params is https request.

  • zilongchang Profile Picture
    5 on at

    I have the same issue. I am trying to call Azure functions in my PowerApps. How I can make it work?

  • mnikam Profile Picture
    4 on at

    I ran into the same issue. Later figured out that, we need to toggle the switch "Funciton app edit mode" from "Read Only" to "Read/Write". That should work.

     

    2019-01-31 15_07_06-Window.png

  • Shidin Haridas Profile Picture
    49 on at

    @mnikam the solution suggested by you only works for Azure functions authored in the Azure Portal. 

    If published through Visual Studio, these app settings / configurations are non-editable. 

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard