How to find apiVersion used for REST API or ARM templates

Template Azure ARM Benjamin Perkins
Template Azure ARM Benjamin Perkins

I wrote a few articles that discuss how and or why you would need to know the apiVerion api-version when calling Azure REST APIs or making a deployment with an Azure Resource Manager (ARM) template. Azure Function 400 Bad Request How to disable/enable HTTP/2, Azure App Service Using Postman to call Azure REST APIs Make…

0

How to read, unable to read appsettings.json values ASP.NET Core

ASP.NET Core Benjamin Perkins
ASP.NET Core Benjamin Perkins

I wrote this article here “Database connection string when swapping between App Servers slots” and if you look at the last paragraph I mentioned a ‘gotcha’ when you have an application setting, “AppSetting” in your web.config file which has the same name as an application setting you have configured, via the portal of your Azure…

1

Using Managed Service Identity (MSI) with an Azure App Service or an Azure Function

Managed Service Identity MSI Benjamin Perkins
Managed Service Identity MSI Benjamin Perkins

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…

0

How to connect to a database from an Azure Function using Azure Key Vault

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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…

0

Create an Azure Key Vault and Secret

Azure Key Vault Benjamin Perkins
Azure Key Vault Benjamin Perkins

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…

0

How (I) would handle a timeout in Azure Function

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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…

0

How to add a HOST.JSON file to an Azure Function

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

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…

0

Implementing custom cultures, CultureInfo, localize Azure App Service

Azure App Service
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…

0

Web Deploy ERROR_DESTINATION_NOT_REACHABLE Azure Web App

Azure App Service
Azure App Service

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. Figure 1, ERROR_DESTINATION_NOT_REACHABLE publishing using MSDEPLOY Web Deploy from visual studio Kind of makes sense that trying to publish while the site…

0

How to install ASP.NET Core 2.1 for development

ASP.NET Core Benjamin Perkins
ASP.NET Core Benjamin Perkins

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…

0

How to install Entity Framework Core 2.1

.NET Core Benjamin Perkins
.NET Core Benjamin Perkins

I wrote this post about installing ASP.NET Core 2.1, plus these others which may be of interest: Create a .NET Core 2 application on Linux with Visual Studio Code How to enable C# 7 in Visual Studio 2017 How to install .NET Core 2.0 How to install .NET Standard 2.0 How to install ASP.NET Core…

0

Time sync, synchronization on an Azure App Service

Azure App Service
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…

0

How to deploy to Azure using an ARM template with PowerShell

Azure PowerShell Benjamin Perkins
Azure PowerShell Benjamin Perkins

I wrote this article here “How to use/create ARM templates for deployments” where I show how I generated the ARM template for multiple Azure features existing in a Resource Group.  I then deploy all features using the ARM template using the Template deployment blade in the portal.  This article explains how to run the same…

0

How to Azure Function App with Hybrid Connection

Azure Functions Benjamin Perkins
Azure Functions Benjamin Perkins

On my path to create this article, I wrote numerous other along the way.  To get a overview of the project I worked on, read the following articles as well. Required parameter ‘adminPassword’ is missing (null). osDisk.managedDisk.id’ is not allowed Creating an Azure App Service Hybrid Connection How to deploy to Azure using an ARM…

0

Creating an Azure App Service Hybrid Connection

Networking Benjamin Perkins
Networking Benjamin Perkins

This is such a simple yet powerful tool to use, easy to implement and does some real hard core, complicated stuff in the back ground to get the connectivity to work.  Similar instructions can be found here “Azure App Service Hybrid Connections”. I wrote this article about connecting an Azure App Service to VM in…

0