Last active
September 7, 2020 14:20
-
-
Save gautamdsheth/80488ff2055fb52486e1c12629d0e20d to your computer and use it in GitHub Desktop.
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
$tenant = "tenant.onmicrosoft.com" | |
# Create Azure AD app | |
$psa = Initialize-PnPPowerShellAuthentication -ApplicationName TestTeamsApp -Tenant $tenant -Store CurrentUser | |
# Connect to SPO+Graph using certificate authentication | |
Connect-PnPOnline "https://tenant-admin.sharepoint.com/" -Tenant $tenant -ClientId $psa.AzureAppId | |
-Thumbprint $psa.'Certificate Thumbprint' | |
# Store the extracted template somwhere | |
Get-PnPTenantTemplate -Out "TeamTemplate.xml" -Configuration "ExtractTeam.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment