azure-web-sites

How to set Azure Authentication custom login return url?

吃可爱长大的小学妹 提交于 2019-12-17 19:47:04
问题 I followed this article https://azure.microsoft.com/en-us/blog/announcing-app-service-authentication-authorization/ to set up Azure authentication for my MVC app. First I turned on Azure AD provider. In the Authentication / Authorization settings, I selected "Allow request(no Action)" for "Action to take when request is not authenticated" because I only need users to login for certain controller actions. Then I added a custom FilterAttribute to check if one action needs authentication as in

How can increase Azure App Service 230 sec request time out

时光总嘲笑我的痴心妄想 提交于 2019-12-17 19:46:59
问题 I have hosted an Asp.NET MVC application on Azure App Service. I am getting a timeout exception which elapsed more than 230 seconds. How can increase it on Azure App Service? 回答1: As far as I know, 230 seconds is the maximum amount of time that a request can take without sending any data back to the response. We couldn't increase it in azure web app. Here are two work around. One is you could move your application to a cloud service or created a VM where you have control over those settings.

How to set redirect_uri protocol to HTTPS in Azure Web Apps

╄→尐↘猪︶ㄣ 提交于 2019-12-17 18:57:59
问题 I am facing the following problem. I have an ASP Net Core 2 web app that I want to deploy to Azure. The app authentication is integrated with the Azure Active Directory, so when I try to login the following requests happen: GET https://login.microsoftonline.com/ecf3f643-27e5-4aa7-9d56-fd350e1e9c37/oauth2/authorize?client_id=20a2bcb5-0433-4bb4-bba3-d7dc4c533e85&redirect_uri=http://myapplication.mydomain.com/account/signin [...] 200 OK POST http://myapplication.mydomain.com/account/signin 301

Create a Scheduled Azure WebJob with PowerShell

懵懂的女人 提交于 2019-12-17 18:50:42
问题 I am trying to create an Azure WebJob to send a BrokeredMessage to an Azure ServiceBus Topic, the actual act of creating and sending the message is trivial however I have been unable to find a way to automate the creation of the Scheduled WebJob. The automated workflow should work as follows: Create a new Azure Website [Done] Create a new triggered Azure WebJob uploading a PS1 file [Done] Create a new Azure Scheduler Job Collection [Proven Concept] Create a new Azure Scheduler Job that

How to take web app offline while publishing?

人盡茶涼 提交于 2019-12-17 18:45:09
问题 Very often, when I hit Publish in VS13, I get the site to compile but when uploading I get the error saying that a file is busy. Updating file (MyAzureSite\PrecompiledApp.config). C:...\v12.0\Web\Microsoft.Web.Publishing.targets(4255,5): Error ERROR_FILE_IN_USE: Web deployment task failed. (The file 'PrecompiledApp.config' is in use. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.) When I follow the link provided, it's suggested that I should go for enabling

How can I keep my Azure WebJob running without “Always On”

陌路散爱 提交于 2019-12-17 18:33:14
问题 I have a continous webjob associated with a website and I am running that website on the Shared mode . I don't want to go to Always On option as there is no real need for my application. I only want to process the message when the calls are made to my website. My issue is that the job keeps stopping after few minutes even though I am continuously calling a dummy keep alive method on my website at every 5 minute that posts a message to the queue that is monitored by that webjob. My webjob is a

How do you force express on node.js in Azure Websites to use https?

不羁岁月 提交于 2019-12-17 16:52:14
问题 Running on Windows Azure Websites, I want to use ssl via the default *.azurewebsites.net certificate. It works without doing anything, but http is also available for every destination, not just https. How do I force a redirect from http to https? Normally I could just do something like: var https = require('https'); ... var options = { key: fs.readFileSync('path.key'), cert: fs.readFileSync('path.crt') }; ... https.createServer(options, app) but since I don't know anything about the *

Azure Web App Not Using GZip Compression

烂漫一生 提交于 2019-12-17 13:23:52
问题 I was using WebPageTest to test the performance of my Azure Web App (ASP.Net vNext Web API/Angular). I got an F for both "Compress Transfer" and "Cache Static Content". After searching StackOverflow and Google, I added the following to my web.config: <urlCompression doStaticCompression="true" doDynamicCompression="true" /> <httpCompression> <dynamicTypes> <clear /> <remove mimeType="*/*" /> <add enabled="true" mimeType="text/*"/> <add enabled="true" mimeType="message/*"/> <add enabled="true"

Adding custom properties for each request in Application Insights metrics

主宰稳场 提交于 2019-12-17 10:38:11
问题 I d'like to add custom properties to metrics taken by Application Insights to each request of my app. For example, I want to add the user login and the tenant code, such as I can segment/group the metrics in the Azure portal. The relevant doc page seems to be this one : Set default property values But the example is for an event (i.e. gameTelemetry.TrackEvent("WinGame"); ), not for an HTTP request : var context = new TelemetryContext(); context.Properties["Game"] = currentGame.Name; var

Will “Always On” setting prevent BOTH idleTimeout and periodicRestart?

谁都会走 提交于 2019-12-17 09:55:33
问题 Has you may know, Web sites hosted under Microsoft Azure Web Sites service are by default configure to timeout after idling 20 minutes (idleTimeout) and the application pool to restart every 29 hours (periodicRestart). This cause the web site to be slow for the first user accessing it. I would like to know if the new "Always On" setting available on standard mode will prevent both situation from happening. I found a few articles mentioning the feature, they are all very clear that the idle