Apply tenant template to create SiteCollection and Teams
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 259
- Forks
- 161
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
I have prepared a PnPTenantTemplate xml and used below command to create new site and Teams for the site. But I am getting below error.
PS Command:
Connect-PnPOnline https://tenant.sharepoint.com/ -UseWebLogin
Invoke-PnPTenantTemplate -Path "C:\LAB\ExpPoC\TeamSite.xml"
Error:
Invoke-PnPTenantTemplate : Your template contains artifacts that require an access
token for https://graph.microsoft.com. Please provide consent to the PnP Management
Shell application first by executing: Register-PnPManagementShellAccess
At line:1 char:1
- Invoke-PnPTenantTemplate -Path "C:\LAB\ExpPoC\TeamSite.xml"
-
+ CategoryInfo : WriteError: (:) [Invoke-PnPTenantTemplate], PSInvalidOper ationException + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Tenant.Inv okeTenantTemplate
NOTE: I have given admin consent to app permission required for PnPPwoershell but stull this error comes.
More information:
MFA is enabled on our tenant. We want to use PNPTemplate provisioning as automated service using Azure FuncationApp.
Please suggest to to toggle this issue.
thanks,
K Senthilrajan
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files, tests, or entry points. Start by reviewing the Invoke-PnPTenantTemplate command, the reported Microsoft Graph consent error, and the stated MFA and Azure Function App requirements. Done means identifying the supported authentication and consent path for automated tenant-template provisioning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, powershell, xml
- Domain
- authentication, cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100