Create Site Collection - Unattended #289
-
I am looking to automate Site Collection creation in a C# Azure Function, authenticating app-only with the app registered through the However I cannot see any method in Is there no equivalent of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@anthonywhite : Site collection creation is done using REST API's for the most part, creating a group connected site using App-Only uses a Graph API call. Code lives here: https://github.com/pnp/pnpframework/blob/dev/src/lib/PnP.Framework/Sites/SiteCollection.cs Currently we do not yet have support for creating site collections in PnP Core SDK, but as mentioned by you when using a CSOM client context this works...the CSOM client context is just used to obtain an access token for the REST/Graph calls. We do plan to add support for site collection creation in PnP Core SDK going forward, just did not get to it yet |
Beta Was this translation helpful? Give feedback.
@anthonywhite : Site collection creation is done using REST API's for the most part, creating a group connected site using App-Only uses a Graph API call. Code lives here: https://github.com/pnp/pnpframework/blob/dev/src/lib/PnP.Framework/Sites/SiteCollection.cs
Currently we do not yet have support for creating site collections in PnP Core SDK, but as mentioned by you when using a CSOM client context this works...the CSOM client context is just used to obtain an access token for the REST/Graph calls. We do plan to add support for site collection creation in PnP Core SDK going forward, just did not get to it yet