azure-web-sites

Azure App Service Authentication with Google oAuth 2.0 Bearer Token

本小妞迷上赌 提交于 2019-12-13 06:09:32
问题 We are using App Service Authentication to protect a web API and using Google as authentication provider. It works as expected when we fire a request from a browser (when the session information is in the cookie) IIS log: 2016-05-29T13:51:19 PID[3600] Verbose Received request: GET https://XXXXXX.azurewebsites.net/api/user 2016-05-29T13:51:19 PID[3600] Verbose Found 'AppServiceAuthSession' cookie for site 'XXXXXX.azurewebsites.net'. Length: 728. 2016-05-29T13:51:19 PID[3600] Verbose

How to view Http Request Queue for Azure Web App

南楼画角 提交于 2019-12-13 03:55:34
问题 How can I see how many requests are in the queue for an Web App? I have performance issues related to that, but I cannot see how many requests are in there. I have application insight connected to app, but in the metric "Http Requests in Application Queue" I always get 0. I know there are requests in the queue because if I set AutoScale when HttpQueueLength > 1 it will scale adding more instances. 回答1: HTTP queue length is a vm level metric, so you will have to check this at the App Service

Error with WSGI when deploying Flask App to Azure

爷,独闯天下 提交于 2019-12-13 03:49:21
问题 I keep getting the following error when deploying an Azure Web using Flask: Unhandled exception in wfastcgi.py: Traceback (most recent call last): File "D:\home\python364x64\wfastcgi.py", line 791, in main env, handler = read_wsgi_handler(response.physical_path) File "D:\home\python364x64\wfastcgi.py", line 633, in read_wsgi_handler handler = get_wsgi_handler(os.getenv("WSGI_HANDLER")) File "D:\home\python364x64\wfastcgi.py", line 603, in get_wsgi_handler handler = getattr(handler, name)

Get-AzureWebSite : Requested value 'PremiumV2' was not found

℡╲_俬逩灬. 提交于 2019-12-13 03:39:32
问题 I added a new Premium V2 app service plan. Now when running Get-AzureWebSite in PowerShell I'm getting the following error message: get-azurewebsite : Requested value 'PremiumV2' was not found. At line:1 char:1 + get-azurewebsite + ~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureWebsite], ArgumentException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.GetAzureWebsiteCommand What is the error about? 回答1: The old CmdLets are no longer well supported, and don't

How to deploy folder which is not included while publishing to Azure

烈酒焚心 提交于 2019-12-13 03:29:43
问题 we are following plugin architecture, so we are having other projects which can plugin into the main web application.Right now we are using installshield to deploy our dlls from other projects into the main web application. Folder structure: MVC Application -- bin --Plugins -- Plugin1 -- dlls -- Plugin2 --dlls When I published my application to Azure App service.The dlls present in the main web application only got copied.How can I move the dlls present in my plugins folder. Do we need to add

Setting requestTimeout in web.config of an ASP.NET Core Azure Web App via Application Settings

我是研究僧i 提交于 2019-12-13 03:17:24
问题 I have a web.config that looks like so, and is added as a link to a number of applications in my solution: <configuration> <!-- For more info to customize the asp.net core module see https://go.microsoft.com/fwlink/?linkid=838655 --> <system.webServer> <!-- As connection proxy request contains double escape sequence, we need to enable it. background Azure ARM Apis are enabled it. --> <security> <requestFiltering allowDoubleEscaping="true" /> </security> <handlers> <add name="aspNetCore" path=

Harden the security between Azure Web Apps and Azure SQL Database

六眼飞鱼酱① 提交于 2019-12-13 03:06:31
问题 For security concerns I'm planning to not allow Azure services to communicate with Azure services but the services it is only working with. For example, I've some web apps that uses Azure SQL Databases. Should I only add the outbound IP addresses of Azure Web Apps in the Azure SQL server firewall? or I need to do something else? 回答1: The best way to lock down your SQL Database is with AAD Integration, and Managed Service Identities. Azure will provision an AAD identity for your application,

Azure App Service limits body size to ~64kB

喜你入骨 提交于 2019-12-13 02:25:44
问题 I have Node.js app hosted on Azure. It's "Web app" in pricing tier "Default2 (Free)". When I try to send JSON larger than 64kB server returns HTTP error 413 ("Request Entity Too Large") with body Payload Too Large . Setting this in Web.config file didn't help: <configuration> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="102400000" /> </requestFiltering> </security> </system.webServer> </configuration> 回答1: Per my experience, I think the issue was

Azure git push returning 403

会有一股神秘感。 提交于 2019-12-13 00:15:57
问题 This morning I wired in deployments via git for my Azure app. I setup git deployments for the app which gave me a git clone URL. I set that URL as a new remote for my git repository and named it azure-qa . The first time I pushed, git asked for credentials which I had set in Azure. Everything has worked perfectly from the start. I just tried to push again via the command git push azure-qa master and I get the following error: fatal: unable to access 'https://MYUSER@MYSITE.scm.azurewebsites

Azure Web App node.js deploy fails

走远了吗. 提交于 2019-12-13 00:15:31
问题 We tried to deploy a new node.js version on Azure Web App. A new source version is retrieved from our git repository on push. It seems like some of the files remain locked and blocking our new deployment, what can we do, and can we avoid it in the future? (the locked file is an NPM library so it has nothing to do with the app code) updating iisnode.yml at D:\home\site\wwwroot\iisnode.yml npm WARN package.json express-livereload@0.0.24 No repository field. npm ERR! Error: EPERM, unlink 'D: