Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Register Azure AD app using PnP PowerShell
Initialize-PnPPowerShellAuthentication -ApplicationName CaPa.Reporting `
-Tenant "tenant.co.uk" -Store CurrentUser -ValidYears 2 `
-CertificatePassword (ConvertTo-SecureString -String "password" -AsPlainText -Force)
# Output Example from PS:
#
# AzureAppId Certificate Thumbprint
# ---------- ----------------------
# c53eb8da-8bdf-44f9-8718-1fb1bbbbbb EC1E61510AEC35624AF78FEA763D00000000
#
# Example Test Connection
Connect-PnPOnline -ClientId c53eb8da-8bdf-44f9-8718-1fb1bbbbbb `
-Thumbprint EC1E61510AEC35624AF78FEA763D00000000 `
-Tenant "tenant.co.uk" -Url "https://tenant.sharepoint.com"
Get-PnPSite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.