Skip to content

Add Teams template support to New-PnPTeamsTeam#5405

Merged
gautamdsheth merged 3 commits into
devfrom
gautamdsheth-add-teams-templates
Jul 20, 2026
Merged

Add Teams template support to New-PnPTeamsTeam#5405
gautamdsheth merged 3 commits into
devfrom
gautamdsheth-add-teams-templates

Conversation

@gautamdsheth

Copy link
Copy Markdown
Collaborator

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

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #999

What is in this Pull Request ?

Adds Microsoft Graph team template provisioning support to New-PnPTeamsTeam.

This PR adds Standard and EDU_Staff template values, maps the education templates to the current Microsoft Graph base template IDs, and provisions template-based teams through POST /teams with template@odata.bind and teamsAsyncOperation polling. 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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 18, 2026 21:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 /teams provisioning.
  • 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.

Comment thread src/Commands/Utilities/TeamsUtility.cs Outdated
Comment thread CHANGELOG.md Outdated
Comment thread src/Commands/Utilities/TeamsUtility.cs Outdated
Comment thread documentation/New-PnPTeamsTeam.md Outdated
Comment thread src/Commands/Utilities/TeamsUtility.cs
gautamdsheth and others added 2 commits July 19, 2026 00:40
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@gautamdsheth
gautamdsheth merged commit 73cb2fb into dev Jul 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add other templates to New-PnPTeamsTeam command like educationStaff

2 participants