You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a questions with regards to a pnp.powershell provisioning script. If I create a new Modern SharePoint site via the /_layouts/15/sharepoint.aspx then I know the newly created site won't be Teamified and can execute the New-PnPTeamsTeam module to Teamify the site, but if I create a new Team directly from Microsoft Teams then the provisioning script will fail fail as the Microsoft Team already exists.
Is there a way to check if a Modern Group has a Team associated with it before attempting to run New-PnPTeamsTeam?
I guess I could also add a Try Catch to thought there might be a nicer solution?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I have a questions with regards to a pnp.powershell provisioning script. If I create a new Modern SharePoint site via the /_layouts/15/sharepoint.aspx then I know the newly created site won't be Teamified and can execute the New-PnPTeamsTeam module to Teamify the site, but if I create a new Team directly from Microsoft Teams then the provisioning script will fail fail as the Microsoft Team already exists.
Is there a way to check if a Modern Group has a Team associated with it before attempting to run New-PnPTeamsTeam?
I guess I could also add a Try Catch to thought there might be a nicer solution?
Beta Was this translation helpful? Give feedback.
All reactions