CategoryDevelopment

Cosmos DB Change Feed Processed by Azure Functions – Application Insights Telemetry

C

While working with a Cosmos DB Change Feed processor running as an Azure Function,  I noticed that ‘requests’ are logged as Application Insights telemetry, but show up with no URL, and a response Code of 0. I was able to reproduce this using a lean example, generated from the func new generators. (Code available here: ) I’m trying to figure out why this is, so this is a kind of...

‘No resources found’ error when publishing to Azure App Service using Visual Studio 2019

&

Yesterday, I tried to publish an app to Azure App Service from Visual Studio 2019 (right-click -> publish) (I know, I know… but I just wanted to try this feature out!) I had already set up my Linux App Service Plan (size B1) On clicking publish, and selecting “use existing” I was seeing a rather unhelpful “no resources found” message Of course I’d tried the usual ‘log...

NSwag build error – Project file does not exist / Unable to retrieve project metadata

N

While working on a project that used NSwag, when the solution was built, Visual Studio (and dotnet build from the command line) reported the following error: View the code on Gist. Pretty frustrating, as it wasn’t clear what the error meant. This project used NSwag.MSBuild to generate the client on build. As per their documentation, we had an after build target: View the code on Gist. The problem...

Opening first few lines of a huge file with VS Code

O

I’m currently doing some work looking at the GeoNames dataset. `allCountries.txt` is around 1.5gb, which is pretty large, and certainly too large to open up in vscode for a quick look. However, I found I could use `head` command, which reads the first n lines of a file, and pipe the output to `code -` (which is the command for opening vs code and reading the output from another program) For...

Using Google Sheets and Azure Functions as a headless CMS

U

One of my clients came to me with a relatively simple requirement; they needed to take online payments for their fitness event photography business. The model is quite simple: There are several different competition dates per year. Competitors can purchase professional photos of themselves at a competition. Each competitor will have a ‘badge number’ to identify them. If purchased before the...