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
@@ -0,0 +1,11 @@
### Example

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example will### example

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

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId

```
This example will### example

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
Import-Module Microsoft.Graph.Beta.Bookings

$params = @{
externalRegistrationInformation = @{
referrer = "Facebook"
registrationId = "myExternalRegistrationId"
}
preferredTimezone = "Pacific Standard Time"
preferredLanguage = "en-us"
registrationQuestionAnswers = @(
Expand Down Expand Up @@ -51,6 +55,10 @@ $params = @{
firstName = "Diane"
lastName = "Demoss"
email = "[email protected]"
externalRegistrationInformation = @{
referrer = "Facebook"
registrationId = "myExternalRegistrationId"
}
preferredTimezone = "Pacific Standard Time"
preferredLanguage = "en-us"
registrationQuestionAnswers = @(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

Import-Module Microsoft.Graph.Beta.BusinessScenario

Remove-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId
Remove-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId -IfMatch W/'"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="'


```
This example shows how to use the Remove-MgBetaSolutionBusinessScenarioPlannerTask Cmdlet.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,36 +41,3 @@ Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId
```
This example shows how to use the Update-MgBetaEducationClassAssignmentSetting Cmdlet.

### Example 3: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Education

$params = @{
"gradingCategories@delta" = @(
@{
id = "fb859cd3-943b-4cd6-9bbe-fe1c39eace0e"
displayName = "Lab Test"
}
@{
"@odata.context" = "https://graph.microsoft.com/beta/$metadata#gradingCategories/$deletedEntity"
id = "e2a86277-24f9-4f29-8196-8c83fc69d00d"
reason = "deleted"
}
@{
displayName = "Lab Practice"
percentageWeight =
}
@{
displayName = "Lab Theory"
percentageWeight =
}
)
}

Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params

```
This example shows how to use the Update-MgBetaEducationClassAssignmentSetting Cmdlet.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $params = @{
applicationRestrictions = @{
identifierUris = @{
nonDefaultUriAddition = @{
restrictForAppsCreatedAfterDateTime = "2024-01-01T10:37:00Z"
restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2024-01-01T10:37:00Z")
excludeAppsReceivingV2Tokens = $true
excludeSaml = $true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,7 @@ Import-Module Microsoft.Graph.Beta.Security
$params = @{
displayName = "My legalHold with sources"
description = "Created from Graph API"
"[email protected]" = @(
@{
"@odata.type" = "microsoft.graph.security.userSource"
email = "[email protected]"
}
)
"[email protected]" = @(
@{
"@odata.type" = "microsoft.graph.security.siteSource"
site = @{
webUrl = "https://m365x809305.sharepoint.com/sites/Design-topsecret"
}
}
)
contentQuery = "KQL content query"
}

New-MgBetaSecurityCaseEdiscoveryCaseLegalHold -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Import-Module Microsoft.Graph.Security

$params = @{
email = "[email protected]"
includedSources = "mailbox, site"
includedSources = "mailbox"
}

New-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params
Expand Down