-
Notifications
You must be signed in to change notification settings - Fork 17
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply-PnPTenantTemplate : Your template contains artifacts that require an access token. Please provide consent to the PnP Management Shell application first by executing: Register-PnPManagementShellAccess #18
Comments
Related: pnp/PnP-Sites-Core#2750 |
Ah yes I forgot to mention @ypcode That I saw pnp/PnP-Sites-Core #2750 which implied there was something in the PnP XML that may be an issue ... recalling you did not change anything as you tweeted, there was a lot there to "unbundle" and some attempts to mess around with it cause the package to fail for other reasons ... hopefully that note from @sympmarc can help isolate the issue and I don't mind making changes on this end to confirm it. Thank you! |
Which concrete Admin-Permissions are needed to exceute the command: Register-PnPManagementShellAccess |
Right now it's not clear what it wants for permissions and hoping @ypcode might know off hand ... have not had a chance to get back on the dev VM I am using for this to capture the error which might reveal the issue. Technically we were able to reproduce this problem in three separate dev tenants so it feels like the setup is "broken" right now (don't think it affects any installed instances) |
Hello friends, I will have a look at it this weekend and hopefully provide a fixed version of the setup script. Regards, |
@ypcode - on my end, I got stuck trying to get around Register-PnPManagementShellAccess to do anything without kicking off the need to interactively log in. The main thing for CI\CD is not to require interactive login in an MFA environment. Will you address this in your fix or should I consider that a separate issue? Thanks! |
same issue , any update or work around |
Same issue. We use MFA. Tried adding -UserWebLogin to Connect-PnPOnline but still get error:
I ran Register-PnPManagementShellAccess successfully with no change to error. |
Same issue. |
Hello friends, Really sorry for the delay. Quite a lot of things hood me back from taking care of this as I planned to. If anyone is eager to contribute, it is also more than welcome! Best regards, |
@ypcode it seems to related to mfa if that helps . |
Have the same issue and using MFA, but with Apply-PnPProvisioningTemplate, although not using Site Designs Studio. Looks similar to this issue? pnp/PnP-Sites-Core#2750 |
Same bug here :-( |
@ypcode , hoping your adventures recently blogged are giving a leg up on this? ;-) |
Same issue here after upgrading to the latest SharePoint Online Powershell module. I can't recall the previous version I was using but it had an unrelated error so I thought updating would help. I was wrong. :) |
Hi Where are we on this one ? I am getting this error and I cannot get round it. Thanks Nigel |
Confirming the error is still there ... looks like it got busy and hoping others in the community can help out ... |
For me it worked by removing <pnp:Header Layout="Standard" /> and <pnp:Footer... as well from the template. See workaround here: [https://github.com/pnp/PnP-Sites-Core/issues/2750#issuecomment-736082217] |
@ypcode any update on this? |
Any news on this issue? Getting the same problem and unable to install... After consenting, it gets stuck. Tried to unzip the .pnp file and install the web part using the 0e7cfd77-096e-4046-acb5-9c6d698f8f85.sppkg directly in the App Catalog but no new web parts are made available. I was able in the past to use this and from what I remember I had a SiteDesignsStudio SP site where I could manage site designs. |
The Full Error appears as noted in the tweet: Apply-PnPTenantTemplate : Your template contains artifacts that require an access token. Please provide consent to the
PnP Management Shell application first by executing: Register-PnPManagementShellAccess
At line:1 char:1
In effect, it is complaining about something in the PnP package itself that it needs access to.
I can confirm that when the package was manually dropped into the App catalog, it was given tenant wide access and it informed me that we needed to go to API management to grant access to which in the pending area, we found the request and approved it hours ago. It is not clear if there is a time factor for that access assuming it is related to this problem
Steps to confirm
Lookup on similar issues where the fix was to update the PnP package XML header and footer info albeit they do not appear to be related to this package. cc: @ypcode
The text was updated successfully, but these errors were encountered: