locked
Connecting Azure function to the Vnet RRS feed

  • Question

  • Hi,

    I have a Vnet, Gateway and a HDInsight Kafka(Connected to Vnet) cluster running. I am trying to access the Kafka cluster from my Azure Function(which is a Trigger) in JavaScript. I have the IP of kafka cluster which is accessible only through Vnet. I am struggling on how to connect the function to Vnet. So, in the end I am trying to achieve communication between the Azure function and Kafka cluster. Any inputs in this direction? 

    Friday, February 2, 2018 8:38 PM

Answers

  • @Mohit_Garg Your answer are partly wrong. Your link is integrate web app with an Azure Virtual Network. The OP ask how to integrate Azure function app with Vnet.  They are different.  

    If OP use App Service plan, your OP should work.

    But if OP use Consumption plan, the answer is impossible. 

    The VNet Integration feature requires a Standard, Premium, or Isolated pricing plan.



    Monday, February 5, 2018 5:14 AM

All replies

  • Hello, Refer to this Microsoft Document - Integrate your app with an Azure Virtual Network

    Let us know if still face issue with the setup.

    Saturday, February 3, 2018 12:35 AM
  • @Mohit_Garg Your answer are partly wrong. Your link is integrate web app with an Azure Virtual Network. The OP ask how to integrate Azure function app with Vnet.  They are different.  

    If OP use App Service plan, your OP should work.

    But if OP use Consumption plan, the answer is impossible. 

    The VNet Integration feature requires a Standard, Premium, or Isolated pricing plan.



    Monday, February 5, 2018 5:14 AM
  • Thanks for mentioning that. Yes, azure function app need to have app service plan to setup Vnet integration. However, if you have function app with app service plan and you go to Platform features -> All Settings, the steps mentioned in the document provided earlier will help to do the setup.
    • Proposed as answer by MohitGarg_MSFT Friday, February 9, 2018 7:01 PM
    Tuesday, February 6, 2018 11:53 PM