Add Teams template support to New-PnPTeamsTeam#5405
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Microsoft Graph template provisioning to New-PnPTeamsTeam, addressing #999 while preserving the existing group-first flow when no template is selected.
Changes:
- Adds Standard and education staff templates.
- Implements asynchronous
POST /teamsprovisioning. - Updates permissions and documentation.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/Commands/Utilities/TeamsUtility.cs |
Implements template creation and polling. |
src/Commands/Teams/NewTeamsTeam.cs |
Adds template validation and permissions. |
src/Commands/Model/Graph/TeamsAsyncOperation.cs |
Models asynchronous Graph operations. |
src/Commands/Enums/TeamsTemplateType.cs |
Adds template values. |
documentation/New-PnPTeamsTeam.md |
Documents template usage. |
CHANGELOG.md |
Adds a feature entry. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before creating a pull request, make sure that you have read the contribution file located at
https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md
Type
Related Issues?
Fixes #999
What is in this Pull Request ?
Adds Microsoft Graph team template provisioning support to
New-PnPTeamsTeam.This PR adds
StandardandEDU_Stafftemplate values, maps the education templates to the current Microsoft Graph base template IDs, and provisions template-based teams throughPOST /teamswithtemplate@odata.bindandteamsAsyncOperationpolling. The existing non-template Microsoft 365 Group creation and teamify flow remains unchanged for compatibility.It also updates the cmdlet documentation and changelog entry for the new template behavior and limitations.