Commands › Microsoft Teams

Update-M365TeamsApp

Microsoft Teams MicrosoftTeams Update-*

This cmdlet updates app state and app available values for the Microsoft Teams app.

Quick start script

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

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-M365TeamsApp
$before | Format-List

# 3. Make the change
Update-M365TeamsApp -AppAssignmentType <String> -AppInstallType <String> -Id <String>

# 4. Verify and diff
$after = Get-M365TeamsApp
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Update-M365TeamsApp -Id <String> [-IsBlocked <Boolean>] -AppAssignmentType <String> -OperationType <String>
 [-Users <String[]>] [-Groups <String[]>] -AppInstallType <String> -InstallForOperationType <String> [-InstallForUsers <String[]> -InstallForGroups <String[]> -InstallVersion <String>] [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-AppAssignmentType String yes App availability type.
-AppInstallType String yes App installation type.
-Groups String[] List of all the groups for whom the app is enabled or disabled.
-Id String yes Application ID of Microsoft Teams app.
-InstallForGroups String[] List of all the groups for whom the app is installed.
-InstallForOperationType String yes Operation performed on the app installation.
-InstallForUsers String[] List of all the users for whom the app is installed.
-InstallVersion String yes App version to be installed.
-IsBlocked Boolean The state of the app in the tenant.
-OperationType String yes Operation performed on the app assigment.
-Users String[] List of all the users for whom the app is enabled or disabled.

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