azure-web-app-service

Django channels and azure

柔情痞子 提交于 2021-02-10 07:33:42
问题 I am trying to deploy django channels in azure. I have already integrated it with azure redis cache and it's working good in local host. I have tried the normal deployment of django apps in azure, everything except sockets are working. CHANNEL_LAYERS = { 'default': { 'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': { "hosts": [(f'redis://:{os.environ["REDISPASS"]}@mywebsite.redis.cache.windows.net:6379/0')], }, }, } It's showing unexpected error website closed unexpectedly. I

How to fix warning: “Application evaluated unhealthy due to redirection.” on Azure Health Check Feature

£可爱£侵袭症+ 提交于 2021-02-10 06:43:07
问题 I ran "Diagnose and solve problems" on Azure dashboard inside one of the app services, and then I got this critical risk alert: "Application evaluated unhealthy due to redirection.". Recommended actions is: If the application has HTTP to HTTPS redirectoin, consider one of the following solutions. a. Enable 'HTTPs Only' from the TLS/SSL settings blade for the respective App Service. This will force health check pings to over 443. b. Modify the Application logic/ad a URL Rewrite rule so that

Azure App Service Linux PHP - How to add “--with-freetype-dir=/usr/lib/x86_64-linux-gnu” to “./configure”?

℡╲_俬逩灬. 提交于 2021-02-08 10:22:34
问题 I'm trying to install Magento on Azure Linux App Service (PHP 7.3-apache) and I ran into this error: Image CAPTCHA requires FT fonts support Apparently the libfreetype6-dev despite being installed in the underlying container (at /usr/lib/x86_64-linux-gnu ) are not loaded by PHP. Basically, the solution proposed by the other StackOverflow answer is to reconfigure and recompile PHP. To reconfigure you must run the ./configure command with the flag --with-freetype-dir=/usr/lib/x86_64-linux-gnu .

Adding additional files to VSTS Release to azure web app

為{幸葍}努か 提交于 2021-02-07 20:24:52
问题 I have a release in VSTS to deploy my webapp to the azure app service. For this I use a Azure App Service deploy step. After the normal deploy of the webapp I want to add an additional zip artifact from another build result. I want to copy only those file to a specific path of the web application on azure. How can I do that? 回答1: If the zip file is the web deploy package, you can refer to Joy’s answer. (Need to check Application option) Otherwise, the simple way is using Kudu REST API (remain

Is there any way to set up an alert on low disk space for Azure App Service

老子叫甜甜 提交于 2021-02-07 20:21:01
问题 I'm running an Azure App Service on a Standard App Service Plan which allows usage of max 50 GB of file storage. The application uses quite a lot of disk space for image cache. Currently the consumption level lies at around 15 GB but if cache cleaning policy fails for some reason it will grow up to the top very fast. Vertical autoscaling (scaling up) is not a common practice as it often requires some service downtime according to this Microsoft article: https://docs.microsoft.com/en-us/azure

Is there any way to set up an alert on low disk space for Azure App Service

喜你入骨 提交于 2021-02-07 20:20:00
问题 I'm running an Azure App Service on a Standard App Service Plan which allows usage of max 50 GB of file storage. The application uses quite a lot of disk space for image cache. Currently the consumption level lies at around 15 GB but if cache cleaning policy fails for some reason it will grow up to the top very fast. Vertical autoscaling (scaling up) is not a common practice as it often requires some service downtime according to this Microsoft article: https://docs.microsoft.com/en-us/azure

Why are changes to my WebJob not being picked up when publishing the Web App?

二次信任 提交于 2021-02-07 13:00:46
问题 I have an ASP.NET MVC Web App which is deployed to Azure. The solution within VS 2013 Pro has 3 projects: the Web App project a Webjob project a Common project which stores code which is common to both the App and the Webjob. The Webjob project was added to the main App project via the Add --> New Azure Webjob Project context menu, which actually adds a new project within the same solution, which is fine. When I initially published the app to Azure, the Webjob was deployed too and all is

How to resolve error 500 on Azure web app?

随声附和 提交于 2021-02-07 04:48:14
问题 What I have: VS2015U2 ASP.NET 5 MVC 6 website Deployed to Azure Web App The site works locally When I deploy to Azure I get internal server error (500) I'm unable to Attach a debugger since they messed up something with the latest versions (tried manually too https://azure.microsoft.com/en-us/blog/introduction-to-remote-debugging-on-azure-web-sites/) I have app.UseDeveloperExceptionPage(); but I guess the site is failing during configuration so it doesn't display any other information. So how

How to debug Azure Web App memory leaks?

爱⌒轻易说出口 提交于 2021-02-06 20:06:46
问题 There is the excellent Start Profiling button in the SCM portal that works perfect for CPU. Then there are some sources that refer to a Download GC Dump button: https://stackoverflow.com/a/27987593/647845 But that doesn't seem to be available anymore. Then there is the Download memory dump button. But for now I can't figure out how/if I can see the Type / Refcount / Size stastistics that I'm used too. What is the recommended way to look for memory leaks in a C# Azure Web App? 回答1: Try using

How to clean up wwwroot folder on the target Azure Websites Windows Server before each deployment in VSTS

非 Y 不嫁゛ 提交于 2021-02-05 20:24:09
问题 After about a dozen deployments, the wwwroot directory is filled with a lot of files due to active development and deployments. We are using VSTS's Azure App Service Deploy task to deploy to Azure Websites Windows Server for a ASP.NET Web API project, is there a way to clean up the wwwroot directory before deploying to the Avsts pre-deployment clean up? 回答1: When using the Azure App Service Deploy task, and you are using the Publish using Web Deploy option, there is an additional option to