Instead of storing user id / passwords or database connection strings in source or configuration files, you should consider storing them in an Azure Key vault. Azure Function 400 Bad Request How to connect to a database from an Azure Function Create an Azure Key Vault secret How to connect to a database from an […]
Read More →How to connect to a database from an Azure Function using Azure Key Vault
In my original article here where I stored the database connection string in an Environment Variable which is no longer an optimal approach (it was only for example). I will now update the Azure Function to access an Azure Key Vault secret which has the database connection string and use it to make the database […]
Read More →Create an Azure Key Vault and Secret
Storing, for example, a database connection string which include server name, user id and password in source code or in a configuration file is what is called ‘password leaking’. That means that anyone who has access to application source code can search through and get access to the database, because the information required to connect […]
Read More →Azure Function 400 Bad Request
I was writing these articles and received this error when calling my Azure Function: [Info] The following Exception happened: Response status code does not indicate success: 400 (Bad Request). Create an Azure Key Vault secret Using Managed Service Identity MSI with and Azure App Service or an Azure Function How to connect to a database […]
Read More →How (I) would handle a timeout in Azure Function
I wrote this article about adding a host.json file to an Azure Function “How to add a HOST.JSON file to an Azure Function” and while I was breaking it, I saw a behavior which I didn’t expect. The behavior was that my code within the try…catch… block continued to execute after the timeout, the code […]
Read More →How to add a HOST.JSON file to an Azure Function
I have written numerous articles about Azure Functions, view them here. The fact is, the HOST.JSON file is created for you when the Azure Function App is created originally/initially and it does not need to be added. I expected to see it when I expanded the View Files for the Function, see Figure 1, but […]
Read More →Implementing custom cultures, CultureInfo, localize Azure App Service
You cannot, at this moment, create a custom culture on an Azure App Service. Cultures are part of the standard operating system and require changes to the registry to modify or add them. An Azure App Service runs in a sandbox which does not allow code or script to modify the registry. I do not […]
Read More →ASP.NET Core 2.1 and HTTP Error 502.5 – Process Failure
I was deploying my ASP.NET Core 2.1 64-bit HelloWorld application and got this error, Figure 1. Figure 1, ASP.NET Core 2.1 502.5 x64 64 bit Common causes of this issue: The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port […]
Read More →Web Deploy ERROR_DESTINATION_NOT_REACHABLE Azure Web App
I was writing this article where I was testing out how to backup my App Service from the Cloud Shell using BASH. And I got this exception when I was publishing, Figure 1. Web deployment task failed. (Could not connect to the remote computer (“***.scm.azurewebsites.net”). On the remote computer, make sure that Web Deploy is […]
Read More →How to install ASP.NET Core 2.1 for development
A few days ago Microsoft announced the release of .NET Core 2.1, ASP.NET Core 2.1 and Entity Framework 2.1 here. I wrote a few similar articles about installing Core components, read them to get some greater perspective: Create a .NET Core 2 application on Linux with Visual Studio Code How to enable C# 7 in […]
Read More →