The number 400

What is significant about the number 400? 400 is 20² 400 is divisible by: 1, 2, 4, 5, 8, 10, 16, 20, 25, 40, 50, 80, 100, 200, 400 400 equals 2⁴ * 5² or ( 2*2*2*2*5*5) 400 is a self-number which are generated by this formula:  You can write 400 like this: four hundred,…

1

How to securely connect to Azure from C# and run REST APIs

Three things that got me here.  First, I learned about creating a Service Principle in Azure and that the credentials for that those can be used to login to Azure, for a given Tenant/Directory ID.  See here “Create an Azure service principal with Azure PowerShell”, also here if you want to see how to create…


What is self-contained deployment mode, works locally but not after deploying

It happens very often that an application is coded, configured and tested on a local machine and when deployed to an Azure App Service or any other machine, for some reason there are unexpected errors and exceptions.  Let the debugging begin. I wrote this article “ASP.NET Core 2.1 and HTTP Error 502.5 – Process Failure”…


Publish a Web App for Containers Windows Docker Image

I wrote these other articles here “How to add Docker support to your ASP.NET Core application” and here “Publish a Docker Windows image to Docker Hub using Visual Studio” that discussed how I got to this point.  So far, not many problems and it went pretty smooth.  When I added Docker support to my ASP.NET…


Resource move validation failed. Cannot move Azure App Service

The scenarios in which you can and cannot move an Azure App Service are nicely documented here “App Service limitations”.  I also wrote an article about this as well here “Moving an Azure App Service”. It is possible to move your Azure App Service between subscriptions and resource groups.  Like I have stated many times…


How to optimize Azure App Service AlwaysOn, cold start, warm up request

When you enable AlwaysOn it means that the application pool will not be shutdown after the idle timeout threshold is breached.  I wrote about this threshold here and here. The point here is that after a cold start of your application, AlwaysOn will send a request to the ROOT of your application.  Whatever file is…


Deep Dive into TCP Connections in App Service Diagnostics

Note: This information below only applies to Windows web apps on App Service. Recently, we released the TCP Connections tile shortcut in App Service diagnostics. In this blog, we will walk through the implications of having unhealthy TCP Connections and how you can analyze them using App Service diagnostics. Why should you care about TCP…


Memory metrics for an Azure Web App and App Service Plan

Did you ever wonder why memory utilization for a Web App is different than the memory utilization of the App Service Plan, as shown in Figure 1? The App Service Plan in thei example is a SMALL BASIC mode machine. Average memory is 50.68MB which is about ~2.8% of the 1.75GB available for a SMALL…


ERROR_CONNECTION_TERMINATED msdeploy web deploy

NOTE:  This exception happens most often when your corporate IT department has a firewall rule or proxy which is preventing the deployment to be made.  The first step should be that you attempt a deployment outside of your corporate network, perhaps from home when connected on your private ISP. I was doing some deployments to…