We have had a Teams PowerShell module for since 2017, but it has always been a preview state, using the Microsft Graph beta API
Under the covers, there are two Microsoft Graph API’s that can provide data from Microsoft teams, beta and 1.0. The beta graph API provides some abilities, not in the GA/1.0 graph API, but is, by definition beta/preview. Some customers have a requirement to not use anything beta/preview in their organisation. For this reason, Microsoft will be maintaining both a Preview and Generally Available versions of the Microsoft Teams PowerShell module.
The preview/beta PowerShell module, using the beta graph API, will offer new preview functionality to our customers faster for testing, while the Generally Available Microsoft Teams PowerShell module continues to leverage only 1.0 Graph APIs.
the Following cmdlets are available in the GA PowerShell module.
Note, there have been naming and output changes compared to the preview module so scripts written for the preview will need changing/updating to run against the GA PowerShell module. Changes include:
- Connect-MicrosoftTeams: You can now specify a Teams Government Environment (-TeamsEnvironmentName) that your organization is homed in.
- Get-Team: We expanded the filter and selection criteria to include properties such as the Visibility or Archived state of the teams so that you can more easily identify teams that may require your attention
- Microsoft consolidated the functionality of the following cmdlets into the Get-Team and Set-Team cmdlets
I’ve been fortunate to be testing the GA PowerShell module and have some scripts coming, stay tuned for future blogs
Preview module: https://www.powershellgallery.com/packages/MicrosoftTeams/0.9.6
Microsoft Blog: Microsoft Teams PowerShell Module General Availability