Azure APIM Automated Imports of Function Apps?

Is there an official way of when creating the API Object to automatically import a Function App?

Everything I’ve been finding in my various searches of the Internet results in kinda ugly hacks.

The closest I’ve found for things is this: https://github.com/terraform-providers/terraform-provider-azurerm/issues/5032

It doesn’t seem like something that’s supported outside of clicking the buttons in Azure.