diff --git a/src/Teams/beta/examples/Get-MgBetaAllTeamChannel.md b/src/Teams/beta/examples/Get-MgBetaAllTeamChannel.md index e69de29bb2d..5bdbbda0282 100644 --- a/src/Teams/beta/examples/Get-MgBetaAllTeamChannel.md +++ b/src/Teams/beta/examples/Get-MgBetaAllTeamChannel.md @@ -0,0 +1,22 @@ +### Example 1: List all channels + +```powershell + +Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaAllTeamChannel -TeamId $teamId + +``` +This example will list all channels + +### Example 2: List all shared channels + +```powershell + +Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaAllTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'" + +``` +This example will list all shared channels + diff --git a/src/Teams/beta/examples/Get-MgBetaChatMember.md b/src/Teams/beta/examples/Get-MgBetaChatMember.md index 98b2c5608a0..e394a3e7755 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatMember.md +++ b/src/Teams/beta/examples/Get-MgBetaChatMember.md @@ -1,9 +1,11 @@ -### Example 1: Code snippet +### Example 1: Code snippet -```powershell Import-Module Microsoft.Graph.Beta.Teams +```powershell + +Import-Module Microsoft.Graph.Beta.Teams + +Get-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId + +``` +This example shows how to use the Get-MgBetaChatMember Cmdlet. -Get-MgBetaChatMember -ChatId $chatId -ConversationMemberId $conversationMemberId -``` -This example shows how to use the Get-MgBetaChatMember Cmdlet. - To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). - diff --git a/src/Teams/beta/examples/Get-MgBetaChatPermissionGrant.md b/src/Teams/beta/examples/Get-MgBetaChatPermissionGrant.md index ef00a261a9f..7b98ff790ed 100644 --- a/src/Teams/beta/examples/Get-MgBetaChatPermissionGrant.md +++ b/src/Teams/beta/examples/Get-MgBetaChatPermissionGrant.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgBetaChatPermissionGrant Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Beta.Teams + Get-MgBetaChatPermissionGrant -ChatId $chatId + ``` This example shows how to use the Get-MgBetaChatPermissionGrant Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Teams/beta/examples/Get-MgBetaGroupTeamPermissionGrant.md b/src/Teams/beta/examples/Get-MgBetaGroupTeamPermissionGrant.md index 093355d11d5..e69de29bb2d 100644 --- a/src/Teams/beta/examples/Get-MgBetaGroupTeamPermissionGrant.md +++ b/src/Teams/beta/examples/Get-MgBetaGroupTeamPermissionGrant.md @@ -1,18 +0,0 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - diff --git a/src/Teams/v1.0/examples/Get-MgAllTeamChannel.md b/src/Teams/v1.0/examples/Get-MgAllTeamChannel.md index e69de29bb2d..4d7150a7f2a 100644 --- a/src/Teams/v1.0/examples/Get-MgAllTeamChannel.md +++ b/src/Teams/v1.0/examples/Get-MgAllTeamChannel.md @@ -0,0 +1,22 @@ +### Example 1: List all channels + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgAllTeamChannel -TeamId $teamId + +``` +This example will list all channels + +### Example 2: List all shared channels + +```powershell + +Import-Module Microsoft.Graph.Teams + +Get-MgAllTeamChannel -TeamId $teamId -Filter "membershipType eq 'shared'" + +``` +This example will list all shared channels +