azure-web-sites

Create Azure web app slot from ARM template without copying original web app configuration

江枫思渺然 提交于 2019-12-04 17:41:18
I am trying to create web app slots through ARM template. I was able to create those but it looks like the default behavior is to create the them as a copy of the current web app state. This result in my slot inheriting app settings, connection strings, virtual directories, .... Here a reproduction sample which demonstrate the behavior https://github.com/ggirard07/ARMSlotWebConfig . I want my slot clean and fresh instead, which is the azure portal default behavior. The portal is able to allow a user to select the behavior by specifying the "configSource": "", value it posts when creating the

Running Selenium on Azure Web App

此生再无相见时 提交于 2019-12-04 17:20:54
问题 I have an Azure Web App that I want to use to screen scrape a website when I call an Action on a controller, like so. var driver = new PhantomJSDriver(); driver.Url = "http://url.com"; driver.Navigate(); var source = driver.PageSource; var pathElement = driver.FindElementByXPath("//table[@class='someclassname']"); string innerHtml = ""; IJavaScriptExecutor js = driver as IJavaScriptExecutor; if (js != null) { innerHtml = (string)js.ExecuteScript("return arguments[0].innerHTML;", pathElement);

Using python 3.6 on azure app services - not working despite it is installed as extension

亡梦爱人 提交于 2019-12-04 17:13:43
I've got a challenge with deploying Django app (wagtail to be precise) to Azure Web Services using external Git repo (Bitbucket). I want to use Python 3.6.1, therefore I followed instructions at Managing Python on Azure App Service manual I have python 3.6.1 extension installed and in place I created web.config file in root directory of my app (I checked and it is uploaded to the server) However, deploy fails with message Detecting Python runtime from runtime.txt Unsupported runtime: python-3.6.1 Supported runtime values are: python-2.7 python-3.4 An error has occurred during web site

Add a Azure WebApp to an Existing VPN using a Point-to-Site connection (RM Powershell)

◇◆丶佛笑我妖孽 提交于 2019-12-04 16:48:41
I have hunted around for an answer to this, but I am not having much luck. All the articles I can find are either setting up a Point-to-Site or are instructions for classic Azure, not Azure 2.0 (Resource Group) Currently, we are dialing up a whole new resource group everytime we do a new built. This consists of Web apps and SQL DBs. When we have a new build we start up the new and del the old resource group. Simple. To minimize the start-up time we have a static resource group that isn't deleted that houses the VPN connection to our on Prem resources. The problem I'm having is when I add the

What's the correct Windows Base Image for ASP.NET Core 2.1 Docker Containers on Azure App Services

风格不统一 提交于 2019-12-04 14:58:42
I want to create a Docker Image that can be hosted on Azure App Services for Windows. My application is based on ASP.NET Core 2.1 and according to the official list of .NET images images , I should be able to simply use microsoft/dotnet:2.1-aspnetcore-runtime . I can build the Dockerfile on a Windows machine successfully and was able to run it there without issues. But after uploading it to Docker Hub and setting it as the App Service's Docker Image, I get the following error message: Cannot run this Operating System/Version in Windows Containers. Maximum supported OS version is 10.0.14393

Azure Web App: Delete all files before publish

孤者浪人 提交于 2019-12-04 13:47:41
When publishing to our Azure Web App using the following Powershell script, we often have issues whereby files from the previous publish cause runtime errors. param($websiteName, $packOutput) $website = Get-AzureWebsite -Name $websiteName # get the scm url to use with MSDeploy. By default this will be the second in the array $msdeployurl = $website.EnabledHostNames[1] $publishProperties = @{'WebPublishMethod'='MSDeploy'; 'MSDeployServiceUrl'=$msdeployurl; 'DeployIisAppPath'=$website.Name; 'Username'=$website.PublishingUsername; 'Password'=$website.PublishingPassword} Write-Output "Stopping web

Azure webapp node.js app not starting

拟墨画扇 提交于 2019-12-04 12:04:26
I'm trying to deploy a very simple express.js app on Azure webapp. The deployment log shows the that the deployment passes correctly but the app doesn't start. Checking the kudu process explorer shows that indeed the node.js process is not running On the other hand I don't see any application logs nor any indication that the app even started. Is there a way to see what happened when the nodeiis tried to start the app? Azure WebApp for node.js is running via iisnode as a native IIS module that allows hosting in IIS on Windows. Please see the document https://blogs.msdn.microsoft.com

How do i deploy a java application on windows azure

痞子三分冷 提交于 2019-12-04 11:54:19
Hi I am a 3rd year computer science student and I have create a my 3rd year project in java on netbeans and I now want to deploy it onto a virtual machine with windows azure. The point of this is that I would like to be able to use this application as is on any computer connected to the internet simply by accessing the cloud and without having to install the program every time (something like how you can play any game on steam on any pc). The question now is, is it possible and if so how do I do it Thanks in advance As a member of Cloudify development team I would like to recommend the

Adding an azure web app into a App service environment

时光怂恿深爱的人放手 提交于 2019-12-04 11:54:09
I have a web application on Azure which was NOT created in an App Service Environment (ASE). Now I have a specific requirement that forces me to create an ASE and add the existing web application into the ASE. Is it doable ? How ? For a WebApp to be inside an ASE, it has to belong to an AppServicePlan whose Location is name of the ASE and is of Premium Sku. For that reason you can't change the AppServicePlan of your existing WebApp and point it to that in the ASE. What you can do is Clone the App , for you to be able to do this 1) You need to have an AppServicePlan inside ASE that is tied to a

Azure Web Sites connection string for EF not being picked up

喜你入骨 提交于 2019-12-04 10:31:10
问题 I am deploying an ASP.NET web app to Azure Web Sites. The site uses Entity Framework, and when I include the following in Web.config it runs fine: <connectionStrings> <add name="DataContext" connectionString="metadata=res://*/Models.WpsData.csdl|res://*/Models.WpsData.ssdl|res://*/Models.WpsData.msl;provider=System.Data.SqlClient;provider connection string="data source=XXXX;initial catalog=XXXX;persist security info=True;user id=XXXX;password=XXXX;multipleactiveresultsets=True;application