Running Azure Cloud functions on On-premise

Mohammed, Zahir 46 Reputation points
2022-10-27T04:12:13.83+00:00

I have developed a cloud function/Durable function in a VM which is with or without IoT edge setup.

I have all the network connection settings between azure and the VM.

Question:

  1. 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.
    2.. How to make azure function accessible with both azure portal end point and using the ip address of the
  2. 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.
  3. What is business use case of running the functions on-premise, is it just for local development?
  4. Where does the task hub gets created when the function is running locally and have configured "AzureWebJobsStorage" with the connection key.

Thanks
Zahir

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
661 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,499 questions
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,446 Reputation points
    2022-10-31T11:54:14.547+00:00

    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.


0 additional answers

Sort by: Most helpful