Hi @Mohammed, Zahir ,
- Once I publish the function project to azure, it starts running in azure environment, but can I use the IP address of VM server to configure a trigger. Once the app is published to azure, the inbound and outbound ip addresses for your app will be changed. By default, there is inbound and outbound ip addresses for the function app and that will be applied to your app.
- How to make azure function accessible with both azure portal end point and using the ip address of the VM server for configuring the trigger. It is not possible to add the ip address of the VM to the function app's inbound ip address list. If you would like to listen to both the IP address, then the app needs to run on both VM and Azure functions runtime.
- If the answer to #2 is NO, then how can I prove that I am able to run the functions on-premise from azure portal If you would like to run the functions in local machine, you can use the Function core tools
https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-local - What is business use case of running the functions on-premise, is it just for local development? I have seen customers running functions for local development and some of them may have a Kubernetes onpremise cluster and they would prefer functions running in that cluster. But mostly its for local development.
- Where does the task hub gets created when the function is running locally and have configured "AzureWebJobsStorage" with the connection key.
You can specify the task hub name in the Host.json file and it will be visible as a container in the storage account. Here are the ways to view the task hub content : https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-task-hubs?tabs=csharp#content-inspection
Hope this helps! Feel free to reach out to me if you have any questions or concerns.