kudu

How to use Azure kudu zipdeploy from a Bamboo deployment server

二次信任 提交于 2019-12-24 10:33:19
问题 I am trying to find a way to deploy an app service update to an Azure app service from a Bamboo deployment server script task using PowerShell. I am running into a problem with the authentication part. Note: Credit to https://markheath.net/post/deploy-azure-webapp-kudu-zip-api for the script ideas. Below is my PowerShell script. $PublishingUsername = ["The value of the userName property name in the Azure PublishSettings file"] $PublishingPassword = ["The value of the userPWD property name in

How can you delete all log files from an Azure WebApp using powershell?

为君一笑 提交于 2019-12-24 01:40:58
问题 As part of our CI process, I'd like to clear out all of the log files on our App Service before deploying new code to it. I believe the best way to do this is with a KUDU API call using a PowerShell script. I believe that I need to pass it a command. So this is what I've come up with so far based on some other similar questions asked. However, when I run this, I get a "Error 403 - This web app is stopped." response back. So I'm doing something wrong. The important part is the "$kudoApiCommand

Moving local .whl file to a folder on Azure Web Apps accessed via Kudu (Web Apps' DebugConsole)

不打扰是莪最后的温柔 提交于 2019-12-23 04:54:08
问题 I'm trying to migrate my Django website from Heroku to Azure. I'm using 'Azure Web Apps', where installing postgresql from my requirements.txt requires a little bit of gymnastics. I can't directly install the package via pip, I instead had to create a wheel and manually include that in my repository. I'm halfway done. I have psycopg2-2.6.1-cp27-none-win32.whl ready on my local machine. Regarding what to do next, my question is: how do I copy the .whl file to the relevant folder via Kudu on

Azure-functions: Can environment variables be used in function.json?

天涯浪子 提交于 2019-12-22 04:18:10
问题 I'm currently using the git push deployment option to deploy a few copies of an azure-function. The function's function.json file has multiple "connection" entries linking to different storage accounts (i.e. for a blob trigger & table output). In different copies of the deployed function I'd like to connect to different storage accounts. Is there any special syntax that can be used in function.json to populate the "connection" string from an environment variable? I guess an alternative would

Deploying ASP.NET vNext beta 2 on Azure with Kudu

和自甴很熟 提交于 2019-12-20 04:37:21
问题 According to this blog post, I can deploy vNext apps to Azure using Kudu. I've successfully tried it with vNext beta 1. However, it does not work with vNext beta 2. Why can't I deploy with vNext beta 2? I thought the whole idea with vNext is that everything (including the CLR) is downloaded as NuGet packages. 回答1: I just ran into this problem today and the following worked for me: Set the following environment variables (app settings) in your Azure Web Site: SCM_KRE_Version 1.0.0-beta2 SCM

Azure project Kudu accepts uploaded zip file to the Zipdeploy endpoint but does not deploy

北战南征 提交于 2019-12-18 09:42:06
问题 I have an ASP.NET Core 2.0 API as an Azure App Service with a deployment slot for QA that I have been using for a few months. I develop in VS2017 and I publish to Azure using the built in Publish to Azure App Service component of the project. This is working just fine. I am now trying to move the deployment to a Bamboo deployment server. I am generally following a process similar to this link how to use azure kudu zipdeploy from a bamboo deployment server In my Bamboo build, I run a

Kudu REST API Command endpoint error when executing powershell

二次信任 提交于 2019-12-13 05:38:54
问题 When trying to execute the POST to /api/command according to this description the following error occurs: PS C:\> $Result.Error remove-item : The Win32 internal error "The handle is invalid" 0x6 occurred while getting the console mode. Contact Microsoft Customer Support Services. At line:1 char:44 + get-childitem * -recurse | remove-item -force + ~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [Remove-Item], HostExce ption + FullyQualifiedErrorId : GetConsoleMode,Microsoft.PowerShell

Correct deployment script for Azure Git backed continuous Deployment

南笙酒味 提交于 2019-12-12 03:04:00
问题 I have a ASP.Net 4.5 MVC application which uses Angular 1.5. The JS code is Typescript and a post build action builds the js code and deploys it to the folder where my application refers to. I have a Slot on my azure web app which is backed my gitlab repo. Committing to the repo, triggers the deployment, however the post deployment build frequently seems to have issues when a bower/npm or typings library is updated (which is resolved by manually clearing the folder via the kudu console). Does

Custom logs in Azure website file system combined into single log file

那年仲夏 提交于 2019-12-11 20:21:33
问题 My Azure web app (App Service) writes a log file mywebapp.log to the d:\LogFiles directory of the VM that hosts the website. When the log file gets to a certain size I rename it to mywebapp1.log , mywebapp2.log , and so on so and a new log file is created. (I do this manually - stop the website, rename the file and restart the site.) One day I inspected the directory through the Kudu (SCM) portal and saw just a lone mywebapp.log that was much larger than normal. The file included all of the

Error setting up node v0.11.x on Azure WebSite

[亡魂溺海] 提交于 2019-12-11 20:00:28
问题 We are trying to move a node.js app that requires node v0.11.x to Azure WebSites. When trying to use azure-node-runtime-selector to install node v0.11.x, we encounted what seems a bug caused by nodist installing npm 2.0.0-alpha. Below the output of call to nodist update: 1 file(s) copied. npm http GET https://registry.npmjs.org/npm npm http 304 https://registry.npmjs.org/npm npm http GET https://registry.npmjs.org/npm/2.0.0-alpha-5 npm http 304 https://registry.npmjs.org/npm/2.0.0-alpha-5 D: