Last active
January 10, 2021 00:00
-
-
Save svarukala/1d0c07d1706e378f45f7d715844ba585 to your computer and use it in GitHub Desktop.
Creates the service principal for PnP PowerShell.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$PnPPowerShellAppId = "31359c7f-bd7e-475c-86db-fdb8c937548e" | |
az ad sp create --id $PnPPowerShellAppId | |
#The guid 00000003-0000-0000-c000-000000000000 corresponds to Microsoft Graph | |
az ad app permission grant --id $PnPPowerShellAppId --api 00000003-0000-0000-c000-000000000000 --scope User.Read.All,Group.ReadWrite.All | |
#The guid 00000003-0000-0ff1-ce00-000000000000 corresponds to SPO | |
az ad app permission grant --id $PnPPowerShellAppId --api 00000003-0000-0ff1-ce00-000000000000 --scope User.Read.All,Sites.FullControl.All |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment