stephaneey / azure-apim-extension

Full Azure API Management suite and more VSTS extension
MIT License
66 stars 48 forks source link

500 error during the step - 'Enabling Swagger for the target function set'. #97

Closed lamelyan closed 4 years ago

lamelyan commented 4 years ago

When I try to run a release task 'API Management - Create or Update API on Azure Functions (v1)' I get a 500 error during the step - 'Enabling Swagger for the target function set'.

2020-08-10_15-17-44

I believe this has to do with how my function app is published. It's in read-only mode, so you can't update its files and I think the task is trying to update the host.json. 2020-08-10_15-18-03

Is this correct? If so, will this not work with function apps that are published in read-only mode?

stephaneey commented 4 years ago

Hello,

As stated in the task title, the extension only works with Azure Functions v1 not above because Microsoft completely changed the way functions's OpenAPI definitions are being generated.

Best Regards