Skip to content

Commit 75f9a90

Browse files
author
robharad
committed
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."
1 parent be1661e commit 75f9a90

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

teams/teams-ps/MicrosoftTeams/Get-TenantPrivateChannelMigrationStatus.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,22 @@ The `Get-TenantPrivateChannelMigrationStatus` cmdlet allows tenant administrator
3131
### Example 1
3232

3333
```powershell
34-
Get-TenantPrivateChannelMigrationStatus
35-
```
36-
37-
This example gets the migration status for a tenant where all channels have been migrated.
34+
PS> Get-TenantPrivateChannelMigrationStatus
3835
39-
```Output
4036
TenantId : 12345678-1234-1234-1234-123456789abc
4137
MigrationStatus : Completed
4238
MigrationStartTimeStamp : 2025-10-09T10:15:00.456Z
4339
MigrationCompletionTimeStamp : 2025-10-09T12:45:00.789Z
4440
Details : {"totalChannels":10,"migratedChannels":10,"failedChannels":0,"ownerlessChannels":0,"remainingChannels":0}
4541
```
4642

43+
This example gets the migration status for a tenant where all channels have been migrated.
44+
4745
### Example 2
4846

4947
```powershell
50-
Get-TenantPrivateChannelMigrationStatus
51-
```
52-
53-
This example gets the migration status for a tenant where some channels require admin attention.
48+
PS> Get-TenantPrivateChannelMigrationStatus
5449
55-
```Output
5650
TenantId : 94d200e4-2df1-45b9-bc3e-53cfa7cf4997
5751
MigrationStatus : RequiresAdminAttention
5852
MigrationStartTimeStamp : 2026-02-10T06:48:20.000Z
@@ -63,10 +57,10 @@ Details : {"totalChannels":10,"migratedChannels":6,"failedC
6357
### Example 3
6458

6559
```powershell
66-
$result = Get-TenantPrivateChannelMigrationStatus
67-
$details = $result.Details | ConvertFrom-Json
68-
Write-Host "Total: $($details.totalChannels), Migrated: $($details.migratedChannels), Failed: $($details.failedChannels), Ownerless: $($details.ownerlessChannels)"
69-
if ($details.ownerlessChannelsDetails) { $details.ownerlessChannelsDetails | Format-Table channelThreadId, teamId }
60+
PS> $result = Get-TenantPrivateChannelMigrationStatus
61+
PS> $details = $result.Details | ConvertFrom-Json
62+
PS> Write-Host "Total: $($details.totalChannels), Migrated: $($details.migratedChannels), Failed: $($details.failedChannels), Ownerless: $($details.ownerlessChannels)"
63+
PS> if ($details.ownerlessChannelsDetails) { $details.ownerlessChannelsDetails | Format-Table channelThreadId, teamId }
7064
```
7165

7266
This example parses the Details JSON and lists ownerless channels in a table.

0 commit comments

Comments
 (0)