azure-web-sites

MSDeploy to Azure Web App: Could not connect to the remote computer using the specified process (“Web Management Service”)

狂风中的少年 提交于 2019-12-12 13:31:56
问题 We publish to our Azure Web App using MSBuild MSDeploy in VSO/VSTS Build (vNext) using the script below. This works well. BUT, when assigning the Azure Web App to a custom domain (through the Azure Portal), the publish fails. VSTS Build error on MSDeploy: Publishing with publish method [MSDeploy] Executing command ["C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:IisApp='C:\a\8b0700fff\MrProjectMain\Api\wwwroot' -dest:IisApp='myproject-prod-webapp',ComputerName='https:/

Do slots count as VMs in Azure?

纵饮孤独 提交于 2019-12-12 12:15:07
问题 I currently have a web application deployed to Azure on the App Service free plan and, as part of going live, I'm interested in moving to the use of slots. This is primarily because it gives me the ability to deploy new code into staging and then seamlessly swap over once it's been validated. Now, to use slots, I know I need the standard plan and this clocks in at a minimum of $X per VM. What I don't know (and frustratingly haven't been able to find out from the Azure stuff on Microsoft's web

How can I solve this System.Web.Helpers mismatch on Azure web deploy?

▼魔方 西西 提交于 2019-12-12 11:00:44
问题 I don't know why I can't seem to figure this out. I'm in a bit of DLL strong-naming hell. Here's what's happening: I'm using Visual Studio 2012 RC to make an MVC4 site targeting .NET 4.0 I'm attempting to use the Gravatar Razor helper in the Microsoft.Web.Helpers library It works on my machine, but after deploying to Azure via Git, I get the following exception on invoking the Gravatar helper: Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral,

How to Sync an Azure AppService git based from Powershell script?

巧了我就是萌 提交于 2019-12-12 10:29:20
问题 I have an Azure AppService (Web-Site microservice) created from an ARM template. It contains a drupal app. I have configured it to read from a git server in bitbucket. When I create for first time it sucessfully pull the files from bitbucket (master branch). All good :-) The App Service is created from a PowerShell script that uses ARM templates launched from Jenkins project. The project is called ReCreateXXXAppService and executes a PowerShell that detects if AppService is there, delete it

How to deploy ASP.NET MVC site with existing database to Azure Web Apps?

一个人想着一个人 提交于 2019-12-12 10:14:32
问题 Question structure: First I give structure and configs of my ASP-MVC-4 project, then describe how I deploy my site to Azure Web Apps and finally present my error and question. My problem is related to conflicts with EF Code-First Migrations during Azure Deploy. My ASP MVC 4 Project and configs: I'm using Visual Studio 2015-U3 . I've ASP.NET MVC 4 website. Target framework: .NET Framework 4.5 . The site have its own database and works locally and interacts with database ( (LocalDb)\v11.0 ). I

Execute Code First Migrations on Azure with Remote Connection String

爷,独闯天下 提交于 2019-12-12 09:18:08
问题 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

Testing specific Azure Web Site Instance

时间秒杀一切 提交于 2019-12-12 09:18:03
问题 I have an Azure Web Site configured to use multiple (2) instances: I have a service bus that should pass messages (ie Cache Evict) between the instances. I need to test this mechanism. In a conventional (on premise) system I would point a browser to instance 1 (ie http://myserver1.example.com), perform an action, then point my browser to the other instance (http://myserver2.example.com) to test. However, in Azure I can't see a way to hit a specific instance. Is it possible? Or is there an

Azure Web Apps - how to run script before deployment

青春壹個敷衍的年華 提交于 2019-12-12 09:15:17
问题 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

Map subdomain to virtual directory Azure WebApps

断了今生、忘了曾经 提交于 2019-12-12 08:05:55
问题 I am attempting to host multiple websites in a single Azure WebApp rather than having multiple web apps each hosting a site. Each of these sites is rather small, but in order to meet the requirements of the SLA with Azure, we need to have the server scaled with more than one instance for our Production environment, thus the reasoning for combining sites. After researching this topic, I have got the following setup with our Azure account. Created the proper CNAME DNS records in our zone

Azure website constantly restarts due to 'Slow Requests' limit

不问归期 提交于 2019-12-12 08:03:24
问题 I have an azure website setup in West-Europe and in Standard mode. Suddenly today at 30 January 2014 03:00 am UTC it started constantly restart the app pool. The ShutdownReason is HostingEnvironment. I have a lot of these events in eventlog.xml: <Event> <System> <Provider Name="W3SVC-WP"/> <EventID>2299</EventID> <Level>3</Level> <Task>0</Task> <Keywords>Keywords</Keywords> <TimeCreated SystemTime="9:14:50 AM"/> <EventRecordID>15807234</EventRecordID> <Channel>Application</Channel> <Computer