Where is 'After deployment command' run from?

pdoyle's Avatar


06 Dec, 2019 06:05 PM

Using web deploy environment to deploy from GUI, what directory is the after deployment command run from? Was hoping it would be the deployment folder but that does not seem to be the case.

  1. Support Staff 1 Posted by Feodor Fitsner on 06 Dec, 2019 06:12 PM

    Feodor Fitsner's Avatar

    Are you deploying to your own server or Azure App Service?

  2. 2 Posted by pdoyle on 06 Dec, 2019 06:14 PM

    pdoyle's Avatar

    To our own server.

  3. Support Staff 3 Posted by Feodor Fitsner on 06 Dec, 2019 06:40 PM

    Feodor Fitsner's Avatar

    There is a little bit more work to get runCommand provider running with your Web Deploy service: https://blogs.technet.microsoft.com/leesab/2014/08/13/how-to-use-we...

    The path to a command is either absolute path the script or script file name, but in both cases within the allowed folder.

  4. 4 Posted by pdoyle on 06 Dec, 2019 06:58 PM

    pdoyle's Avatar

    Got it. Thanks!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac