azure-web-sites

How to customise Azure Web App 403, 503 error pages?

家住魔仙堡 提交于 2019-11-28 03:36:37
问题 I am at a loss as to how to present a custom error page, with professional branding, for errors covering: 403 - Wep App stopped - currently get blue page with Azure text. 503 - Service Unavailable - currently get white page with "service unavailable" I have tried to use CloudFlare custom error pages, but this does not work. For a 403, traffic still gets routed throught to Azure, where it gets the standard Azure 403 Page. Must be possible? 回答1: There are two categories of HTTP errors that can

Do you need 2 instances of Azure websites for SLA like Web Roles?

耗尽温柔 提交于 2019-11-28 03:24:38
问题 On cloud services web roles you must create at least 2 instances to get Azure's 99.95% SLA because when they do updates to the servers' OS etc, Azure will need to restart the machines (one at a time). This is well documented and you will be shouted at by the portal when running a one instance web role for doing this. With Azure websites you don't get such warnings and I cannot find any documentation suggesting 2 instances for the 99.9% SLA. However, I also can't find any documentation saying

Is there a way to view deployed files in Azure?

心不动则不痛 提交于 2019-11-28 03:11:12
Is there a file "view" available in Azure? When I log in to azure to look at a website I've deployed there is no obvious way I have spotted to see exactly what files Azure is hosting. I'd love to be able to see exactly what files are there. I can see there's the Visual Studio Online option which allows you to live edit your server code but that is more than I need. I just want to be able to check that certain files are deployed and others are not. If you're just trying to look around, and see the various directories and files in your deployment, you can enter the site's "Kudu" dashboard, using

Could not load file or assembly System.Web.Http.WebHost after published to Azure web site

為{幸葍}努か 提交于 2019-11-28 03:05:01
I created a web project and it runs well in Visual studio. However, I got the following error after published it to azurewebsites. What can cause the issue? Could not load file or assembly 'System.Web.Http.WebHost, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where

azurew website continuous deployment - Web Deploy cannot modify the file 'XXX' on the destination because it is locked by an external process

喜欢而已 提交于 2019-11-28 02:47:05
问题 I'm running into the following error when trying to deploy an azure website via TFS continuous deployment. I'm using the TfvcContinousDeploymentTemplate.12.xaml build definition template. Exception Message: Web Deploy cannot modify the file 'Antlr3.Runtime.dll' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net

Azure website scaling

↘锁芯ラ 提交于 2019-11-28 02:12:25
问题 Can I scale azure web apps/api apps using Azure Management libraries? I basically want to implement scaling up and down of web apps to handle throttling. Hence, I need to scale the web app and api apps via C# code. Any pointers to any apprpriate library/ ReST API? With teh help of the answer mentioned below, I understand how to update the APP Service plan to scale out, however, I am not able to find webHostingPlanName for my APP Service. I tried with the below code, and hosting plan always

How do I enable PUT requests in Azure?

让人想犯罪 __ 提交于 2019-11-28 02:09:42
I'm building a REST API on Azure, but when I try to access an endpoint via the PUT method I get a HTTP 405 "Method Not Allowed" status along with an IIS error message: The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used. How do I enable the PUT method, and other methods that may be blocked by default by Azure's default config settings? I tried adding a web.config file to the root of my application with allowUnlisted set to true on the verbs element: <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <security>

Azure Apps EasyAuth claims with .NET Core

霸气de小男生 提交于 2019-11-28 01:46:26
I want to write some ASP .NET Core middleware to turn the Azure Apps EasyAuth HTTP headers into claims. I've found two ways to do it: Parse the token that EasyAuth provides in the HTTP header. This doesn't seem like a generic solution as I'd have to write code to parse tokens for every identity provider. Make a server-side request to /.auth/me. This returns some JSON which I'd like to convert to claims but I'm not sure if I have to do this manually or there is framework support for it. Is #2 the best approach, and is there any framework support for it? Bruce Chen According to your description,

How to add a certificate to an Azure RM website with Powershell

独自空忆成欢 提交于 2019-11-28 01:41:56
Lightly related to How to add an SSL certificate to an azure website using powershell? I am trying to add a certificate to an Azure RM website via Powershell. I don't think there is a direct Azure Powershell command, and it will need to be done via New-AzureRmResource In the latest release of Azure PowerShell v 1.1.0, there is a number of new commands to handle SSL certificates in Azure Web Apps You can upload the certificate and bind it to hostname using New-AzureRmWebAppSSLBinding -ResourceGroupName myresourcegroup -WebAppName mytestapp -CertificateFilePath PathToPfxFile -CertificatePassword

How does the Azure Web Apps architecture look like?

我与影子孤独终老i 提交于 2019-11-28 01:26:34
I've had a few outages of 10 to 15 minutes, because apparently Microsoft had a 'blip' on their storages. They told me that it is because of a shared file system between the instances (making it a single point of failure?) I didn't understand it and asked how file share is involved , because I would assume a really dumb stateless IIS app that communicates with SQL Azure for it's data. I would assume the situation below: This is their reply to my question (I didn't include the drawing) The file shares are not necessarily for your web app to communicate to another resources but they are on our