kudu

How to access Kudu in Azure using power shell script

南笙酒味 提交于 2019-11-27 16:31:57
I am trying to access Kudu through power shell script. Link looks like: https://adc-dev.scm.azurewebsites.net . I need to copy war file located in D:\home\site\wwwroot\bin\apache-tomcat-8.0.33\webapps location in above link. Currently I am deploying the war file using VSTS by adding FTP task. But before deploying the latest war I would like to take backup of the old war in some location in Azure Kudu location say like: D:\home\site\wwwroot\bin\apache-tomcat-8.0.33 (root folder to the war location). So after that I can remove the war and deploy the latest war file in Kudu. How to do this? I

How do I deploy an Azure WebJob alongside a .NET Core Web App via Git?

我怕爱的太早我们不能终老 提交于 2019-11-27 13:02:48
问题 I thought this would be a pretty straightforward task and there is quite a bit of documentation out there but I've had zero luck with any of it and am assuming that it is pretty much all out of date. I have .NET Core MVC 6 Web App that I've been developing for a while and need to set up a WebJob for it on Azure. I want to deploy this alongside the app using the continuous deployment system Azure provides that the app is already using. According to Kudu docs it's possible: https://github.com

Azure Websites Kudu REST API - Authentication

喜你入骨 提交于 2019-11-27 02:01:05
I'm trying to use PowerShell to put an updated content file onto an Azure Website via the REST API. However, when supplying my credentials into Invoke-RestMethod -Credentials I am returned the HTML of the standard Azure login page. How can I authenticate with Kudu from PowerShell? Thanks. You can first get the website via Powershell and then use the publish credentials from the website to call the Kudu REST API. The example below will get the Kudu version. $website = Get-AzureWebsite -Name "WebsiteName" $username = $website.PublishingUsername $password = $website.PublishingPassword

How to add a custom post deployment script to azure websites?

假装没事ソ 提交于 2019-11-27 01:55:34
问题 My problem is that I need to run a custom cmd file after the build. Instead of modifying the deployment scripts I just want to run few MSDOS commands to my deployment easily. The task I need to do is to run a cmd at the repository located at /source/copyextrafiles.cmd after the build succeeded. How can I achieve that? 回答1: At the azure portal on the CONFIGURE tab of your website add a "app settings" entry called POST_DEPLOYMENT_ACTION with the value of source/copyextrafiles.cmd Save and the

How to access Kudu in Azure using power shell script

三世轮回 提交于 2019-11-26 18:41:10
问题 I am trying to access Kudu through power shell script. Link looks like: https://adc-dev.scm.azurewebsites.net . I need to copy war file located in D:\home\site\wwwroot\bin\apache-tomcat-8.0.33\webapps location in above link. Currently I am deploying the war file using VSTS by adding FTP task. But before deploying the latest war I would like to take backup of the old war in some location in Azure Kudu location say like: D:\home\site\wwwroot\bin\apache-tomcat-8.0.33 (root folder to the war

Azure Websites Kudu REST API - Authentication

守給你的承諾、 提交于 2019-11-26 12:30:40
问题 I\'m trying to use PowerShell to put an updated content file onto an Azure Website via the REST API. However, when supplying my credentials into Invoke-RestMethod -Credentials I am returned the HTML of the standard Azure login page. How can I authenticate with Kudu from PowerShell? Thanks. 回答1: You can first get the website via Powershell and then use the publish credentials from the website to call the Kudu REST API. The example below will get the Kudu version. $website = Get-AzureWebsite