Commands › Microsoft Teams

Get-CsTeamTemplate

Microsoft Teams MicrosoftTeams Get-*

This cmdlet supports retrieving details of a team template available to your tenant given the team template uri.

Quick start script

# Get-CsTeamTemplate — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Run and inspect
Get-CsTeamTemplate -InputObject <IConfigApiBasedCmdletsIdentity> -OdataId <String> | Format-List

# 3. Export for evidence / drift tracking
Get-CsTeamTemplate | Export-Clixml .\CsTeamTemplate-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Get (Default)

Get-CsTeamTemplate -OdataId <String> [-Break] [-HttpPipelineAppend <SendAsyncStep[]>]
 [-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>]
 [-ProxyUseDefaultCredentials] [<CommonParameters>]

GetViaIdentity

Get-CsTeamTemplate -InputObject <IConfigApiBasedCmdletsIdentity> [-Break]
 [-HttpPipelineAppend <SendAsyncStep[]>] [-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>]
 [-ProxyCredential <PSCredential>] [-ProxyUseDefaultCredentials] [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Break SwitchParameter Wait for .NET debugger to attach
-HttpPipelineAppend SendAsyncStep[] SendAsync Pipeline Steps to be appended to the front of the pipeline
-HttpPipelinePrepend SendAsyncStep[] SendAsync Pipeline Steps to be prepended to the front of the pipeline
-InputObject IConfigApiBasedCmdletsIdentity yes Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
-OdataId String yes A composite URI of a template.
-Proxy Uri The URI for the proxy server to use
-ProxyCredential PSCredential Credentials for a proxy server to use for the remote call
-ProxyUseDefaultCredentials SwitchParameter Use the default credentials for the proxy

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.