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

GitHub - benjaminperkins
GitHub - benjaminperkins

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 #GitHub Setting up and using GitHub in Visual Studio 2017…

0

Machine Keys on an Azure App Service, machineKey multiple instances Azure

Azure App Service
Azure App Service

When you run an ASP.NET application on multiple instances of an App Service Plan (ASP) you do not need to worry about machineKeys as the App Service Platform will use the same one across all your instances and therefore will not need to make any changes to your application. I found this sample code and…

0

Azure Functions updates

Azure Functions
Azure Functions

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.

0

How to add assembly references to an Azure Function App

Azure Functions
Azure Functions

I wanted to do this and I found these articles helpful: #AzureFunction #Azure #Csharp Azure Functions C# developer reference –> see Referencing External Assemblies How to make a simple DLL as an assembly reference just for fun Could not load file or assembly … The system cannot find the file specified SOLVED It did take…

3

Could not load file or assembly ‘benjamin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.","errorDetails" SOLVED

Azure Functions
Azure Functions

I was writting this article about #AzureFunctions here called “How to add assembly references to an Azure Function App” and another here called “How to make a simple DLL as an assembly reference just for fun” and I got this exceptions when I called the Azure Function: D:\>curl.exe -G http://localhost:7071/api/GrettingsAssemblyReference?code=b442be73f7124dd8ae57747e7ffc496d -d name=Benjamin {“id”:”3abc8583-47c0-43e3-90f0-d2f7fe577d43″,”requestId”:”b74ef638-0f71-4303-adca-2c7741e1dcb7″,”statusCode”:500,”errorCode”:0,”messsage”:”Exception while executing function:…

0

Azure Functions Access-Control-Allow-Credentials with CORS

Azure Functions
Azure Functions

There is a known issue documented on GitHub here with a title of Cross origin http request CORS fails with response header missing ‘Access-Control-Allow-Credentials: true’.  Although the issue described and a solution provided, I thought I would write up what I did as I use C# and didn’t see any examples of that, so here…

0

How to disable TLS 1.0 on an Azure App Service Web App

Microsoft Azure
Microsoft Azure

Short answer is that you can’t. (see alternative solution below) The reason is that when you deploy an Azure App Service it goes into a multi-tenant scale unit.  A scale unit looks something like Figure 1, which I stole from here.  Also, have a look at this forums discussion here. Figure 1, Azure App Service…

1

Testing/Consuming an Azure Function

Azure Functions
Azure Functions

I created an Azure Function using these instructions and the Visual Studio Tools For Azure Functions which I discussed here and here. #Azure #AzureFunction #AzureAppService I also found some good instructions on how to test Azure Functions here. As shown in Figure 1, I created a C# Http Trigger Azure Function named ‘SayHello’ with an…

0

Setting up and using GitHub in Visual Studio 2017

Visual Studio
Visual Studio

I wrote this article here about setting up GitHub in Visual Studio 2015 and felt it necessary to document the same in Visual Studio 2017.  Here is how I setup GitHub source code management in Visual Studio 2017 Community. Install the GitHub extension for Visual Studio Create your GitHub repo and then login Create a…

3

How to enable C# 7 in Visual Studio 2017

Microsoft .NET
Microsoft .NET

I was working with Visual Studio 2017 and found that 4.6.2 is not installed as default yet, so I wrote this article here about that.  In that article I also point out that you need to install the System.ValueType NuGet package to the Tuples capabilities to work. This time I wanted to get the Pattern…

1

.Net Framework 4.6.2 not in Visual Studio 2017

Microsoft .NET
Microsoft .NET

Cannot find the .NET Framework 4.6.2 in Visual Studio 2017?  Without it you cannot get all the cool new C# features? When you create a new project for example, you may only see .NET Framework versions up to 4.6.1 as seen in Figure 1. Figure 1, where is 4.6.2 in Visual Studio 2017 This is…

5

How to call an async method from a console app main method

.NET Core
.NET Core

I find myself needing to look this code snippet up time to time so I thought I’d write it up. 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…

0

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

.NET Core
.NET Core

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 my EXE, how to publish Create a VNET and access…

0

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

.NET Core
.NET Core

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 to ASP.NET Core and .Net Core How to call an…

1