From 75f9a908b17a1137d652f5080d864efacf3b50f5 Mon Sep 17 00:00:00 2001 From: robharad Date: Mon, 4 May 2026 12:08:13 -0700 Subject: [PATCH] Fix PlatyPS 0.14.2 schema error: single code block per example PlatyPS 0.14.2 (used by TPM build pipeline) does not support multiple code blocks per example. Merge command and output into single code blocks using PS> prompt prefix, matching the pattern in Get-Team.md. Fixes: "Schema exception. This can occur when there are multiple code blocks in one example." --- ...Get-TenantPrivateChannelMigrationStatus.md | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/teams/teams-ps/MicrosoftTeams/Get-TenantPrivateChannelMigrationStatus.md b/teams/teams-ps/MicrosoftTeams/Get-TenantPrivateChannelMigrationStatus.md index 4fedd11a85..c796348fb9 100644 --- a/teams/teams-ps/MicrosoftTeams/Get-TenantPrivateChannelMigrationStatus.md +++ b/teams/teams-ps/MicrosoftTeams/Get-TenantPrivateChannelMigrationStatus.md @@ -31,12 +31,8 @@ The `Get-TenantPrivateChannelMigrationStatus` cmdlet allows tenant administrator ### Example 1 ```powershell -Get-TenantPrivateChannelMigrationStatus -``` - -This example gets the migration status for a tenant where all channels have been migrated. +PS> Get-TenantPrivateChannelMigrationStatus -```Output TenantId : 12345678-1234-1234-1234-123456789abc MigrationStatus : Completed MigrationStartTimeStamp : 2025-10-09T10:15:00.456Z @@ -44,15 +40,13 @@ MigrationCompletionTimeStamp : 2025-10-09T12:45:00.789Z Details : {"totalChannels":10,"migratedChannels":10,"failedChannels":0,"ownerlessChannels":0,"remainingChannels":0} ``` +This example gets the migration status for a tenant where all channels have been migrated. + ### Example 2 ```powershell -Get-TenantPrivateChannelMigrationStatus -``` - -This example gets the migration status for a tenant where some channels require admin attention. +PS> Get-TenantPrivateChannelMigrationStatus -```Output TenantId : 94d200e4-2df1-45b9-bc3e-53cfa7cf4997 MigrationStatus : RequiresAdminAttention MigrationStartTimeStamp : 2026-02-10T06:48:20.000Z @@ -63,10 +57,10 @@ Details : {"totalChannels":10,"migratedChannels":6,"failedC ### Example 3 ```powershell -$result = Get-TenantPrivateChannelMigrationStatus -$details = $result.Details | ConvertFrom-Json -Write-Host "Total: $($details.totalChannels), Migrated: $($details.migratedChannels), Failed: $($details.failedChannels), Ownerless: $($details.ownerlessChannels)" -if ($details.ownerlessChannelsDetails) { $details.ownerlessChannelsDetails | Format-Table channelThreadId, teamId } +PS> $result = Get-TenantPrivateChannelMigrationStatus +PS> $details = $result.Details | ConvertFrom-Json +PS> Write-Host "Total: $($details.totalChannels), Migrated: $($details.migratedChannels), Failed: $($details.failedChannels), Ownerless: $($details.ownerlessChannels)" +PS> if ($details.ownerlessChannelsDetails) { $details.ownerlessChannelsDetails | Format-Table channelThreadId, teamId } ``` This example parses the Details JSON and lists ownerless channels in a table.