Azurerm_linux_function_app - How to add a function code with Event hub trigger template

Hello,

I am using the azurerm_linux_function_app resource following the documentation :

With Terraform, I am able to create the Linux Function App but there is no way to create a function with NodeJS code. I can do it through the portal but there is no indication in the Terraform provider documentation to do this.

Can someone explain to me how to create a NodeJS function code with this resource provider ?

Hello,

Just for information, I have found an answer.
We need to create an app_function_app and link it by referencing the ID to the linux_function_app :

I hope the documentation will clarify it since it can be confusing.

How did you provide the code in app_function_app? Did you use another service or just the file block?

Did you get anything on code deploying to function_app_function.?

Here the syntax is for Http Trigger right.?How to implement for Event hub trigger function.?