powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Teamifying site at URL - https://myCompany.sharepoint.com/teams/teamify5 failed due to an exception:- {"odata.error":{"code":"10005","message":{"lang":"en-US","value":"Authentication method is not allowed."}}}

Open khha opened this issue 1 year ago • 0 comments

Reporting an Issue or Missing Feature

I try to teamify a SharePoint site and using the command Invoke-PnPTenantTemplate and get the warning below.

I am global admin

Expected behavior

I expect a teamified SharePoint site without warnings/errors.

Actual behavior

Teamifying site at URL - https://myCompany.sharepoint.com/teams/teamify5 failed due to an exception:- {"odata.error":{"code":"10005","message":{"lang":"en-US","value":"Authentication method is not allowed."}}}

Steps to reproduce behavior

$alias = "teamify5"

# Connect to the target tenant with app-only context
Connect-PnPOnline https://myCompany-admin.sharepoint.com/ -Interactive

# Apply the tenant template
Invoke-PnPTenantTemplate -Path "C:\PS\Diversen\template.xml" -Parameters @{"TeamTitle"=$alias;"TeamAlias"=$alias}

What is the version of the Cmdlet module you are running?

2.2.0

Which operating system/environment are you running PnP PowerShell on?

  • [X] Windows
  • [ ] Linux
  • [ ] MacOS
  • [ ] Azure Cloud Shell
  • [ ] Azure Functions
  • [ ] Other : please specify

khha avatar Nov 20 '23 14:11 khha