azure-web-sites

Azure KUDU deployment ignores project setting when deploy.cmd is specified

戏子无情 提交于 2019-12-11 02:47:42
问题 I have a custom .deployment file in my nodeJS repo that looks like this: [config] project = src/portal command = deploy.cmd If I remove the command setting, the project setting is respected. However, I need the custom deploy script to execute some bower and grunt commands. Whenever I add the command parameter back in, Azure/KUDU seems to ignore the project setting. I have reverted to the default deploy.cmd script generated using azure site deploymentscript --node to ensure that my

SQLXML on Azure Web sites

≯℡__Kan透↙ 提交于 2019-12-11 02:29:40
问题 My application is using the library SqlXML and I am trying to publish this application to Azure Web Services. Once I publish it I get this error: Retrieving the COM class factory for component with CLSID {83D0FC3E-8B31-4B35-A1B2-346BA3954514} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). I checked stacktracing and its on a method that uses the SqlXML. I checked if the dll is referenced as an assembly in web.config

How to make Azure nodejs webapp re-run npm install?

▼魔方 西西 提交于 2019-12-11 02:21:31
问题 I'm running a Node webapp on Azure. I deploy the app using the "local git" method. Every time I make changes to my source, commit, and then deploy with git push azure master , the code on the site is updated, as expected. But one of my recent changes included adding a new package to my package.json file. Now when I deploy, my files are updated, but azure doesn't seem to re-run npm install , and the new modules are not installed. This means that the app doesn't start: when my code calls

SSL port for Azure Web Site using node.js?

放肆的年华 提交于 2019-12-11 01:59:55
问题 I'm having difficulty getting a node.js app deployed as an Azure Web Site to listen on the appropriate port for SSL (within the Azure environment). Serving up SSL requests in any other environment where I have control over the port is no problem and working fine. I don't believe this to be an issue with the app code (using Express, FYI). Azure Web Sites seem to forward port 80 traffic from the load balancer to whatever port is available, which is set in the process.env.PORT variable. I don't

Set-AzureRmWebApp changes in Powershell not appearing in Azure Portal

霸气de小男生 提交于 2019-12-11 01:48:12
问题 I am trying to add a virtual application to an Azure website via Powershell. Though the script runs without errors, my changes don't appear in portal.azure.com. Is there another command I need to run at the end to persist the changes? $subscriptionId = "secret" $websiteName = "MyWebsite" $resourceGroupName = "MyResourceGroup" $siteName = "Test" Get-Module AzureRM Login-AzureRmAccount Select-AzureRmSubscription -SubscriptionId $subscriptionId $website = Get-AzureRmWebApp -Name $websiteName

How to mount Azure App Service storage in Jenkins Docker Container?

五迷三道 提交于 2019-12-11 01:47:15
问题 I'm trying to host Jenkins in a Docker container in the Azure App Service. This means it's 'linux' hosting. By default the jenkins/jenkins-2.110-alpine Docker image stores its data in the /var/jenkins_home folder in the container. I want this data/config persisted to Azure persistent storage so that it's persisted across container restarts. I've read documentation and blogs stating that you can have container data persisted if it's stored in the /home folder. So I've customized the Jenkins

Azure websites & MediaWiki: how to enable emails sending

▼魔方 西西 提交于 2019-12-11 01:28:06
问题 for example, when user creates an account, resets password etc. First step is to set mail server credentials in LocalSettings.php file, as per this document: http://www.mediawiki.org/wiki/Manual_talk:$wgSMTP#Example_using_Google_Mail But after you do this, you will get "PEAR mail package is not installed" error message. How to solve this? 回答1: Turns out it's relatively simple: Make sure your mail server credentials are correct FTP to root folder and rename index.php into index.php.old -

Azure AD - HTTP/1.1 401 Unauthorized - Windows Service

寵の児 提交于 2019-12-11 01:13:05
问题 Have a issue with Azure Auth. Getting 401 Unauthorized when calling WebAPI Hosted in Azure. Here's the basics: Followed this tutorial - https://azure.microsoft.com/en-us/documentation/samples/active-directory-dotnet-daemon/ Registered 2 Applications: Windows Service WebAPI The Windows Service calls STS and Succesfully gets a JWT. It then tries to pass that token to the WebAPI hosted on azurewebsites.net. Here is my code to call the STS (Just wrapped in a Auth Class): public class AzureAuth {

Exclude folder when building from VSO to Azure website

。_饼干妹妹 提交于 2019-12-11 00:24:59
问题 I am trying to exclude certain files/folders from deployment of a web project in Visual Studio Online to an Azure website. The web project has a Content folder with CSS, JS, build scripts and so on, which are only necessary for development, once deployed to Azure the CSS and JS is loaded from a CDN. Currently the build from VSO is copying all those files to the webroot in Azure, which is unnecessary and a potential security issue in case of the build scripts. Now I know this can be prevented

Azure App Services will not start after App Insights upgrade to 2.5

半城伤御伤魂 提交于 2019-12-11 00:24:15
问题 I have a repository that uses application insights to log information about our services running in asp.net. We have some ASP.NET Core 2.0 sites along with some full framework asp.net 4 applications. With the release of application insights 2.5, we get support for live streaming in core sites so I upgraded all packages in the solution to use latest 2.5. Then I built the branch and deployed it via VSTS build and release and I noticed my live streaming was working great. Then, I released the