Logo
banner

Blogs

Debug the Azure Functions locally

, December 14, 2018 383 Views

Today, the majority of the business have based their roots with Azure. Above all the benefits, the main attraction of the Azure functions is that it helps in the simplification of developing the applications. They can also be debugged locally to identify the errors or to know the sanity status of the function. This can be done easily using the Visual Studio IDE.

Let’s see the steps to be followed:-

First, let us download the Function App content from the azure portal as shown in the below image:

Do not forget to select the option: “Include app settings in the download” while downloading the Function App content. This will include a ‘local.settings.json’ file which contains your application settings.

Copy the downloaded file and paste it in the visual studio in your project and then run the project using F5. You can set the break point from where you want to start debugging.

After executing the project using F5, we get the function URL as shown in the below image. Copy that URL and paste it in the browser to start the execution. You can also use this URL in the postman to debug the Function App.

When you post the above URL in the browser, the output also includes the details about how this Azure Function was triggered as shown in the below screen shots:

Below are the 3 types of triggers that invoke the Azure Functions:-

1) HTTP Trigger: Triggers the execution of the code using the HTTP request.

2) Service Bus Trigger: Triggers whenever a message is added to the service bus queue or topic.

3) Timer Trigger: Triggers at a particular time interval or as per predefined schedule.

I hope this helps you.


 

Insert data into Many-to-Many relationship in Dynamics CRM very easily & quickly, using the Drag and drop listbox.
http://www.inkeysolutions.com/what-we-do/dynamicscrmaddons/drag-and-drop-listbox

Create a personal / system view in Dynamics CRM with all the fields on the form/s which you select for a particular entity using the View Creator.
http://www.inkeysolutions.com/what-we-do/dynamicscrmaddons/view-creator

mm

Inkey

INKEY is your solution partner.
Our focus is to deliver you in-time intelligent innovative solutions ("key") for the problems in hand. Maintaining a quality standard right from the inception of a project is our top most priority.

Our team of talented professionals will execute your projects with dedication and excellence. We take ownership and accountability for the effort that goes into meeting our client’s needs.

Years of experience and proven success of delivering innovative custom solutions.

More posts by

Leave a Reply

Your email address will not be published. Required fields are marked *