2
votes

I am trying to run a post deployment script to delete few files from azure website(app service-kudu). I am using visual studio online 2015 for CI-build definition. I want to add a post deployment script that can delete few files from app service(site\wwwroot..).

I looked into [How to add a custom post deployment script to azure websites?

On this link it is mentioned to add POST_DEPLOYMENT_ACTION in app setting on azure portal. I am unable to understand what will be the exact path of the script . If I write a cmd script and keep in the folder where solution file is present. Now what will be the exact path ?

1
Before we answer, can you expand on "using VSO 2015 for CI-build definition"? The post deployment script only works in some scenarios like VSTS git deployment (you have to set up continuous deployment from VSTS on portal).Suwat Ch
We are using VSO 2015 only, so how can we call any post deployment script in this, Also we are using TFS as source control.Mohit Arora

1 Answers

1
votes

If you are using a VSTS build definition, your build is happening in VSTS and is not using Kudu. As such, this post deployment hook feature is not available.