Azure-docs: How to create Swagger for an azure function (v2)?

Created on 8 Oct 2018  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

You can only create v2 functions in the portal, but the portal does not support generating swagger for v2.
I'm creating a function app to be called from powerapps. Can you point me towards an example on how to do this?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-functionsvc cxp product-question triaged

All 6 comments

Or just tell me how to create a v1 function in the portal?

Thanks for the feedback! We are currently investigating and will update you shortly.

Hi @PeterWallenius. The OpenAPI feature is only available for v1 functions as of today.

You can refer to this doc on how to change the runtime version of a function app to v1.

Please be aware that this change will only be possible in an empty function app and would require you to manually migrate any existing functions.

Will the OpenAPI feature be supported in the future? If not: How to call a v2 function app from powerapps etc.?

@PeterWallenius Sorry but we do not make any comment on future plans here.

You can monitor the Azure Updates or App Service Announcements pages for any such news.

You could also create a feature request in UserVoice.

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

The code for the function has been updated to v2, it doesn't compile on Azure Function V1, which you are forced to use for the rest of the thing to work. You should roll back to V1 code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments