As we are transitioning away from PNP Online Module - SECTION will capture all corresponding research.
Working with SharePoint sites in Microsoft Graph
https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0
API supports core activities:
The SharePoint API exposes three major resource types:
# Install the Microsoft Graph PowerShell SDK Install-Module Microsoft.Graph # Connect to Microsoft Graph Connect-MgGraph -Scopes "Sites.ReadWrite.All" # Create a new SharePoint site $site = New-MgSite -DisplayName "New Site" -WebUrl "https://yourtenant.sharepoint.com/sites/newsite" -SiteCollection @{Hostname="yourtenant.sharepoint.com"; SiteCollectionType="TeamSite"}