azure-web-sites

Azure App Service Memory Usage. Where to see full breakdown?

这一生的挚爱 提交于 2019-11-29 03:31:11
We recently ran out of memory on our sites under an Azure App Service Plan. This threw a "Memory Resource Exhausted" error on all Apps. Clicking "CPU Percentage and Memory Percentage" shows a spike to 82% in last 24 hours. Navigating to "Metrics per Instance (App Service Plan)" I get a visual of all Web Apps.. Adding up ALL their Working Set in MBs added up to 22% at time of 82% App Service Plan usage. This SO answer suggests viewing memory usage in Kudu. Does Azure Dashboard or Kudu have any way to show a break down of specifically "App Service Plan" memory usage? Go to Diagnose and Solve

How do we use CloudConfigurationManager with asp.net 5 JSON configs?

拟墨画扇 提交于 2019-11-29 03:25:09
Asp.net 5 has a new configuration system which utilizes json files for settings. You have to manually select the json file you want loaded as your configuration with the .AddJsonFile(string fileName) method of the new Configuration class. Meanwhile, in Azure land we've got this nifty CloudConfigurationManager class which is supposed to handle grabbing settings from the Azure Website settings or the active web.config if a Azure setting is not found. But how are these two things intended to work together? I'm having trouble finding any documentation. I'd like to manage my settings in Azure for

How do I set an ADO.NET Entity Framework connection string via the Windows Azure (Preview) Management Portal?

人走茶凉 提交于 2019-11-29 02:56:25
In the Windows Azure (Preview) Management Portal you can change the configuration options for web sites (see http://www.windowsazure.com/en-us/manage/services/web-sites/how-to-configure-websites/#howtochangeconfig ). I currently set the connection string for my ADO.NET Entity Framework connection via Web.Release.Config, but I want to set it via the Management Portal, but no matter what I use, I always end up with the following error: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid. It does work for

Host Angular2 app with routing in Azure

随声附和 提交于 2019-11-29 01:15:56
问题 I'm developing an app in Angular 2 using the angular cli. The app works fine, and runs ok when I deploy it in Azure, but the routing doesn't work. I can access my app via "myapp.azurewebsites.net", but if I try "myapp.azurewebsites.net/settings" I get an 404 error. I have found a lot of guides with a lot of different ways to make different servers route everything to one index-file, but none have worked, at all. Like providing an web.config file, configuring node or express server, and both

How to change default time zone in azure website service?

三世轮回 提交于 2019-11-29 00:57:10
问题 I'm new to Azure Web Sites service. I uploaded my web site files and it works very nice. But I have a problem with default time zone. My location is Seoul(+9). But the code return UTC(+0) time when I call below. DateTime.Now; Is there any way to solve this problem without complicated fix like editing Web.config? 回答1: It is now possible to change the server time zone for your Azure Websites / Web Apps. To do this, add an application setting (using the portal) called “WEBSITE_TIME_ZONE” equal

How to deploy a simple static micro site on Microsoft Azure

…衆ロ難τιáo~ 提交于 2019-11-29 00:08:03
问题 I plan to move all my websites from my own baremetal server to Microsoft Azure. To get things started I want to do a POC and deploy a very simple static microsite - a single html page with some css/img/js resources. How does one go deploy a simple static website? I can see options for simple CMS type sites, but nothing for the most basic of sites. 回答1: While there are several options as mentioned Brents answer (and comments), I find one simple option as easiest. Create a website from the

Is it possible to run ASP.NET 5 site directly on Kestrel in Azure WebApps?

柔情痞子 提交于 2019-11-28 23:59:05
I have checked that in the web response the server is IIS when I deploy ASP.NET5 to azure web app, so I guess the IIS platform handler is used to redirect it to Kestrel. So I am wondering if it is possible to run directly on Kestrel, and what benefits/drawbacks will that have (probably regardless if it's in Azure or not). I suppose it will be a bit faster since IIS will be excluded from the pipline, but it should not be too much overhead I suppose... Maxime Rouiller On Azure Web App, you cannot bypass IIS. But in the general case, you can definitely run Kestrel directly. It is after all just

Can I invoke an Azure webjob from an Azure website and pass it parameters?

♀尐吖头ヾ 提交于 2019-11-28 23:32:18
I have an Azure webjob that I want to invoke from an Azure website. I want to pass string parameters from the website to the webjob. I know I can invoke the webjob as a REST API ( https://github.com/projectkudu/kudu/wiki/Web-jobs ). So I can invoke the webjob without any parameters: POST jobs/triggered/myjobname/run But adding parameters at the end doesn't appear to be working, i.e. jobs/triggered/myjobname/run?myparam1=value1 The information I see on using attributes in Microsoft.WindowsAzure.Jobs for binding doesn't mention my case, just binding to Azure storage items ( http://blogs.msdn.com

Azure Website Remote Debugging with git deploy not working

有些话、适合烂在心里 提交于 2019-11-28 21:41:27
问题 I've been trying out the new Remote Debugging feature for Azure Websites, but I think I may have come across an issue: I can only get it to work properly if I use Web Publish. If I deploy a site with local git deploy, the debugger attaches but the debug symbols aren't loaded (breakpoints show the warning). I tried both setting the Release configuration to include PDB files (since Azure's git deploy uses the Release configuration by default) and by using a custom deploy script generated by the

Show ASP.NET 5 error page in Azure web app

依然范特西╮ 提交于 2019-11-28 21:13:22
I am getting a 500 Internal Server Error when deploying our ASP.NET 5 web application to an Azure Web App. How do I get the details and stacktrace for this exception? I have done the following but with no luck: Using the diagnostics error page on startup: app.UseErrorPage(); Setting ASPNET_ENV in Azure portal: Using DNX beta 6. In case this helps someone, I've found out that if you're using ASP.NET RC1 and you're using Azure WebApps and add an App setting called Hosting:Environment with a value of development a stack trace for server 500 errors will display. For this to work the Configure