Razor Pages Gotcha

I have been playing around with Razor Pages as of late, you can read more at https://docs.microsoft.com/en-us/aspnet/core/razor-pages/?view=aspnetcore-2.1&tabs=visual-studio. The main difference with Razor Pages and ASP.NET MVC is that the Razor Page includes both the model and the controller. It is more of an MVVM approach, that also includes two-way data binding. Anyway, I was struggling with…

Local Development with Azure Functions and Event Grid

For the past couple of days I have been working with Azure Functions and Event Grid.  The challenge I encountered was getting it so I could run and debug my Azure Functions locally, specifically the Even Grid Azure Function. Finally figured it out! For my example I am using two Azure Functions, the first is…

ASP.NET Core Service Lifetimes Explained

When leveraging Dependency Injection in ASP.NET Core you will want to choose an appropriate lifetime for each registered service. ASP.NET Core services can be configured with the following lifetimes: Transient Scoped Singleton Transient When in doubt, make it Transient. When you add a Transient service you are telling ASP.NET Core that each time the service…

Create Azure Web App with azure-cli

Start at https://shell.azure.com. Forcing my self to get better at using the command prompt as opposed to Azure Portal. These are a list of some of the azure-cli commands that I use frequently. List Locations To retrieve a list of available Azure regions use az account list-locations. Create Resource Group To create a resource group use…

How to Query Azure Table Storage with Postman

In preparation you will need to create a table in either a new or existing Azure Storage Account. In order to query Azure table storage with Postman you will need to create a Shared Access Signature (SAS) token.  To do this navigate to the Shared access signature blade of the table storage account where the…

No Job Functions Found

The following error warning gets me every time I am working with Azure Functions in Visual Studio Code when I run func start: No job functions found. Try making your job classes and methods public. If you’re using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you’ve called the registration method for the extension(s) in…

Azure AD B2C … Almost

I have been using Auth0 now for a couple of years, but for a new project, I wanted to try leveraging Azure AD B2C.  At first things went smoothly, as long as I stayed on the “happy path” I was able to do what I wanted to do. As soon as I started to stray…

Azure Application Insights Funnels

As defined by Microsoft: Understanding the customer experience is of the utmost importance to your business. If your application involves multiple stages, you need to know if most customers are progressing through the entire process, or if they are ending the process at some point. The progression through a series of steps in a web…

Passing Scope to Azure AD B2C

I have been playing a lot lately with Azure AD B2C, trying to look at replacing Auth0 with Azure AD B2C. Auth0 is definitely the easier of the two to implement, for now. Anyway, I have been using Postman to authenticate to Azure AD B2C when I began struggling with how to pass multiple scopes. …

Update Application Settings for an Azure App Service

With our migration to VSTS I ran into an issue where I wanted to update Application Settings for an Azure App Service. At first I thought I could just modify the Variables in my Release Build Definition. Unfortunately that did not work. ☹️ Variables are geared towards transformation, be it web.config or appsettings.json. What to do?…