Developing Azure Functions locally

Azure Functions enable running tasks in the background and can work with a range of triggers. You start by creating a Function App and you can add multiple functions to that app. The functions can be in different languages. This post describes how to: Set up your local environment Add the required packages Add triggers …

Continue reading Developing Azure Functions locally

Creating an Azure Search index

In a previous post, I described how I setup a KB data store using Cosmos DB. This post builds on top of that and explains how to create a search index with Cosmos DB as the data source. Azure Search has a free tier that allows creation of three indexes on a data source of …

Continue reading Creating an Azure Search index

Migrating data to Azure Cosmos DB

This post describes the process of generating JSON documents and migrating the generated JSON content to Azure Cosmos DB. The idea is to include links to knowledge base articles and videos in the service request acknowledgement email for the service desk application that I'm building. The customer may be able to solve their problem based …

Continue reading Migrating data to Azure Cosmos DB

Application Settings in .NET Core 2.0

Accessing application settings in ASP.NET Core is different from .NET Standard. There is no web.config file. Instead, we have the appsettings.json file. You can add multiple JSON configuration files and load them when the application starts. In my Service Desk Web API, I need to store and retrieve the configuration settings for an Azure Storage …

Continue reading Application Settings in .NET Core 2.0

Enabling CORS in .NET Core 2.0

I built a Service Desk application in Angular with a Web API backend. The front-end application and the Web API are hosted in the same domain but under different port numbers. Browsers by default block requests from different origins for security reasons.What is "same origin"? Two URLs have the same origin if they have identical …

Continue reading Enabling CORS in .NET Core 2.0