Haiye Wang

The whole process is that the user initiates a request to create a new team site in the SharePoint site. After the administrator approves it, Power Automate sends the message to Azure Queue, and then triggers the Azure function to create the site and deploy the specified template.

Currently, there are two versions of runtime in Azure Function, V1 and V3, V1 is recommended. Because V3 needs to install pnp.framework, this package is still a preview, and errors will occur when deploying the template.

Of course, using V1 is not without any pits. First, you must install the version above newtonsoft.json 11, so that the new version of sharepointonline.csom can be installed. Then you can successfully create the site and deploy the template. The corresponding sample code can be found on the Microsoft website, so I won’t attach it here.

--

--