Skip to content
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

New-PnPSite : App-Only is currently not supported, unless you provide a Microsoft Graph Access Token. #149

Open
edmund-davis opened this issue Sep 21, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@edmund-davis
Copy link

Getting an error while deploying this app:
New-PnPSite : App-Only is currently not supported, unless you provide a Microsoft Graph Access Token.
At \microsoft-teams-apps-requestateam-master\Deployment\Scripts\deploy.ps1:309 char:9

  •     New-PnPSite -Type TeamSite -Title $RequestsSiteName -Alias $r ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (:) [New-PnPSite], Exception
    • FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.NewSite

Any suggestions?

@edmund-davis
Copy link
Author

Replacing version 3.25.2009.1 with 3.23.2007.1 seems to allow this process to complete.
Is this a fault with the updated PnP module or does the app need to be updated?

@DmitryVorobyov
Copy link

I am also seeing this. Wondering if this issue from the past may be related: pnp/PnP-PowerShell#1351

@alexc-MSFT
Copy link
Member

@edmund-davis @DmitryVorobyov this is a bug in the latest PnP module, see previous issue #134

We will keep this open until they resolve it but for now you can downgrade as above.

@alexc-MSFT alexc-MSFT self-assigned this Sep 29, 2020
@alexc-MSFT alexc-MSFT added the bug Something isn't working label Sep 29, 2020
@momoangel
Copy link

FYI - it seems the script is installing 3.26.2010.0 (despite noting that it should install 3.23.2007.1)

Even after I uninstalled existing sharepointpnpowershellonline module and then manually installed 3.23.2007.1, running the script installed 3.26.2010.0, and I get the error again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants