问题
When I try to create an API in APIM by using Create from Function App
, I fill out the fields and click Create
. The operation provides the wait dots and comes back in five seconds and says
Could not create an API. Please try again later.
I can create a blank API...but not one from an existing Function App. I have tried multiple combinations, No products, all products, no version, version..etc. No luck.
Thoughts?
Notes
- The function in question is an HTTP Trigger.
- The function works locally on my development box and in Azure.
- APIM Tier is Developer
- On that Function app, during Publish in Visual Studio I have reported that attempting to manage application settings before a publish fails and in trying to add a new one causes Visual Studio to unexpectedly close. Manage Application Settings on Publish Related, don't know.
回答1:
I just ran into the same issue because I used Linux (Preview)
instead of Windows. When I blew away the Function App and recreated a new one with Windows, my API Manager was able to create an API off it.
回答2:
I have reproduce the same scenario. It is working for me. May I know, below details, 01.Hope you have tested your function and it is working fine. 02.What is the type of the function ? Hope that is "Http trigger" ? 03.What is you APIM tier ? (eg : development, basic etc.)
来源:https://stackoverflow.com/questions/54226135/azure-apim-fails-to-create-api-from-function-app