Skip to content

Commit 98aa30f

Browse files
authored
Merge pull request #3014 from microsoftgraph/WeeklyExamplesUpdate/202411010311
[v2] Examples Update
2 parents 09855d3 + ce5c1f7 commit 98aa30f

File tree

8 files changed

+35
-50
lines changed

8 files changed

+35
-50
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example will### example
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Applications
6+
7+
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example will### example
11+

src/Bookings/beta/examples/New-MgBetaVirtualEventWebinarRegistration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
Import-Module Microsoft.Graph.Beta.Bookings
66
77
$params = @{
8+
externalRegistrationInformation = @{
9+
referrer = "Facebook"
10+
registrationId = "myExternalRegistrationId"
11+
}
812
preferredTimezone = "Pacific Standard Time"
913
preferredLanguage = "en-us"
1014
registrationQuestionAnswers = @(
@@ -51,6 +55,10 @@ $params = @{
5155
firstName = "Diane"
5256
lastName = "Demoss"
5357
58+
externalRegistrationInformation = @{
59+
referrer = "Facebook"
60+
registrationId = "myExternalRegistrationId"
61+
}
5462
preferredTimezone = "Pacific Standard Time"
5563
preferredLanguage = "en-us"
5664
registrationQuestionAnswers = @(

src/BusinessScenario/beta/examples/Remove-MgBetaSolutionBusinessScenarioPlannerTask.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
55
Import-Module Microsoft.Graph.Beta.BusinessScenario
66
7-
Remove-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId
7+
Remove-MgBetaSolutionBusinessScenarioPlannerTask -BusinessScenarioId $businessScenarioId -BusinessScenarioTaskId $businessScenarioTaskId -IfMatch W/'"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBAWCc="'
8+
89
910
```
1011
This example shows how to use the Remove-MgBetaSolutionBusinessScenarioPlannerTask Cmdlet.

src/Education/beta/examples/Update-MgBetaEducationClassAssignmentSetting.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,3 @@ Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId
4141
```
4242
This example shows how to use the Update-MgBetaEducationClassAssignmentSetting Cmdlet.
4343

44-
### Example 3: Code snippet
45-
46-
```powershell
47-
48-
Import-Module Microsoft.Graph.Beta.Education
49-
50-
$params = @{
51-
"gradingCategories@delta" = @(
52-
@{
53-
id = "fb859cd3-943b-4cd6-9bbe-fe1c39eace0e"
54-
displayName = "Lab Test"
55-
}
56-
@{
57-
"@odata.context" = "https://graph.microsoft.com/beta/$metadata#gradingCategories/$deletedEntity"
58-
id = "e2a86277-24f9-4f29-8196-8c83fc69d00d"
59-
reason = "deleted"
60-
}
61-
@{
62-
displayName = "Lab Practice"
63-
percentageWeight =
64-
}
65-
@{
66-
displayName = "Lab Theory"
67-
percentageWeight =
68-
}
69-
)
70-
}
71-
72-
Update-MgBetaEducationClassAssignmentSetting -EducationClassId $educationClassId -BodyParameter $params
73-
74-
```
75-
This example shows how to use the Update-MgBetaEducationClassAssignmentSetting Cmdlet.
76-

src/Identity.SignIns/beta/examples/New-MgBetaPolicyAppManagementPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $params = @{
5050
applicationRestrictions = @{
5151
identifierUris = @{
5252
nonDefaultUriAddition = @{
53-
restrictForAppsCreatedAfterDateTime = "2024-01-01T10:37:00Z"
53+
restrictForAppsCreatedAfterDateTime = [System.DateTime]::Parse("2024-01-01T10:37:00Z")
5454
excludeAppsReceivingV2Tokens = $true
5555
excludeSaml = $true
5656
}

src/Security/beta/examples/New-MgBetaSecurityCaseEdiscoveryCaseLegalHold.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,7 @@ Import-Module Microsoft.Graph.Beta.Security
77
$params = @{
88
displayName = "My legalHold with sources"
99
description = "Created from Graph API"
10-
11-
@{
12-
"@odata.type" = "microsoft.graph.security.userSource"
13-
14-
}
15-
)
16-
17-
@{
18-
"@odata.type" = "microsoft.graph.security.siteSource"
19-
site = @{
20-
webUrl = "https://m365x809305.sharepoint.com/sites/Design-topsecret"
21-
}
22-
}
23-
)
10+
contentQuery = "KQL content query"
2411
}
2512
2613
New-MgBetaSecurityCaseEdiscoveryCaseLegalHold -EdiscoveryCaseId $ediscoveryCaseId -BodyParameter $params

src/Security/v1.0/examples/New-MgSecurityCaseEdiscoveryCaseCustodianUserSource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Import-Module Microsoft.Graph.Security
66
77
$params = @{
88
9-
includedSources = "mailbox, site"
9+
includedSources = "mailbox"
1010
}
1111
1212
New-MgSecurityCaseEdiscoveryCaseCustodianUserSource -EdiscoveryCaseId $ediscoveryCaseId -EdiscoveryCustodianId $ediscoveryCustodianId -BodyParameter $params

0 commit comments

Comments
 (0)