azure-web-sites

How to setup Azure App Service to run on .Net Core through Azure Resource Manager

陌路散爱 提交于 2020-01-29 19:40:46
问题 I have setup an App Service using the following ARM template snippet: { "name": "[variables('webBackEnd')]", "type": "Microsoft.Web/sites", "location": "[parameters('location')]", "apiVersion": "2015-08-01", "dependsOn": [ "[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]" ], "tags": { "[concat('hidden-related:', resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName')))]": "Resource", "displayName": "BackendWebApp" }, "properties": { "name": "[variables(

Can I set specific time zone to Azure Functions app?

久未见 提交于 2020-01-24 20:35:06
问题 Please let me hear your advice. I played the setting of server time zone from UTC to specific time zone at azure web apps and it was good and changed as I expected specific time zone. [PROCESS] App Setting : WEBSITE_TIME_ZONE = Tokyo Standard Time Now, I want to use specific time zone within function app. But, azure functions app is not settable like as web apps. reference link But, this ref link expressed like as it only effect on web apps reference link 回答1: I set WEBSITE_TIME_ZONE = Tokyo

how to add custom jars to GLOBAL jetty classpath on azure web app service?

只愿长相守 提交于 2020-01-24 20:14:07
问题 I'm trying to deploy a java web app on jetty on azure web app service that uses postgres data source. The problem is that I don't know how to add postgres JDBC driver to global jetty classpath, which is required by jetty to create the data source before deploying my app (hence I can't just add the driver to WEB-INF/lib subfolder of my war). I've tried to create site/wwwroot/lib/ext folder and put the driver there, but it seems that jetty's ext module which should automatically add all jars

Why can't I make cross origin requests to an API hosted in IIS?

一世执手 提交于 2020-01-24 20:12:29
问题 I have an ASP.NET WebApi application running locally using IISExpress that allows me to accept requests from any domain. I am doing this using a DelegatingHandler similar to the one provided one this blob post. Locally this runs perfectly however after uploading to an Azure Website, I get the typical 'Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.' under Chrome. I've tried to debug this by adding trace statements into the Handler with no output and it seems like

Azure webjob logs - looking for logs that detail the SDK's handling of queue triggered items

元气小坏坏 提交于 2020-01-24 20:11:29
问题 As shown in my Stack Overflow question Azure webjob not appearing to respect MaxDequeueCount property, I'm troubleshooting a problem where despite my setting of the MaxDequeueCount property to 1, some items are dequeued many times before they're poisoned (in fact some items may never be poisoned at all and just dequeue, fail and are retried and fail endlessly). The Webjobs SDK handles the retries and poisoning of queue triggered messages automatically and I'm looking for logs that contain

Azure webjob logs - looking for logs that detail the SDK's handling of queue triggered items

北城以北 提交于 2020-01-24 20:11:26
问题 As shown in my Stack Overflow question Azure webjob not appearing to respect MaxDequeueCount property, I'm troubleshooting a problem where despite my setting of the MaxDequeueCount property to 1, some items are dequeued many times before they're poisoned (in fact some items may never be poisoned at all and just dequeue, fail and are retried and fail endlessly). The Webjobs SDK handles the retries and poisoning of queue triggered messages automatically and I'm looking for logs that contain

Azure Websites and stateful webApp

萝らか妹 提交于 2020-01-24 14:22:09
问题 I have a naïve version of a PokerApp running as an Azure Website. The server stores in its memory the state of the tables, (whose turn it is, blinds value, cards…) etc. The problem here is that I don't know how much I can rely on the WebServer's memory to be "permanent". A simple restart of the server would cause that memory to be lost and therefore all the games in progress before the restart would get lost / cause trouble. I've read about using TableStorage to keep session data and share it

ApplicationHost.xdt in Azure Web Apps

丶灬走出姿态 提交于 2020-01-24 04:43:13
问题 How to change applicationHost.config in an Azure web app? I try: using (ServerManager serverManager = new ServerManager()) { Microsoft.Web.Administration.Configuration config = serverManager.GetApplicationHostConfiguration(); Microsoft.Web.Administration.ConfigurationSection webLimitsSection = config.GetSection("system.applicationHost/webLimits"); webLimitsSection["connectionTimeout"] = TimeSpan.Parse("00:00:10"); webLimitsSection["dynamicIdleThreshold"] = 150; webLimitsSection[

Create virtual directory on same azure web app

情到浓时终转凉″ 提交于 2020-01-18 10:27:27
问题 I have an application running on Azure, what I need is to have the application copied so different users can access for example site.com/s1 and site.com/s2 and use them as separate. The application is the same, the database will change. I tried to create a virtual directory for my app but I get the same error every time: "The physical path for virtual path '/s1' is invalid." I tried creating a physical directory from FTP and I can see the new directory, but Azure don't recognize it as a

API for metrics per Azure Site instance

自闭症网瘾萝莉.ら 提交于 2020-01-17 08:38:08
问题 In Azure's Portal you can view instance specific metrics per site if you go to a resource , select Metrics per instance (Apps) , select the tab Site Metrics and then click an individual instance (starting with RD00... in the screenshot below): I'd like to get this data (per instance, including the instance name RD00... ) using some REST API call. I've looked at Azure's Resource Manager and their Metrics API, but couldn't find a way to get this data. Is this possible, and, if so, how/where can