how to deploy custom dll along with azure function.
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
Comments are currently closed for this discussion. You can start a new one.
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
1 Posted by Ilya Finkelshte... on 09 Mar, 2017 09:21 PM
I see 2 workarounds:
after_deploy
script) call Kudu API to executecopy
command to copy this dll tobin
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 consoleor
bin
folder.P.S. I will delete duplicated post from http://help.appveyor.com/discussions/questions/2842-deployment-to-a...
2 Posted by ashrivastav2 on 09 Mar, 2017 09:56 PM
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 Posted by ashrivastav2 on 09 Mar, 2017 10:18 PM
I was able to solve this as explained here - http://stackoverflow.com/questions/42704588/how-to-deploy-a-custom-dll-along-with-azure-function-using-appveyor/42706551#42706551.
Thanks!
4 Posted by Ilya Finkelshte... on 09 Mar, 2017 10:27 PM
Thanks for update!
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:15 AM.