azure-web-sites

Why would azure be restarting website when i do a deployment slot swap?

允我心安 提交于 2019-12-03 12:13:34
问题 I've a .net 4.5 website running on Azure Websites. I've a staging deployment set up. I warm up both sites and then i run the swap process (both from azure portal and from Azure powershell). No matter what I try the swapping process restarts my websites (both) and they take about 3 minutes to boot up. I was under the impression the deployment swapping was supposed to keep the websites "warm" and have no down time? My websites are unusuable for about 3 minutes! As far as I can tell both

Deploy azure website and webjobs in same sln using VSO - Error - There can be only one

你说的曾经没有我的故事 提交于 2019-12-03 12:13:10
问题 I've got to a website and a webjob project in the same sln: Sritt (The website) Sritt.Webjob In properties of Sritt theres a webjobs-list.json with the following setting: "WebJobs": [ { "filePath": "../Sritt.WebJob/Sritt.WebJob.csproj" } I've configured the by VSTS build like this (with the new buildsystem): Solution: **\*.sln MSBuild Args: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build

Is it possible to easily copy applications settings from one web app to another on azure

南楼画角 提交于 2019-12-03 12:12:44
问题 I was wondering if there is an easy way to completely copy all the key values from one web app's application settings to another, as seen in the below picture I have a lot of these key values and having to do this manually every time is very cumbersome. 回答1: You can use Azure PowerShell. Here is a PowerShell Script for you. try{ $acct = Get-AzureRmSubscription } catch{ Login-AzureRmAccount } $myResourceGroup = '<your resource group>' $mySite = '<your web app>' $myResourceGroup2 = '<another

Culture is suddenly not supported anymore on Azure web app

匆匆过客 提交于 2019-12-03 11:39:08
问题 Out of the blue our Azure web app is spewing out errors regarding a Culture that is not supported. We load up a list of countries to show on the front page but this is suddenly giving errors. The same code is used on other various web apps as well and they aren't having the problem. The following code gives a problem. private List<SelectListItem> Countries() { RegionInfo country = new RegionInfo(new CultureInfo("nl-BE", false).LCID); List<SelectListItem> countryNames = new List<SelectListItem

How can I change a setting in appsettings.json after auto-deploy?

懵懂的女人 提交于 2019-12-03 10:04:10
问题 I have an ASP.NET Core application going on an have setup Github auto-deploy on it. But since it's an open repo I obviously don't want to upload my correct configuration file. What I'd like to do is to replace some strings in the appsettings.json after a github auto deploy. "AppSettings": { "Token": "my super duper secret token" } How can I change my super duper secret token to my real token after a github deploy on Azure? 回答1: As I know we can config token in App Settings on the Azure port.

Why are Azure Resource Groups associated with a specific region?

我的梦境 提交于 2019-12-03 09:36:55
I'm new to Azure architecture and am trying to understand why Azure Resource Groups, which are logical deployment buckets for applications built on Azure, are associated with a region when they are defined. At first I thought it was to provide global distribution for disaster recovery or geographic redundancy, but then I realized that a single Resource Group can contain web apps in different regions, which can provide those features via Traffic Manager. I suppose that using separate Resource Groups would help better identify which resources are in which region, but other than for

Azure Websites and Sass

时光怂恿深爱的人放手 提交于 2019-12-03 08:50:25
I have been trying to find if there is a way to support sass with a windows azure website? Can someone point me to some documentation or let me now if this is even possible. I am specifically looking to support Zurb Foundation responsive framework which is built on sass(scss). I already do this by using the complied css files with an override css file. I would like to use the semantic styling of sass if possible. Thanks Yes. But there are a few hoops because of Sass/SCSS. By default, Foundation uses Compass for its SCSS compilation. However, Sass and Compass are both written in Ruby, which

Azure Web Apps are really slow

岁酱吖の 提交于 2019-12-03 08:14:37
问题 I've been investigating a slow warmup time for my production app and I got some unexpected results. Testing on various Azure VMs showed the warmup time to be well-related to the application server performance (so it's not external request, including sql), but what's really interesting is the comparison to Azure Web Apps and my own local machine (all times are averages from at about 3 runs): VM A0: >1m VM A2: 13s VM D2V2: 6.8s VM D5V2: 7.8s Wep App P2: 25s Web App S2: 26.5s My local machine: 6

Azure Websites Application Insights - switching config

橙三吉。 提交于 2019-12-03 06:51:30
问题 I have an Azure Website. For the sake of this question, the production version of the website runs on example.com , and a test version of the website runs on sandbox.example.com . The only difference between the two is that they have different configuration. At present, they are running under different websites, and I deploy the same website to each azure website via git. I'd like to separate out the Application Insights data. Is there a technique or process that anyone uses - apart from

Does Azure offer https for “cloudapp.net”?

此生再无相见时 提交于 2019-12-03 06:44:39
问题 One great advantage of using Azure Websites is that I can get secure HTTP (HTTPS) without doing nothing: I simply type https://xyz.azurewebsites.net and it works. I don't have to worry about certificates because I use the subdomain that Azure gives me (in the example it would be xyz ) So, what I usually do is that people come by through some registered domain I have, eg. http://www.my-application-homepage.com , and there, if they want to use my application, I redirect them to the subdomain at