azure-web-sites

Deploy to Azure Web App from Multiple Repositories

纵饮孤独 提交于 2019-12-05 06:53:58
问题 Looking for a way to deploy to an azure web app from 3 separate github repositories. One of the repositories is the main website, the other two are common libraries used by other projects. We want the deployment to pull down from all three repositories into an artifact directory, run msbuild and copy over the artifacts to wwwroot. I am assuming i will need a custom .deployment file along with a kudu batch file. But I can't find any examples on how to pull down from multiple github

Azure websites throw 500 error when there is a colon in the URL

删除回忆录丶 提交于 2019-12-05 05:35:50
External clients are hitting my Azure website with urls that contain the colon (:) character. The request are not valid, but on my old IIS server it would give a 404 error. On Azure, the same URL will give a 500 error. This wastes my time, as I have to check the logs. This is an example of a request: http://www.example.com/http:/www.example.com Is there any way of avoiding this behaviour on the server side, and give 4xx error instead? Keep in mind, this problem is on Azure only, and I do not control the requests. Lukas Kabrt If you are running a .NET application, then this is caused by ASP.NET

C# DateTime.Now in Azure not reporting GMT - can the default timezone be set?

时光总嘲笑我的痴心妄想 提交于 2019-12-05 05:28:34
In azure websites the DateTime.Now always gives back the time in UTC, where I need to be able to set the timezone to GMT, so all times are currently an hour out. I'm not able to change any of the code at this point, so the question is whether the default timezone can be changed either in configuration or programatically (it's possible to set the default culture in Global.asax to ensure date formats are correct). First, GMT is essentially the same as UTC - it has no offset . To be precise, UTC supersedes GMT . You are probably confusing it with BST which is GMT+1:00 during summer time. In

How to configure Azure AD to enable refresh tokens

房东的猫 提交于 2019-12-05 04:57:31
问题 I have an Azure App Service / Web API linked to Azure AD and authentication is working, however client tokens are expiring after 1 hour, so I want to enable the OAuth refresh_token. When I inspect the results of calling /.auth/me on my service I don't see a refresh_token. Token store is enabled on the app service. I have tried to add it to the oauth2permissions in the Azure AD manifest as follows, but it doesn't appear (I have restarted the App service and redeployed my service in case of

Confused on what is the correct procedure on storing passwords in Web.config for Azure deployment

谁说胖子不能爱 提交于 2019-12-05 04:55:52
I've had a very frustrating experience on putting an MVC 5 app on Azure. I have been reading the following page: http://www.asp.net/identity/overview/features-api/best-practices-for-deploying-passwords-and-other-sensitive-data-to-aspnet-and-azure But what I haven't managed to put in my head is the following: Security Warning: Do not add your secrets .config file to your project or check it into source control. By default, Visual Studio sets the Build Action to Content, which means the file is deployed. For more information see Why don't all of the files in my project folder get deployed?

Authorize one app service from another (no user interaction) in ASP.NET Core 2.0

非 Y 不嫁゛ 提交于 2019-12-05 04:10:38
问题 I have a Web API app in Azure facing internet (PubWeb), so it's used from anywhere. And I created a Web API (again, in Azure, let's call it InWeb). And I want strong security rules: InWeb must be used only by the PubWeb. This might involve some network security - that's an easy part (in Azure). PubWeb must be authorized by Azure AD somehow in order to use InWeb services. Service Principals, certificates, etc comes to mind. But I'm not sure. So what's the best possible solution for 2? UPDATE -

Azure Web App - Multiple apps hosting

99封情书 提交于 2019-12-05 03:56:04
问题 In my local IIS server, i have created a IIS website and deployed 3 ASP.NET web application such that they will have URL like IIS URL/webapp1 , IIS URL/webapp2 , IIS URL/webapp3 and it works like charm. I am able to deploy only one web application in Azure webapp and not others. Can i deploy more than one web application in one Azure web app ? If yes, then how ? 回答1: My solution is described below. First create a sample AzureWebsite - Setup up an additional application in the AzureWebsite as

Hosting Neo4J Browser Separately From Server

对着背影说爱祢 提交于 2019-12-05 02:57:04
I want to have three different Neo4J instances running (each with a different database). Then I need three different Neo4J browser visualizers (think project1.domainname.com / project2.domainname.com / project3.domainname.com) with each one mapping to a specific database instance I've managed to get the three different database instances running on a single Azure VM - so far so good. But I'm not sure how to create and map those browsers. I'd like to run them each as Azure websites as that would help with some other problems I've forseen. 1) Where is this browser HTML etc. so I can load it to

Maximum number of domains supported in Azure Websites

99封情书 提交于 2019-12-05 01:57:08
问题 We're building a hosted service where each of our users gets a custom sub domain on our service's domain when they sign up (for example john.myservice.com ). We handled this by adding a wildcard entry in our Azure Website's domain manager ( *.myservice.com ) and Azure Websites would now correctly handle all sub domains of the domain we added. However, we also allow our users to map their own custom domains to their sub domain (for example: johnsmith.com points to john.myservice.com ). Right

configure mime types windows azure websites php app

独自空忆成欢 提交于 2019-12-05 00:52:12
I'm using Windows Azure Websites to host a php app. My app uses webfonts (css3 feature) and I need to configure extensions such as .eot; .woff to avoid 404 errors. I know that it's possible to set this kind of configs using web.config in a .net app, but for a php site, what can I do? Unfortunately there's no RDP for websites. Is there another way to solve this? I could solve this just adding a web.config to root folder. <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <staticContent> <remove fileExtension=".woff" /> <mimeMap fileExtension=".woff" mimeType="application