As part of our CI/CD pipeline I am looking to register our Azure Function Apps with Azure API Management using PowerShell. From looking at the documentation it appears that the Import-AzApiManagementApi cmdlet should support this but there does not appear to be on option in the -SpecificationFormat parameter to import from an existing Function App.
I did see this feedback article asking a similar question but it does not appear to be possible at this time.
I did try to expose the Function App OpenAPI documentation via the API Definition blade but that does not appear to work as the Function App is hosted within an Isolated tier private Application Service Environment.
Anyone any idea if there is another option to programatically import a Function App into APIM?
Update:
I have looked at the AlienCube Function Extensions library on Github and it does enable the publication of Swagger API definition which I can consume with the Import-AzApiManagementApi cmdlet but still want an Azure native solution if possible.