Tag: Azure Web Apps

I was deploying an ASP.NET Web API to an Azure App Service Web App and I got this error: Server Error in ‘/’ Application. A route named ‘HelpPage_Default’ is already in the route collection. Route names must be unique. Parameter name: name Description: An unhandled exception occurred during the execution of the current web request….

I was creating an ASP.NET Web API today and when I called one of the Web APIs (/api/values) I got the following response: {“Message”:”Authorization has been denied for this request.”} It turns out by default ‘Individual User Accounts” authentication is enabled by default. See Figure 1. Figure 1, {“Message”:”Authorization has been denied for this request.”}…

I wrote an article here which talk about how to make an app setting or connection string sticky to the slot. You can make the settings stick using Azure PowerShell. Here are the Azure PowerShell cmdlets required to create an Azure App Service Web App: Login-AzureRmAccount Set-AzureRmContext Set-AzureWebsite (also have a look here at the…

Consider you have the an Azure App Service Web App that handles a large amount of traffic and accesses a database, with an architecture similar to that shown in Figure 1. When you make a deployment you would not want to take the risk of deploying bugs or having significant downtime when you deploy a…

There are 3 kinds of files that an Azure App Service can deal with: Persisted Files Temporary Files Machine Level read-only files What does those mean and what can they be used for? Persisted Files These files are rooted in the D:home path. The contents of these files are shared between all the multiple instances…

Sometimes you experience something and just want to share. This is very corner case, but it threw me for a loop. In this case there was an Azure App Service Web App that had 1 web site running on it. This one site had 2 custom domains bound to it. One of domains used IP…

I needed to remove some auto scale settings from one of my App Services using Azure PowerShell so I decided to document that here. Here are the steps: Login Set the subscription context Get the existing Auto Scale rules based on Resource Group Remove the Auto Scale rule Please keep reading for more details. Login…

#Azure #AzurePowerShell #AppService #PowerShell If you have multiple Azure Subscriptons, when you login you get a default subscription set, so if you try and take any actions on a feature in another subscription you would get a ‘NotFound’ like error. So you need to set the correct subscription. The old (ASM) way of doing that…

#Azure #AzurePowerShell #AppService #PowerShell I wrote an article here about what an App Service Plan is. In simple terms it is the Virtual Machine that is running your web sites. It has a different name becuase the ASP can be SMALL, MEDIUM or LARGE in size or have certain features based on the modes FREE,…

In some cases, there are features which exist on the backend REST APIs which are not yet implemented in the portal. For example, I support the Azure German Cloud as well, and at the moment you cannot configure Auto Scaling from the portal, but the PowerShell cmdlets which call the REST APIs to configure it…