azure-web-sites

Custom logs in Azure website file system combined into single log file

那年仲夏 提交于 2019-12-11 20:21:33
问题 My Azure web app (App Service) writes a log file mywebapp.log to the d:\LogFiles directory of the VM that hosts the website. When the log file gets to a certain size I rename it to mywebapp1.log , mywebapp2.log , and so on so and a new log file is created. (I do this manually - stop the website, rename the file and restart the site.) One day I inspected the directory through the Kudu (SCM) portal and saw just a lone mywebapp.log that was much larger than normal. The file included all of the

Error setting up node v0.11.x on Azure WebSite

[亡魂溺海] 提交于 2019-12-11 20:00:28
问题 We are trying to move a node.js app that requires node v0.11.x to Azure WebSites. When trying to use azure-node-runtime-selector to install node v0.11.x, we encounted what seems a bug caused by nodist installing npm 2.0.0-alpha. Below the output of call to nodist update: 1 file(s) copied. npm http GET https://registry.npmjs.org/npm npm http 304 https://registry.npmjs.org/npm npm http GET https://registry.npmjs.org/npm/2.0.0-alpha-5 npm http 304 https://registry.npmjs.org/npm/2.0.0-alpha-5 D:

Azure browser push notification for chrome, firefox ,and safari browser

泄露秘密 提交于 2019-12-11 19:51:08
问题 How can i implement browser push notification using azure notification hub that can send push notification to chrome,Firefox and safari browsers.I need to implement this for a very high scale users. 回答1: Basically without Azure Notification Hub, you can try to send push notification to different browsers using Web Push API which works on the lastest Chrome & Firefox I tried, please see the Mozilla document for Push API to know it. And there is a cookbook site for Web Push to show some

Azure app cannot connect to Media Services using C#

Deadly 提交于 2019-12-11 19:28:00
问题 I am trying to use Azure Media Services to encode videos uploaded to my web app. Now that ACS is removed from AMS .net extensions and api, it seems the only way to connect is using Azure AD credentials. So I have registered service principal with AAD and Granted contributor right on AMS. All the permissions seems correct and I try to run this sample code and Azure refuses to issue token. Fails on line 80: IAsset sourceAsset = _sourceContext.Assets.Where(a => a.Id == _sourceAssetID).First();

Kudu npm install failed

妖精的绣舞 提交于 2019-12-11 18:45:46
问题 I'm getting a very strange error when trying to deploy my project with kudu on Azure. I have build my project with dotnet with VueJs. I have used the following template "https://github.com/MarkPieszak/aspnetcore-Vue-starter" I have tried setting the WEBSITE_NODE_DEFAULT_VERSION to a few different version now without any luck. Here are the out from Kudu: Command: "D:\home\site\deployments\tools\deploy.cmd" Handling ASP.NET Core Web Application deployment. Restore completed in 735.88 ms for D:

How to access XML hosted as azure blob from azure website

左心房为你撑大大i 提交于 2019-12-11 18:33:20
问题 I'm currently looking into problem: We have a backend application that creates XML files with content and stores them as Azure Blobs (we cannot change this). Blob sample url: http://mytestaccount.blob.core.windows.net We are implementing a webpage that consumes those XML files. Our current solution is static webpage (no iis or any other server required) hosted on the same blob as mentioned XML files. Question 1: Is there a way to redirect a domain name to our webpage hosted currently as blob?

Azure App Service restart when scaling-in

十年热恋 提交于 2019-12-11 18:33:13
问题 I have a scheduled scale-in at 5PM (from 2 to 1 instance) and I noticed almost 3 minutes of downtime when it happened. I checked the logs and it shows that the single instance that remained was restarted the same time that the 2nd was shut down. Is this supposed to happen? 回答1: As far as I know, it is not supposed to happen. The instances are all independent. Also, I test it on my side, I scale from 3 to 1, it just shut down the two instances, not restart the remained one. The logs in the

Approach for archive big files in azure storage

可紊 提交于 2019-12-11 18:28:33
问题 I'm interested in what is approach for storing of sensitive data in cloud in your projects. I want to prepare proof of concept of feature which have to archive files in Azure. We are talking about samething around 30GB of new files per day. 10-2000 MB per file. My first idea was to use Azure Storage to store those files. Files should be send to storage via Azure App Service so I have to prepare some WEBApi. Based on this idea I am curious if there wont be any problems with sending such a big

Getting “404 not found” on doing a GET on local file in Azure web app

冷暖自知 提交于 2019-12-11 17:55:23
问题 I have deployed a simple node based web app in Azure. Following is the structure of my code: In my js code, when I do an xhr.get call to my json file (as shown below), it throws a GET https://<app-url>/locales/en-US.json 404 (Not Found) . xhr.open("GET", "locales/en-us.json", true); ... xhr.send(); As seen below, the calls to my js file and css file are succeeding but the call to my locale file is failing. External calls are working fine too. Note : js and css files have been included as part

Triggered Web Job Executing Completely, and then Aborting with Timeout 121 seconds later

≡放荡痞女 提交于 2019-12-11 17:19:47
问题 I have a webjob which is successfully being triggered in Azure when a new item is added to the storage queue. When it is triggered, I check the logs and all the code written has executed properly, but the web job stays in a "still executing" state, and after 121 seconds after execution it aborts. Here is the method that gets triggered followed by the log file where you can see "Start Processing Content" is written to the log and "Processing Content Has Completed" was written to the log. That