From 8618c3a42888868905261e78f04210b04a90809a Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jan 2025 04:18:36 +0000 Subject: [PATCH] Updating examples --- ...ServicePrincipalSynchronizationTemplate.md | 11 +++++++++++ ...ServicePrincipalSynchronizationTemplate.md | 11 ----------- .../beta/examples/Copy-MgBetaDriveItem.md | 19 +++++++++++++++++++ .../Get-MgEntitlementManagementAssignment.md | 4 ++-- ...gEntitlementManagementAssignmentRequest.md | 4 ++-- 5 files changed, 34 insertions(+), 15 deletions(-) diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2d..d05037861a5 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet. + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md index ce3990f381e..e69de29bb2d 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md @@ -1,11 +0,0 @@ -### Example - -```powershell - -Import-Module Microsoft.Graph.Applications - -Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId - -``` -This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet. - diff --git a/src/Files/beta/examples/Copy-MgBetaDriveItem.md b/src/Files/beta/examples/Copy-MgBetaDriveItem.md index bcc494a69a5..3a524e98b42 100644 --- a/src/Files/beta/examples/Copy-MgBetaDriveItem.md +++ b/src/Files/beta/examples/Copy-MgBetaDriveItem.md @@ -78,6 +78,25 @@ This example shows how to use the Copy-MgBetaDriveItem Cmdlet. Import-Module Microsoft.Graph.Beta.Files +$params = @{ + parentReference = @{ + driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop" + id = "DCD0D3AD-8989-4F23-A5A2-2C086050513F" + } + childrenOnly = $true +} + +Copy-MgBetaDriveItem -DriveId $driveId -DriveItemId $driveItemId -@microsoft.graph.conflictbehavior "replace" -BodyParameter $params + +``` +This example shows how to use the Copy-MgBetaDriveItem Cmdlet. + +### Example 6: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Files + $params = @{ parentReference = @{ driveId = "b!s8RqPCGh0ESQS2EYnKM0IKS3lM7GxjdAviiob7oc5pXv_0LiL-62Qq3IXyrXnEop" diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md index 87fa3454389..83799a88b0d 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignment.md @@ -1,4 +1,4 @@ -### Example 1cenario1 for u1ing query parameter1 +### Example scenarios for using query parameters ```powershell @@ -7,5 +7,5 @@ Import-Module Microsoft.Graph.Identity.Governance Get-MgEntitlementManagementAssignment ``` -This example shows scenarios for using query parameters +This example shows how to use the Get-MgEntitlementManagementAssignment Cmdlet. diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md index cade38fa8c0..0548e1bbcd4 100644 --- a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md +++ b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAssignmentRequest.md @@ -1,4 +1,4 @@ -### Example 1cenario1 for u1ing query parameter1 +### Example scenarios for using query parameters ```powershell @@ -7,5 +7,5 @@ Import-Module Microsoft.Graph.Identity.Governance Get-MgEntitlementManagementAssignmentRequest ``` -This example shows scenarios for using query parameters +This example shows how to use the Get-MgEntitlementManagementAssignmentRequest Cmdlet.