0

I am new to Azure Functions and I am trying to follow the tutorial https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-java to create a basic HTTP Trigger Function using Visual Studio code and to deploy the same to Azure.

I have created the function and executed it locally and has deployed the Java HTTP Trigger Function to Azure as well, but while trying to execute the function in Azure I am getting the following error:

Function_error

Can anyone please help me in resolving the above error.

Thanks & regards, Preethi H R

  • After deploying to azure, you can run your http function in azure portal iitself, no need to use postman, try over there once – RithwikBojja Sep 28 '22 at 06:43
  • Hi, I have also tried executing the function on Azure also. I was getting the same error on Azure portal as well so I have tried executing it on postman. – Preethi H R Sep 28 '22 at 07:15

1 Answers1

0

We have also tried to reproduced the issue ,But its working fine after following the below steps and configuration.

After Creating java function with http trigger and deployed to Azure checked the following if same or not which you have created in your local with version details.

enter image description here

Including that please check the configuration file if any of the localsettings is missed because when we deploy azure function to azure from local(VS/VSC) need to configure the localsettings manually in the configuration section.

For example:-

enter image description here

Tested successfully via postman in our environment:-

enter image description here

Please refer the below links for the similar issues:-

AjayKumarGhose
  • 4,257
  • 2
  • 4
  • 15