Skip to content

Commit 2b68bcb

Browse files
MIchaelMainerMicrosoft Graph DevX Toolingramsessanchez
authored
Updating examples (#3642)
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com> Co-authored-by: Ramses Sanchez-Hernandez <63934382+ramsessanchez@users.noreply.github.com>
1 parent 450bc26 commit 2b68bcb

13 files changed

Lines changed: 84 additions & 20 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: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get application template
22

33
```powershell
44
55
Import-Module Microsoft.Graph.Applications
66
7-
Get-MgApplicationTemplate
7+
Get-MgApplicationTemplate -ApplicationTemplateId $applicationTemplateId
88
99
```
10-
This example shows how to use the Get-MgApplicationTemplate Cmdlet.
10+
This example will get application template
11+
12+
### Example 2: Get application template with optional properties
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Applications
17+
18+
Get-MgApplicationTemplate -ApplicationTemplateId $applicationTemplateId -Property "id,displayName,riskScore,riskFactors"
19+
20+
```
21+
This example will get application template with optional properties
1122

src/Identity.SignIns/beta/examples/Confirm-MgBetaIdentityRiskPreventionWebApplicationFirewallProvider.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Verify a specific webApplicationFirewallProvider object
22

33
```powershell
44
@@ -11,5 +11,20 @@ $params = @{
1111
Confirm-MgBetaIdentityRiskPreventionWebApplicationFirewallProvider -WebApplicationFirewallProviderId $webApplicationFirewallProviderId -BodyParameter $params
1212
1313
```
14-
This example shows how to use the Confirm-MgBetaIdentityRiskPreventionWebApplicationFirewallProvider Cmdlet.
14+
This example will verify a specific webapplicationfirewallprovider object
15+
16+
### Example 2: Verify a specific webApplicationFirewallProviders object along with the details of their associated provider.
17+
18+
```powershell
19+
20+
Import-Module Microsoft.Graph.Beta.Identity.SignIns
21+
22+
$params = @{
23+
hostName = "www.contoso.com"
24+
}
25+
26+
Confirm-MgBetaIdentityRiskPreventionWebApplicationFirewallProvider -WebApplicationFirewallProviderId $webApplicationFirewallProviderId -ExpandProperty "provider" -BodyParameter $params
27+
28+
```
29+
This example will verify a specific webapplicationfirewallproviders object along with the details of their associated provider.
1530

src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md

Whitespace-only changes.

src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md

Whitespace-only changes.
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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: Complete the migration of external messages in a chat
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Teams
6+
7+
Complete-MgChatMigration -ChatId $chatId
8+
9+
```
10+
This example will complete the migration of external messages in a chat
11+
12+
### Example 2: Complete the migration when a chat is already in migration mode
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Teams
17+
18+
Complete-MgChatMigration -ChatId $chatId
19+
20+
```
21+
This example will complete the migration when a chat is already in migration mode
22+
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

0 commit comments

Comments
 (0)