System.Diagnostics.Trace Application Logging Log Stream on Azure App Service Function App

Azure App Service Benjamin Perkins
Azure App Service Benjamin Perkins

Here is what I wanted to do. Add some code like this to my ASP.NET application. Then I wanted to write those logs out to the Application Logging (File System), Figure 1, Application Logging (Blob), Figure 2 and to the Log stream window in the portal, Figure 3. Figure 1, how to write System.Diagnostics.Trace logs…

1

Using Managed Service Identity (MSI) with an Azure App Service or an Azure Function

Managed Service Identity MSI Benjamin Perkins
Managed Service Identity MSI Benjamin Perkins

Instead of storing user id / passwords or database connection strings in source or configuration files, you should consider storing them in an Azure Key vault. Azure Function 400 Bad Request How to connect to a database from an Azure Function Create an Azure Key Vault secret How to connect to a database from an…


How to connect to a database from an Azure Function using Azure Key Vault

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

In my original article here where I stored the database connection string in an Environment Variable which is no longer an optimal approach (it was only for example).  I will now update the Azure Function to access an Azure Key Vault secret which has the database connection string and use it to make the database…


Azure Function 400 Bad Request

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

I was writing these articles and received this error when calling my Azure Function: Create an Azure Key Vault secret Using Managed Service Identity MSI with and Azure App Service or an Azure Function How to connect to a database from an Azure Function I narrowed it down to the request I was making to…


How (I) would handle a timeout in Azure Function

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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 Azure Function App with Hybrid Connection

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

On my path to create this article, I wrote numerous other along the way.  To get a overview of the project I worked on, read the following articles as well. Required parameter ‘adminPassword’ is missing (null). osDisk.managedDisk.id’ is not allowed Creating an Azure App Service Hybrid Connection How to deploy to Azure using an ARM…


How to create an Azure Function in Visual Studio

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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…

2

Deploy an Azure Function created from Visual Studio

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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…


Publish failed

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

This article has been moved to its new home here: https://benperk.github.io/msdn/2018/2018-04-publish-failed.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 Function…


Azure Function – take it to the limit, scale it up

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

Azure Functions are really cool #AzureFunction.  I wrote numerous articles about Azure Functions here, check them out.  As you know there are 2 kinds of Azure Functions: Consumption – do not have to worry about resource management App Service Plan – run your functions just like other Azure App Services Each have a different set of…

4

How to configure GitHub or VSTS for use with an Azure Function

GitHub - benjamin perkins
GitHub - benjamin perkins

This article has been moved to its new home here: https://benperk.github.io/msdn/2017/2017-05-how-to-configure-github-or-vsts-for-use-with-an-azure-function.html I have written a few post about setting up source code repositories for App Services and now, while I am getting up to speed with Azure Functions I wanted to do the same.  Here are some other GitHub related articles I have written: #AzureFunctions #Azure…


Azure Functions updates

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

Azure Functions CLI has been renamed to azure-functions-core-tools, see here. Also, appsettings.json has been renamed to local.settings.json, the appsettings.json file will show as deprecated, but will still work. See other changes here.