how to deploy custom dll along with azure function.

ashrivastav2's Avatar

ashrivastav2

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 - https://alastairchristian.com/deploying-azure-functions-from-appveyor-75fe03771d0c#.x7stvprna

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 - http://help.appveyor.com/discussions/questions/2842-deployment-to-azure-function-app

  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

    or

    P.S. I will delete duplicated post from http://help.appveyor.com/discussions/questions/2842-deployment-to-a...

  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.zip .\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

Generic

? 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