In the previous post I showed how to create Azure Function and interact with SharePoint Online using SharePoint CSOM and Access Token received from Azure Active Directory using ADAL.NET. In this post I will continue to work with Azure Functions and will create a function that actually has some business logic and can be used in real-life scenarios.
In previous post I showed how to create Azure Active Directory app and set up required permissions. Also, I provided the example of code that can be used to interact with SharePoint Online REST API using SharePoint CSOM. In this post I am going to apply a similar approach in order to provision SharePoint Online artifacts to the target site using Azure Functions.