How does Azure Function App and .NET SDK combined?

Anonymous
2021-11-04T16:22:42.033+00:00

I was able to create a new solution using Visual Studio 2019 with Azure Function, and successfully published on the Azure portal.
So, my first test is passed.

146604-image.png
146559-image.png

Now, my challenge now is, I would like to use .NET SDK inside Azure Function solution.
I have this .NET solution file: https://github.com/Intacct/intacct-sdk-net

146560-image.png

What is process to repo this one inside Azure Function app?
So, basically, I would like to use .NET SDK as Azure Function.
Do I have to just use one Function.cs file each time to publish to Azure Function (in Azure Portal)?

Thanks.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2021-11-08T17:44:08.987+00:00

    @KingJava ,

    Thanks for reaching out to Q&A.

    I am not very clear with your requirement/ask.

    Azure Functions uses the Webjobs SDK that’s an integrated programming model based on triggers and bindings that help you respond to events and seamlessly connect to other services. GitHub - Azure/azure-webjobs-sdk: Azure WebJobs SDK and GitHub - Azure/azure-webjobs-sdk-extensions: Azure WebJobs SDK Extensions has the Functions SDKs.

    I would suggest you to look into this article for your reference.

    I reviewed your .NET SDK code, and it appears it’s a bunch of APIs that does some business processing.

    I am not sure about your question exactly, but if you are asking how you can use your own .NET Core libraries as a reference in your Azure Function, you could just add it as a project/dll reference (recommended add the project to your Functions VS Solution to have all the code in same solution), and then call your APIs from the Functions' Run method based on the trigger/inputs you receive.

    As far as the publishing is concerned, you can publish each function as you mentioned or you can set up CI/CID pipepline for the function app via Azure devops
    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-11-08T18:27:40.303+00:00

    @MughundhanRaveendran-MSFT
    Thank you so much for your feedback. Greatly appreciated.

    Yes, you are on the right path regards to my questions.
    Sorry. I have three more questions.

    1) How do I do this (on the bottom)? Are you referring to just installing Nuget SDK inside Dependencies and later call?
    "You could just add it as a project/dll reference (recommended add the project to your Functions VS Solution to have all the code in same solution), and then call your APIs from the Functions' Run method based on the trigger/inputs you receive."
    147480-image.png
    I have not done calling API before, so it is not familiar to me..

    2) Do I just put the logic inside here? Is it best practice to put one business logic per one Function file and publish each one?
    147474-image.png

    3) I am trying to just pull data from Sage app on a daily basis. How do I trigger that? I try not to use CI/CD approach because I am afraid that my company needs to create a new Azure DevOps account for this.

    Thank you so much!


  2. Anonymous
    2021-11-09T12:45:09.24+00:00

    @MughundhanRaveendran-MSFT Thank you so much for your help.

    I have two more questions.

    1. Regardless of using Http Trigger or Timer Trigger, don't I have to use ADF to move data from Functions to Azure SQL?
      Is there any other way?
      I am guessing the difference is with Http Trigger, since it has a webhook, it automatically triggers ADF, but with Timer Trigger, we have to schedule ADF to run, no?

    2) If I use Timer Trigger, can I still apply the code/logic to pull data from a third party API using web services? I am not sure how Timer Trigger works/dies not work with web services.

    This could be very basic, but I am very anxious to figure out the whole roadmap.

    Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.