-
Notifications
You must be signed in to change notification settings - Fork 400
[BUG] New-PnPSite is not working after PNP Management shell tenant app was discontinued. #4261
Description
After PNP Management shell tenant app was discontinued on 9/9, the script that we had for site provisioning stopped working. We have created Entra App registration and added below permissions to the app:
ChannelMember.ReadWrite.All | Delegated
Directory.AccessAsUser.All | Delegated
Directory.ReadWrite.All | Delegated
Group.ReadWrite.All | Delegated
Team.Create | Delegated
TeamMember.ReadWrite.All | Delegated
TeamsAppInstallation.ReadWriteForUser | Delegated
TeamSettings.ReadWrite.All | Delegated
TeamsTab.ReadWrite.All | Delegated
User.Read | Delegated
AllSites.FullControl | Delegated
Sites.FullControl.All | Application
Sites.Search.All | Delegated
TermStore.ReadWrite.All | Delegated
User.ReadWrite.All | Delegated
We were able to use the commands:
Connect-PnPOnline -url $TenantUrl -ClientId "" -ClientSecret ""
Connect-PnPOnline -Url "" -ClientId "" -ClientSecret ""
but for New-PnPSite -Title $Title -Type TeamSite -Alias $Alias, we are receiving the error:
New-PnPSite : Creating a new teamsite requires an underlying Microsoft 365 group. In order to create this we need to acquire an access token for the Microsoft Graph. This is not possible using ACS App Only connections.
What is the version of the Cmdlet module you are running?
New-PnPSite -Title $Title -Type TeamSite -Alias $Alias
Which operating system/environment are you running PnP PowerShell on?
- Windows