Skip to content

Commit 167f29d

Browse files
MIchaelMainerMicrosoft Graph DevX Tooling
andauthored
Updating examples (#3416)
Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
1 parent 5f7bf07 commit 167f29d

17 files changed

+112
-16
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 shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.
11+

src/Applications/beta/examples/Get-MgBetaServicePrincipalTokenLifetimePolicyByRef.md

Whitespace-only changes.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgServicePrincipalCreatedObject Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Applications
6+
47
Get-MgServicePrincipalCreatedObject -ServicePrincipalId $servicePrincipalId
8+
59
```
610
This example shows how to use the Get-MgServicePrincipalCreatedObject Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgServicePrincipalOwnedObject Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Applications
6+
47
Get-MgServicePrincipalOwnedObject -ServicePrincipalId $servicePrincipalId
8+
59
```
610
This example shows how to use the Get-MgServicePrincipalOwnedObject Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
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.Applications
6-
7-
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8-
9-
```
10-
This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet.
11-
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.ChangeNotifications
6+
7+
Get-MgBetaSubscriptionVapidPublicKey
8+
9+
```
10+
This example shows how to use the Get-MgBetaSubscriptionVapidPublicKey Cmdlet.
11+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: Get a list of the reading assignment submissions from the last 24 hours
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Education
6+
7+
Get-MgEducationReportReadingAssignmentSubmission
8+
9+
```
10+
This example will get a list of the reading assignment submissions from the last 24 hours
11+
12+
### Example 2: Get a list of the reading assignment submissions for a specific date using $filter
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Education
17+
18+
Get-MgEducationReportReadingAssignmentSubmission -Filter "submissionDateTime gt 2025-06-10T00:00:00.000Z and submissionDateTime lt 2025-06-11T00:00:00Z"
19+
20+
```
21+
This example will get a list of the reading assignment submissions for a specific date using $filter
22+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: Get a list of the Reflect check-in responses from the last 24 hours
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Education
6+
7+
Get-MgEducationReportReflectCheck
8+
9+
```
10+
This example will get a list of the reflect check-in responses from the last 24 hours
11+
12+
### Example 2: Get a list of the Reflect check-in responses for a specific date using $filter
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Education
17+
18+
Get-MgEducationReportReflectCheck -Filter "submitDateTime gt 2025-06-11T00:00:00.000Z and submitDateTime lt 2025-06-12T00:00:00Z"
19+
20+
```
21+
This example will get a list of the reflect check-in responses for a specific date using $filter
22+

src/Files/beta/examples/Get-MgBetaShareListSubscriptionVapidPublicKey.md

Whitespace-only changes.

src/Files/beta/examples/Get-MgBetaUserDriveItemSubscriptionVapidPublicKey.md

Whitespace-only changes.

0 commit comments

Comments
 (0)