When Visual Studio 2022 went GA, I jumped on the new shiny and updated (from 2022 Preview) as soon as I woke up. Once done I went back to developing my isolated Azure Function app and when debugging it would not load with the following message: Failed to load the dll from [%localappdata%\AzureFunctionsTools\Releases\3.30.1\cli_x64\hostpolicy.dll], HRESULT: 0x800700C1…More
Author Archives: Brett McKenzie
Azure Pipelines Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0
I’ve just finished doing a bunch of work in an Azure Function app targetting .NET 5.0Now that .NET 6.0 is GA, .NET 5.0 will reach end of support in May 2022. So I upgraded it to .NET 6.0 and Functions v4. This was all very straightforward, except when building my App in Azure Pipelines, where…More
Error “The input content is invalid because the required properties – ‘id; ‘ – are missing” when using CosmosDB
I’ve been working on an Azure Functions project in the .NET 5 isolated model, and while I am loving the experience, there are a few small annoyances along the way. One of those is when using the Microsoft.Azure.Cosmos Nuget package, which is currently at 3.x and relies on Newtonsoft.Json for serialization of CosmosDB documents. See,…More
OAuth 2.0 Authorization Code Flow with Azure Functions and Microsoft Identity – Part 3: Validating the ID token
This is part three in a three part series on Authorization Code Flow with Microsoft Identity. If you haven’t started at Part 1, I would suggest you do as it would make more sense than starting from here. One thing that was pointed out in the previous post, though, was that any id token for…More
OAuth 2.0 Authorization Code Flow with Azure Functions and Microsoft Identity – Part 2: ID Tokens and Refresh Tokens
This is part two in a three part series on Authorization Code Flow with Microsoft Identity. If you haven’t started at Part 1, I would suggest you do as it would make more sense than starting from here. Previously I had written about how to use Azure Functions to create an OAuth 2.0 Authentication Code…More
OAuth 2.0 Authorization Code Flow with Azure Functions and Microsoft Identity – Part 1 – Getting an Access Token
This is part one in a three part series on Authorization Code Flow with Microsoft Identity. You can also follow through to Part 2 and Part 3. Single Page Applications (SPAs) are a great. For me, they are cheap front-end as they are just static files that don’t need a whole web server/service and there…More
Redirect HTTP traffic to HTTPS in Azure CDN
One of my little projects is a static website running on Azure CDN, with a custom domain endpoint enforcing HTTPS traffic only. This caused a little issue when attempting to reach the URL via http, as my sister-in-law kept doing. Azure CDN has a rules engine that allows you to redirect traffic, this can be…More
Unknown Error “-2147012865” when signing a ClickOnce manifest
Recently, we came across the following issue when attempting to sign a VSTO Add-In with a code-signing certificate: An error occurred while signing: Unknown error “-2147012865” Any search of the error message brought up related answers but not ones specific to this particular error number. Although I can’t be sure of the error number, I…More
“Hostname conflicts with an already existing hostname” when assigning a custom domain to an Azure WebApp
Azure regions don’t like resources with the same custom domain assigned.More
How to know if a SharePoint tenant blocks apps not using modern authentication
Out of the box, SharePoint Online allows someone to authenticate through either the older claims-based authentication or the newer modern authentication. This post shows you how to know if claims is blocked for third-party applications.More