Play by Play Series contains the list of videos that help you to learn the WebJobs from the scratch that includes Azure Web jobs, SharePoint and PowerShell.
- GitHub library code: https://github.com/BasantPandey/AzureWebJobsPlaybyPlay
- Want to learn the site creation process using Azure Web Jobs, please check out my you tube series: https://www.youtube.com/playlist?list=PLRt3t4Jmzutl4pNYiaOFf1DMVVHGycDOm
- Provide the ability to run the background task.
- Continues
- Start immediately, when job created. Run On All the Instance (Load balancing).
- You also restrict to run in the single instance
- Support remote debugging
- Triggered
- Start only when triggered manually or on schedule.
- Runs on single instance
- Doesn’t support the remove debugging
- .cmd, .bat , .exe , .ps1 (poweshell, .sh (Bash), .Php(Php), .py (Python), .js( Node.js) and .jar(Java)
- https://docs.microsoft.com/en-us/azure/app-service/websites-dotnet-deploy-webjobs
- https://docs.microsoft.com/en-us/azure/app-service/webjobs-sdk-get-started
- https://docs.microsoft.com/en-us/azure/app-service/webjobs-sdk-how-to
- Microsoft Azure Premium license or Visual Studio subscription(https://azure.microsoft.com/en-in/free/search/?&OCID=AID719810_SEM_hi1rUtwt&gclid=CjwKCAjwrNjcBRA3EiwAIIOvq0AM9dOeRVC7EX1TMH3lm1Jo4DKgHX898j7JRELgy4SABds4kTmn2hoCBUYQAvD_BwE&dclid=CN_cqMewsN0CFRAYjgodXHIArQ )
- Visual Studio Code https://code.visualstudio.com/
- Add PowerShell Extension https://marketplace.visualstudio.com/items?itemName=ms-vscode.PowerShell
- For SharePoint Integration, install (https://github.com/SharePoint/pnp-powershell/releases )
- Add Web Jobs
- Setup type of Jobs
- Continues
- Manual
- Triggered
Read Web Application Setting values from inside the Azure WebJobs.
- How to use the PNP SharePoint PowerShell Dlls
- Download the dependency in local using Save-Module command.
- Include the reference in project
- Read the site Info from PNP SharePoint PowerShell Dllls.
-
Connect to the Site Via App Authentication
-
Register a SharePoint app
- _layouts/15/AppRegNew.aspx
-
Add permissions to the registered app
-
Permission XML
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
<AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Read" />
<AppPermissionRequest Scope="http://sharepoint/taxonomy " Right="Read" />
</AppPermissionRequests>