Skip to content

Commit

Permalink
Updating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Nov 1, 2024
1 parent 09855d3 commit ce5c1f7
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 50 deletions.
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

0 comments on commit ce5c1f7

Please sign in to comment.