View
10
Download
0
Category
Preview:
Citation preview
AZURE FUNCTIONS OCH WEBJOBS SDK
DEN DIGITALA ARBETSPLATSENWE ARE…
Johan BrännmarJohan.brannmar@dqc.se
Oliver Lopezoliver.lopez@dqc.se
Dagordning
1 Introduction to Webjobs SDK
2 Introduction to Azure Functions
3 DEMO Organizer: Webhook, Queue, Webjob and Azure Functions
CONTENT
DEN DIGITALA ARBETSPLATSENCONTEXT▪ We have worked lately with:
Provisioning of site collections
Sync new documents from database into a SharePoint library
SharePoint webhooks
Maintenance and monitoring
DEN DIGITALA ARBETSPLATSENWEBJOBS SDK▪ Feature in Azure App Service
▪ SDK makes common tasks easier
▪ Visual Studio template
▪ Dashboard
▪ Open Source and extensible
▪ Issues: https://github.com/Azure/azure-webjobs-sdk/issues
▪ Queue
▪ FileTrigger / File
▪ SendGrid
▪ ErrorTrigger
▪ SQL och DocumentDB
▪ Sql Query Support
▪ Azure Notification Hubs
▪ Twilio SMS
DEN DIGITALA ARBETSPLATSENON DEMAND/SCHEDULED VS CONTINUOUS
On Demand & Scheduled
▪ Log in filesystem.
▪ Runs in 1 instance (random)
▪ It must wait until the next scheduler trigger if it fails.
Continuous (Azure Webjobs SDK)
▪ Logs in blobs & Dashboard
▪ Runs in all instances by default. Singleton if needed.
▪ Automatically starts if failure.
▪ There is also a TimeTrigger (Extension)
DEN DIGITALA ARBETSPLATSENFUNCTIONS▪ Small pieces of code/functions in the cloud.
▪ Trigger on different actions/methods. HttpTrigger, blobtrigger, timertrigger…
▪ https://docs.microsoft.com/en-us/azure/azure-functions/functions-overview
DEN DIGITALA ARBETSPLATSENFUNCTIONS VS WEBJOBS SDK▪ Streamlined dev, test, and run of code, directly in the browser.
▪ Built-in integration with more Azure services and 3rd-party services like GitHub WebHooks.
▪ Pay-per-use, no need to pay for an App Service plan.
▪ Automatic, dynamic scaling.
DEN DIGITALA ARBETSPLATSENDEMO
DEN DIGITALA ARBETSPLATSENDEMO
OrgHubDokuments Webhook
GetChanges ProcessChanges
queue1 queue2
Org1 dokuments
Org2 dokuments
1
2 34 5
6
7
Notify
Webhook
▪ Declarative model for describing job function bindings
DEN DIGITALA ARBETSPLATSENTHINGS ARE EASY…
DEN DIGITALA ARBETSPLATSENWEBJOBS DASHBOARD
DEN DIGITALA ARBETSPLATSENAZURE FUNCTION
DEN DIGITALA ARBETSPLATSENFUNCTIONS TIPS & TRIX▪ Azure storage explorer
▪ PostMan
▪ Azure functions cli
▪ Precompiled DLL’s
▪ Develop in an ASP.Net Web Application project
https://blogs.msdn.microsoft.com/appserviceteam/2017/03/16/publishing-a-net-class-library-as-a-function-app/
DEN DIGITALA ARBETSPLATSENREFERENCES▪ What is the Azure WebJobs SDK https://docs.microsoft.com/sv-se/azure/app-service-
web/websites-dotnet-webjobs-sdk
▪ Azure WebJobs SDK Extensions https://github.com/Azure/azure-webjobs-sdk-extensions
▪ Simple Guide To Get Started With Azure Web Jobs - C# (David Opdendries) http://www.spdavid.com/azure-web-jobs-c-sharp/
▪ PnP Web Cast - Introducing SharePoint WebHookshttps://channel9.msdn.com/blogs/OfficeDevPnP/PnP-Web-Cast-Introducing-SharePoint-WebHooks
▪ An introduction to Azure Functions https://docs.microsoft.com/en-us/azure/azure-functions/functions-overview
OUR QUALITY YOUR ADVANTAGE.
Recommended