Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.

17 changes: 14 additions & 3 deletions src/Applications/v1.0/examples/Get-MgApplicationTemplate.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
### Example 1: Code snippet
### Example 1: Get application template

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgApplicationTemplate
Get-MgApplicationTemplate -ApplicationTemplateId $applicationTemplateId

```
This example shows how to use the Get-MgApplicationTemplate Cmdlet.
This example will get application template

### Example 2: Get application template with optional properties

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgApplicationTemplate -ApplicationTemplateId $applicationTemplateId -Property "id,displayName,riskScore,riskFactors"

```
This example will get application template with optional properties

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Verify a specific webApplicationFirewallProvider object

```powershell

Expand All @@ -11,5 +11,20 @@ $params = @{
Confirm-MgBetaIdentityRiskPreventionWebApplicationFirewallProvider -WebApplicationFirewallProviderId $webApplicationFirewallProviderId -BodyParameter $params

```
This example shows how to use the Confirm-MgBetaIdentityRiskPreventionWebApplicationFirewallProvider Cmdlet.
This example will verify a specific webapplicationfirewallprovider object

### Example 2: Verify a specific webApplicationFirewallProviders object along with the details of their associated provider.

```powershell

Import-Module Microsoft.Graph.Beta.Identity.SignIns

$params = @{
hostName = "www.contoso.com"
}

Confirm-MgBetaIdentityRiskPreventionWebApplicationFirewallProvider -WebApplicationFirewallProviderId $webApplicationFirewallProviderId -ExpandProperty "provider" -BodyParameter $params

```
This example will verify a specific webapplicationfirewallproviders object along with the details of their associated provider.

15 changes: 13 additions & 2 deletions src/Security/beta/examples/Get-MgBetaSecurityAlertV2.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Get all alerts

```powershell

Expand All @@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Beta.Security
Get-MgBetaSecurityAlertV2

```
This example shows how to use the Get-MgBetaSecurityAlertV2 Cmdlet.
This example will get all alerts

### Example 2: Get all alerts from Microsoft Sentinel

```powershell

Import-Module Microsoft.Graph.Beta.Security

Get-MgBetaSecurityAlertV2 -Filter "serviceSource eq 'microsoftSentinel'"

```
This example will get all alerts from microsoft sentinel

22 changes: 22 additions & 0 deletions src/Teams/v1.0/examples/Complete-MgChatMigration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Example 1: Complete the migration of external messages in a chat

```powershell

Import-Module Microsoft.Graph.Teams

Complete-MgChatMigration -ChatId $chatId

```
This example will complete the migration of external messages in a chat

### Example 2: Complete the migration when a chat is already in migration mode

```powershell

Import-Module Microsoft.Graph.Teams

Complete-MgChatMigration -ChatId $chatId

```
This example will complete the migration when a chat is already in migration mode

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

15 changes: 13 additions & 2 deletions src/Teams/v1.0/examples/Complete-MgTeamChannelMigration.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Complete the migration when a channel is in migration mode

```powershell

Expand All @@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Teams
Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId

```
This example shows how to use the Complete-MgTeamChannelMigration Cmdlet.
This example will complete the migration when a channel is in migration mode

### Example 2: Complete the migration when a channel isn't in migration mode

```powershell

Import-Module Microsoft.Graph.Teams

Complete-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId

```
This example will complete the migration when a channel isn't in migration mode

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/Teams/v1.0/examples/Complete-MgUserChatMigration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading