How (I) would handle a timeout in Azure Function

I have moved this page to its new home here:  https://benperk.github.io/msdn/2018/2018-06-how-i-would-handle-a-timeout-in-azure-function.html I wrote this article about adding a host.json file to an Azure Function “How to add a HOST.JSON file to an Azure Function” and while I was breaking it, I saw a behavior which I didn’t expect. The behavior was that my code within…


How to add a HOST.JSON file to an Azure Function

I have written numerous articles about Azure Functions, view them here.  I have moved this page to this new location:  https://benperk.github.io/msdn/2018/2018-06-how-to-add-a-host-json-file-to-an-azure-function.html The fact is, the HOST.JSON file is created for you when the Azure Function App is created originally/initially and it does not need to be added.  I expected to see it when I expanded…


How to create an Azure Function in Visual Studio

I have relocated this article to its new home here:  https://benperk.github.io/msdn/2018/2018-04-how-to-create-an-azure-function-in-visual-studio.html These are some good instructions as well “Create your first function using Visual Studio”.  But I like to try it out myself.  Check out these other articles as well. How to connect to a database from an Azure Function Deploy an Azure Function created…


How to connect to a database from an Azure Function

I migrated this article to its new home here:  https://benperk.github.io/msdn/2018/2018-04-how-to-connect-to-a-database-from-an-azure-function.html I created a simple Azure Function and now I want to connect it to a database.  Check out these other articles as well. How to create an Azure Function in Visual Studio Deploy an Azure Function created from Visual Studio Check out all my Azure…


Deploy an Azure Function created from Visual Studio

This article has been moved to its new home here: https://benperk.github.io/msdn/2018/2018-04-deploy-an-azure-function-created-from-visual-studio.html I created an Azure Function and added some some code to connect to a database and now I want to deploy it to the Azure platform. How to create an Azure Function in Visual Studio How to connect to a database from an Azure Function…


An error occurred

This article has been moved to its new home here:  https://benperk.github.io/msdn/2018/2018-04-an-error-occurred.html While I was writing these articles about creating, developing local and deploying an Azure Function App, I received this error, Figure 1. How to create an Azure Function in Visual Studio How to connect to a database from an Azure Function Deploy an Azure…


Accessing a .NET bot’s state via dependency injection

[NOTE: This post refers to version 3 of the Bot Framework] When using the .NET BotBuilder SDK’s dialog system, you can access the bot state using the dialog context, but what if you don’t have the dialog context handy? You have two options Pass the context around all the time Use the already built in…


How to deploy a .NET Core console application to Azure, WebJob

This article has been moved to its new home here:  https://benperk.github.io/msdn/2017/2017-03-how-to-deploy-a-net-core-console-application-to-azure-webjob.html Check out some of my other articles I wrote in regards to ASP.NET Core and .Net Core How to call an async method from a console app main method How to deploy a .NET Core console application to Azure, WebJob .NET Core application, where is…


.NET Core application, where is my EXE, how to publish

This article has been moved to its new home here:  https://benperk.github.io/msdn/2017/2017-03-net-core-application-where-is-my-exe-how-to-publish.html Short answer, there isn’t one.  When you compile your .NET Core console application for example, you get a DLL.  Then you execute it using the DOTNET command from the .NET Core SDK found here. Check out some of my other articles I wrote in regards…


Troubleshooting an Azure App Service WebJob

This article has been moved to its new home here:  https://benperk.github.io/msdn/2017/2017-03-troubleshooting-an-azure-app-service-webjob.html Whenever you write a WebJob, for example in C#, you should always place your code within try{} catch{} code blocks.  If you do not manage your exceptions and your code throws an exception, it will likely terminate to process. I wanted to find out what…