Skip to content

Commit 289b9a6

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Updating examples
1 parent 36f2312 commit 289b9a6

7 files changed

Lines changed: 30 additions & 15 deletions
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
### Example
2-
3-
```powershell
4-
5-
Import-Module Microsoft.Graph.Beta.Applications
6-
7-
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8-
9-
```
10-
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.
11-
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get all alerts
22

33
```powershell
44
@@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Beta.Security
77
Get-MgBetaSecurityAlertV2
88
99
```
10-
This example shows how to use the Get-MgBetaSecurityAlertV2 Cmdlet.
10+
This example will get all alerts
11+
12+
### Example 2: Get all alerts from Microsoft Sentinel
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Security
17+
18+
Get-MgBetaSecurityAlertV2 -Filter "serviceSource eq 'microsoftSentinel'"
19+
20+
```
21+
This example will get all alerts from microsoft sentinel
1122

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Complete the migration when a channel is in migration mode
22

33
```powershell
44
@@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Teams
77
Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId
88
99
```
10-
This example shows how to use the Complete-MgTeamChannelMigration Cmdlet.
10+
This example will complete the migration when a channel is in migration mode
11+
12+
### Example 2: Complete the migration when a channel isn't in migration mode
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Teams
17+
18+
Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId
19+
20+
```
21+
This example will complete the migration when a channel isn't in migration mode
1122

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)