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: TransientScopedSingleton Transient When in doubt, make it Transient. When you add a Transient service you are telling ASP.NET Core that each time the service is requested…

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…