I created a sample CRUD demonstrating API functionality using a .NET Core Web API and Azure Functions. Each project contains RESTful API endpoints for adding, updating, fetching and deleting a record from a database. There are currently two flavors: Cosmos DB 3.0 SDK at https://github.com/mattruma/Heroes Entity Framework Core at https://github.com/mattruma/Heroes/tree/EntityFrameworkCore In the future, I will…
Adventures with Azure AD B2C: Postman, Bearer Tokens and Scope
I am trying to get a Bearer token from Azure AD B2C using Postman. I setup my Azure AD B2C tenant as described in Authentication in web APIs with Azure Active Directory B2C in ASP.NET Core. I opened up Postman to test getting a Bearer Token. After I logged in, I would get an invalid_request…
Adventures with Azure: Swagger and XML Comments
For my API projects I like to generate XML comments that are used in conjunction with Swagger to provide better guidance on how to use the API, from methods to models. To do this, I just add the following snippet of code to my Startup.cs file: In the above example I want to include XML…
Adventures with Azure DevOps: Populating Azure Table Storage
Lately, I have been playing around with Azure DevOps, specifically a web application deployment using ARM Templates and Azure PowerShell. I have a project, and an associated GIT repository, in Azure DevOps where I keep my ARM Templates and PowerShell scripts that I use for the deployment of my web application. The release pipeline is…
Adventures with Azure DevOps: Deploying Azure Resource Group
In this article I will demonstrate a couple of ways to deploy an Azure Resource Group using Azure DevOps. Setup To get started you will need to create an Azure DevOps project and a repository. I created a repository in GitHub, called SampleAzureDevOpsResourceGroupDeployment, which can be found at https://github.com/mattruma/SampleAzureDevOpsResourceGroupDeployment. You can also create the GIT…
Adventures with Azure Functions: Dependency Injection
In this article we will look at how to do Dependency Injection with Azure Functions as described in the article athttps://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection. The code for this article can be found at https://github.com/mattruma/SampleDependencyInjectionFunctionApp. To make the most of this article, it will be helpful to be familiar with: Azure Functions Dependency Injection and Dependency Injection in ASP.NET…
Adventures with Cosmos DB: Change Feed – Part 2
In Part 1 we looked at how to setup the Azure environment with a Cosmos DB and several Azure Functions, most of which, would be listening to the Cosmos DB change feed. In Part 2 we will take a deeper dive into each Azure Function and the nuances of working with the Cosmos DB change…
Adventures with Cosmos DB: Change Feed – Part 1
In a recent project I had dig deeper into how the Cosmos DB change feed worked, specifically in conjunction with the Azure Function Cosmos DB Trigger. I had some assumptions on how the Cosmos DB change feed worked, but needed to validate them. This will like be a series of articles. Before we go any…
Adventures with Azure: Call a Secure Azure Function from a Logic App
In a previous article I talked about how to Secure an Azure Function App with Azure Active Directory, now I would like to look at how to call a Secure Azure Function App from an Azure Logic App. Let’s first create a Logic App. In the Azure Portal, click Create Resource, type Logic App in…
Adventures with Azure Functions: Secure a Function App with Azure Active Directory
While authorization keys make it easy to work with Azure Functions, they are not recommend as the way to secure an Azure Function in production. There are three recommend ways to secure an Azure Function in production: Turn on App Service Authentication/Authorization Use Azure API Management (APIM) to authenticate requests. Deploy your function app to…