Set-MSTTeamsApp
Teams: Updates an app in the Teams tenant app store
#Requires -Version 5.1
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true)]
[string]$AppId,
[Parameter(Mandatory = $true)]
[string]$AppPath
)
Process {
try {
[hashtable]$cmdArgs = @{'ErrorAction' = 'Stop'; 'Id' = $AppId; 'Path' = $AppPath}
$null = Set-TeamsApp @cmdArgs
$result = Get-TeamsApp -Id $AppId -ErrorAction Stop | Select-Object *
if ($null -eq $result) {
Write-Output "Failed to update Teams app"
return
}
$result | Add-Member -NotePropertyName Timestamp -NotePropertyValue (Get-Date -Format 'yyyy-MM-dd HH:mm:ss') -PassThru -Force
}
catch { throw }
}The app's ID generated by Teams (different from the external ID)
The local path of the app manifest zip file