azure-web-sites

Azure Website Continuous Deployment always picks up the wrong project

浪子不回头ぞ 提交于 2019-12-05 00:49:18
问题 I have the following folder structure in my TFS online: The folder names also match the project names in the solution. Legend: green dot: web api 2.0 project red dot: class library blue dot: console app added as a webjob to the web project grey dot: console app only used for testing Working folders for build definition: The build definition was created automatically by connecting Azure to TFS online, and I have only changed the folder, so instead of the Team Project root folder, it points to

Azure Website Error 502

送分小仙女□ 提交于 2019-12-05 00:34:41
问题 I have an ASP.NET Webforms Application on Azure but i always get the following Error on some sites: 502 - Web server received an invalid response while acting as a gateway or proxy server. I already read a lot of topics regarding the 502 error on Azure but i still don't understand what the problem in my particular situation is. The error occurs just on some site of the application. I can always reproduce the following pattern: Open SITENAME.azurewebsites.net -> Error occurs Open SITENAME

Azure website keeps throwing the error “An attempt was made to access a socket in a way forbidden by its access permissions”

≯℡__Kan透↙ 提交于 2019-12-04 23:19:47
I have a website running as a web app on a dedicated Azure plan. It connects to a Redis, SQL Azure and a MongoDB backend. The website has been running fine for weeks now and then without any new code I am now getting lots of socket exceptions starting like the one below. An attempt was made to access a socket in a way forbidden by its access permissions. The website intermittently gets the error when connecting to Redis, SQL Azure and MongoDB which makes no sense. I changed the Pricing Tier for the site which would move the website from one VM to another behind the scenes and the errors went

How Scale-out work in Azure App Services

こ雲淡風輕ζ 提交于 2019-12-04 22:51:53
I am trying to wrap my head around the concept of Azure App Service plan and Azure App Services, with no luck. My understanding is that an App Service Plan defines the capacity and the pricing, all apps assigned to a specific App Service plan will share the same resources, is that right? If that is right, then what is the benefit of the scaling-out? If the scale out will create more instances of the same app which at the end will be hosted on the same App Service Plan (sharing the same resources)? I read almost all the official and non-official documentation about Azure App Service plan and

How to add simple authentication to azure mobile/web apps with Azure Active Directory?

痴心易碎 提交于 2019-12-04 22:48:52
My goal is to secure my mobile app custom API methods and use then via httpclient(c#). As a part of the testing I used Postman to request a token and use it to access the resource. Avinash Gadiraju I will explain with the vanilla template that comes when creating a new Mobile App. Create a new mobile app. Publish it to Azure. Open it on Azure portal, Go to Settings blade. Find Authentication / Authorization . Turn App Service Authentication to On and select Azure Active Directory>Express>Create a new AD app . Open Active Directory (Management Portal), pick the directory for your account.

Azure App Service load balancing settings

耗尽温柔 提交于 2019-12-04 22:02:15
问题 ARM template for Azure App Service has setting to configure load balancing algorithm - loadBalancing. According to documentation it's available through SiteConfig object and can have following values: WeightedRoundRobin, LeastRequests, LeastResponseTime, WeightedTotalTraffic, RequestHash. We performed some testing with Standard S1 app service plan with two instances. First instance was responding to all request with no delay, second instance was responding to all requests with 3 seconds delay

Adding authentication to static Azure Website

女生的网名这么多〃 提交于 2019-12-04 20:13:59
问题 We have an Azure Website hosting a static site (just some HTML, CSS, Javascript), which then communicates with our Azure Mobile Services by AJAX calls. We would like to add some very simple authentication to this site (just a static username/password will be sufficient). Please recommend the easiest way to do this. Or may be there is some better option for serving static content, other then Azure Websites? 回答1: A very simple form of authentication with a static username and password can be

Execute Code First Migrations on Azure with Remote Connection String

守給你的承諾、 提交于 2019-12-04 18:41:56
I am publishing an Azure Web App, and I'm running into a strange issue executing code first migrations. The remote connection string for this database is working just fine if I do not check "Execute Code First Migrations". However, if I check the box, a strange connection string with a curious misspelling, "ConnetionString", gets injected into the remote web.config: <add name="DbContext_DatabasePublish" connectionString="DbContext_DatabasePublish.ConnetionString" providerName="System.Data.SqlClient" /> This, of course, is not a valid connection string and the EF initializer throws this

How to run node.js in azure webjobs?

情到浓时终转凉″ 提交于 2019-12-04 18:21:56
I am having several node js script files.I have to run these js files in azure web jobs.can any one tell me the detail step for how to add the node.js files in azure web jobs and also how to run these web jobs. If you have a file with a .js extension it'll be run as a node program Full documentation on Azure Web Jobs here: https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/ It's relatively easy if you know some undocumented details :) The key concept is ensuring correct application structure (for Azure). Your main application script should be named run.js , so

Azure Web Apps - how to run script before deployment

…衆ロ難τιáo~ 提交于 2019-12-04 18:04:31
I'm trying to use Azure Web Apps (Linux) to host a basic static site. I configured everything so a new deployment happens with every Git push. I put my pre-built pages in my repo to confirm everything works fine with this setup. Now I've removed the pre-built pages and kept only the templates and the build script (which is basically just an npm install and a mustatic 'compile') and I'd like to run this build script in my web app. I've scoured the internet but can't find anything. How can I run a script upon first deployment and after each Git-push-triggered deployment? How can I run a script