Skip to content

Commit

Permalink
Merge pull request #2972 from microsoftgraph/WeeklyExamplesUpdate/202…
Browse files Browse the repository at this point in the history
…409270307

[v2] Examples Update
  • Loading branch information
timayabi2020 authored Sep 30, 2024
2 parents d2a15c3 + 42329bb commit 3db71eb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example

```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
```
This example will### example

27 changes: 23 additions & 4 deletions src/Files/beta/examples/Copy-MgBetaDriveItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Import-Module Microsoft.Graph.Beta.Files
$params = @{
parentReference = @{
driveId = "6F7D00BF-FC4D-4E62-9769-6AEA81F3A21B"
driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop"
id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F"
}
name = "contoso plan (copy).txt"
Expand All @@ -25,7 +25,7 @@ Import-Module Microsoft.Graph.Beta.Files
$params = @{
parentReference = @{
driveId = "6F7D00BF-FC4D-4E62-9769-6AEA81F3A21B"
driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop"
id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F"
}
childrenOnly = $true
Expand All @@ -44,7 +44,7 @@ Import-Module Microsoft.Graph.Beta.Files
$params = @{
parentReference = @{
driveId = "6F7D00BF-FC4D-4E62-9769-6AEA81F3A21B"
driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop"
id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F"
}
}
Expand All @@ -62,7 +62,7 @@ Import-Module Microsoft.Graph.Beta.Files
$params = @{
parentReference = @{
driveId = "6F7D00BF-FC4D-4E62-9769-6AEA81F3A21B"
driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop"
id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F"
}
}
Expand All @@ -72,3 +72,22 @@ Copy-MgBetaDriveItem -DriveId $driveId -DriveItemId $driveItemId -@microsoft.gra
```
This example shows how to use the Copy-MgBetaDriveItem Cmdlet.

### Example 5: Code snippet

```powershell
Import-Module Microsoft.Graph.Beta.Files
$params = @{
parentReference = @{
driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop"
id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F"
}
includeAllVersionHistory = $true
}
Copy-MgBetaDriveItem -DriveId $driveId -DriveItemId $driveItemId -BodyParameter $params
```
This example shows how to use the Copy-MgBetaDriveItem Cmdlet.

0 comments on commit 3db71eb

Please sign in to comment.