Category: Azure
-
.NET SqlClient Issue with Windows to Linux Migration
After migrating an Azure Function project from a Windows-hosted plan to the Linux-hosted Flex plan, I started seeing the following exception when trying to open a SQL connection: It turns out this was the result of building with a win-x64 runtime identifier. To fix the issue, I updated my build to use the now appropriate…
-
Grant Azure Managed Identity Access to Azure SQL Database
Maybe more explanation later, but for now, just this snippet: Assumes you have an Azure Function App called my-azure-function-app and used the Identity blade to create a System assigned identity, which was also named my-azure-function-app. Some other sources suggested using the Object ID of the managed identity, but I had no luck with that approach.…