how to deploy custom dll along with azure function.

ashrivastav2's Avatar


09 Mar, 2017 08:51 PM

I have asked this question on stack overflow - will ask it here again!

Deploying azure function using appveyor is straightforward as described by this article -

Further what I am not able to figure out is how to deploy a custom dll (library part of the same repo) in the /bin folder to be able to use #r and use the reference.

Manual process is just to copy the dll in the /bin folder using Kudu and start using it.

Also refer to this discussion on appveyor -

  1. Support Staff 1 Posted by Ilya Finkelshte... on 09 Mar, 2017 09:21 PM

    Ilya Finkelshteyn's Avatar

    I see 2 workarounds:

    • Add dll to your package
    • After deployment (as part of after_deploy script) call Kudu API to execute copy command to copy this dll to bin folder. Here is sample on how to do this. You can first debug this command to have all correct relative paths in the Kudu debug console


    P.S. I will delete duplicated post from

  2. 2 Posted by ashrivastav2 on 09 Mar, 2017 09:56 PM

    ashrivastav2's Avatar

    Thanks. the first thing i am trying though is using 7z to get the extra files into the same artifact as below -

    - 7z a .\AzureFuncCIPOC\* -i!MyLibrary\bin\

    It does the job but not the folder structure I want. Any suggestions? (see attached, I want all the dlls from My library to go to ManualTriggerCSharp/bin folder)

  3. 3 Posted by ashrivastav2 on 09 Mar, 2017 10:18 PM

    ashrivastav2's Avatar
  4. Support Staff 4 Posted by Ilya Finkelshte... on 09 Mar, 2017 10:27 PM

    Ilya Finkelshteyn's Avatar

    Thanks for update!

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