Skip to content

Commit f22bf50

Browse files
authored
Merge pull request #3111 from microsoftgraph/WeeklyExamplesUpdate/202502070315
[v2] Examples Update
2 parents 272d596 + ffbc724 commit f22bf50

File tree

5 files changed

+34
-15
lines changed

5 files changed

+34
-15
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+
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-

src/Files/beta/examples/Copy-MgBetaDriveItem.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,25 @@ This example shows how to use the Copy-MgBetaDriveItem Cmdlet.
7878
7979
Import-Module Microsoft.Graph.Beta.Files
8080
81+
$params = @{
82+
parentReference = @{
83+
driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop"
84+
id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F"
85+
}
86+
childrenOnly = $true
87+
}
88+
89+
Copy-MgBetaDriveItem -DriveId $driveId -DriveItemId $driveItemId -@microsoft.graph.conflictbehavior "replace" -BodyParameter $params
90+
91+
```
92+
This example shows how to use the Copy-MgBetaDriveItem Cmdlet.
93+
94+
### Example 6: Code snippet
95+
96+
```powershell
97+
98+
Import-Module Microsoft.Graph.Beta.Files
99+
81100
$params = @{
82101
parentReference = @{
83102
driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1cenario1 for u1ing query parameter1
1+
### Example scenarios for using query parameters
22

33
```powershell
44
@@ -7,5 +7,5 @@ Import-Module Microsoft.Graph.Identity.Governance
77
Get-MgEntitlementManagementAssignment
88
99
```
10-
This example shows scenarios for using query parameters
10+
This example shows how to use the Get-MgEntitlementManagementAssignment Cmdlet.
1111

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1cenario1 for u1ing query parameter1
1+
### Example scenarios for using query parameters
22

33
```powershell
44
@@ -7,5 +7,5 @@ Import-Module Microsoft.Graph.Identity.Governance
77
Get-MgEntitlementManagementAssignmentRequest
88
99
```
10-
This example shows scenarios for using query parameters
10+
This example shows how to use the Get-MgEntitlementManagementAssignmentRequest Cmdlet.
1111

0 commit comments

Comments
 (0)