There are numerous flavors of ASP.NET modules, for example Web Forms (Web Sites and Web Applications), Web Pages, Model-View-Controller (MVC) and the newest one Core. In this article I want to discuss some learnings about the difference between the compilations of an ASP.NET Web Site (Figure 1) and an ASP.NET Web Application (Figure 2). Figure […]
Read More →Tags: Azure
Using Managed Service Identity (MSI) with an Azure App Service or an Azure Function
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 →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 →Time sync, synchronization on an Azure App Service
An Azure App Service is PaaS and synchronizes the clocks based on the hosting platform. As per this request, the drift may be up to 2 seconds and are synced once per week. That request was made some years ago when an App Service was running on Windows Server 2012 and IIS 8. With the […]
Read More →