OfficeDev / microsoft-teams-emergency-operations-center

The Microsoft Teams Emergency Operations Center (TEOC) solution template leverages the power of the Microsoft 365 platform to centralize incident response, information sharing and field communications using powerful services like Microsoft Lists, SharePoint and more.
MIT License
95 stars 40 forks source link

Connect-PnPOnline -Url $TenantURL -Interactive: Specified method is not supported. #255

Closed maksudcs closed 1 month ago

maksudcs commented 1 month ago

Hey,

i am trying to deploy TEOC app in my tenant through PowerShell but getting following error:

PS D:\Projects\People**\Source**\Deployment\provisioning> .\EOC-Provision.ps1 Enter site template XML schema file path: D:\Projects\People**\Source**\Deployment\provisioning\EOC-SiteTemplate.xml D:\Projects\People**\Source**\Deployment\provisioning\EOC-SiteTemplate.xml tenant App Id for authentication. As of September 9th, 2024 this option is not available anymore. Refer to https://pnp.github.io/powershell/articles/registerapplication.html on how to register your own application. Connect-PnPOnline: D:\Projects\People\Daniel\Source\SEOC\Deployment\provisioning\EOC-Provision.ps1:32:1 Line | 32 | Connect-PnPOnline -Url $TenantURL -Interactive | ~~~~~~~~~~ | Specified method is not supported. Checking if site already exists at /sites/TEstEOC Site doesn't exist, creating new site at /sites/TEstEOC https://csiroc.sharepoint.com/sites/TEstEOC WARNING: Connecting with -Interactive used the PnP Management Shell multi-tenant App Id for authentication. As of September 9th, 2024 this option is not available anymore. Refer to https://pnp.github.io/powershell/articles/registerapplication.html on how to register your own application.

Error Message: Specified method is not supported.

below my PnP.PowerShell version:

ModuleType Version PreRelease Name ExportedCommands


Manifest 2.12.0 PnP.PowerShell {Add-PnPAlert, Add-PnPApp, Add-PnPApplicationCustomizer, Add-PnPAvailableSiteClassification…}

Thanks

v-saikirang commented 1 month ago

Hi @maksudcs,

Thanks for reaching out to us.

We have modified the power shell script as part of our new release couple days back. Can you please confirm if you are using the new power shell script. Also please check the deployment guide for pre requisites for running the power shell script. Thanks.

3666228 commented 1 month ago

I was having a similar issue, I had to adjust the script to fit my companies nuances. My issue is the entra ID registration, once you do that I was able to get around the 9/9 error you are getting. Now I am stuck with the client ID portion in the script. Just an FYI.

https://pnp.github.io/powershell/articles/registerapplication.html#automatically-create-an-app-registration-for-interactive-login

maksudcs commented 1 month ago

Hi @v-saikirang ,
Thanks for your response. Fantastic , now its working.
Thanks