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/beta/examples/Get-MgBetaServicePrincipalTokenLifetimePolicyByRef.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalTokenLifetimePolicyByRef.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalCreatedObject.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalCreatedObject.md index 246a628170e..b78aaf3e238 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalCreatedObject.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalCreatedObject.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgServicePrincipalCreatedObject Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Get-MgServicePrincipalCreatedObject -ServicePrincipalId $servicePrincipalId + ``` This example shows how to use the Get-MgServicePrincipalCreatedObject Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + diff --git a/src/Applications/v1.0/examples/Get-MgServicePrincipalOwnedObject.md b/src/Applications/v1.0/examples/Get-MgServicePrincipalOwnedObject.md index 7443ae80461..086b7c88195 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalOwnedObject.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalOwnedObject.md @@ -1,7 +1,11 @@ -### Example 1: Using the Get-MgServicePrincipalOwnedObject Cmdlet +### Example 1: Code snippet + ```powershell + Import-Module Microsoft.Graph.Applications + Get-MgServicePrincipalOwnedObject -ServicePrincipalId $servicePrincipalId + ``` This example shows how to use the Get-MgServicePrincipalOwnedObject Cmdlet. -To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference). + 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/ChangeNotifications/beta/examples/Get-MgBetaSubscriptionVapidPublicKey.md b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..7f4fe7cf528 --- /dev/null +++ b/src/ChangeNotifications/beta/examples/Get-MgBetaSubscriptionVapidPublicKey.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.ChangeNotifications + +Get-MgBetaSubscriptionVapidPublicKey + +``` +This example shows how to use the Get-MgBetaSubscriptionVapidPublicKey Cmdlet. + diff --git a/src/Education/v1.0/examples/Get-MgEducationReportReadingAssignmentSubmission.md b/src/Education/v1.0/examples/Get-MgEducationReportReadingAssignmentSubmission.md new file mode 100644 index 00000000000..aea54676868 --- /dev/null +++ b/src/Education/v1.0/examples/Get-MgEducationReportReadingAssignmentSubmission.md @@ -0,0 +1,22 @@ +### Example 1: Get a list of the reading assignment submissions from the last 24 hours + +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationReportReadingAssignmentSubmission + +``` +This example will get a list of the reading assignment submissions from the last 24 hours + +### Example 2: Get a list of the reading assignment submissions for a specific date using $filter + +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationReportReadingAssignmentSubmission -Filter "submissionDateTime gt 2025-06-10T00:00:00.000Z and submissionDateTime lt 2025-06-11T00:00:00Z" + +``` +This example will get a list of the reading assignment submissions for a specific date using $filter + diff --git a/src/Education/v1.0/examples/Get-MgEducationReportReflectCheck.md b/src/Education/v1.0/examples/Get-MgEducationReportReflectCheck.md new file mode 100644 index 00000000000..bdfe88535e2 --- /dev/null +++ b/src/Education/v1.0/examples/Get-MgEducationReportReflectCheck.md @@ -0,0 +1,22 @@ +### Example 1: Get a list of the Reflect check-in responses from the last 24 hours + +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationReportReflectCheck + +``` +This example will get a list of the reflect check-in responses from the last 24 hours + +### Example 2: Get a list of the Reflect check-in responses for a specific date using $filter + +```powershell + +Import-Module Microsoft.Graph.Education + +Get-MgEducationReportReflectCheck -Filter "submitDateTime gt 2025-06-11T00:00:00.000Z and submitDateTime lt 2025-06-12T00:00:00Z" + +``` +This example will get a list of the reflect check-in responses for a specific date using $filter + diff --git a/src/Files/beta/examples/Get-MgBetaShareListSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaShareListSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveItemSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaUserDriveItemSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveListSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaUserDriveListSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaUserDriveRootSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaUserDriveRootSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationEndUserNotification.md b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationEndUserNotification.md index eaf5088fddb..b71cffa5b27 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationEndUserNotification.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationEndUserNotification.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Security -Get-MgSecurityAttackSimulationEndUserNotification -Filter "source eq 'global'" +Get-MgSecurityAttackSimulationEndUserNotification ``` This example shows how to use the Get-MgSecurityAttackSimulationEndUserNotification Cmdlet. diff --git a/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationTrainingLanguageDetail.md b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationTrainingLanguageDetail.md new file mode 100644 index 00000000000..dc78afe0a8d --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityAttackSimulationTrainingLanguageDetail.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityAttackSimulationTrainingLanguageDetail -TrainingId $trainingId -TrainingLanguageDetailId $trainingLanguageDetailId -Filter "locale eq 'en'" + +``` +This example shows how to use the Get-MgSecurityAttackSimulationTrainingLanguageDetail Cmdlet. + diff --git a/src/Security/v1.0/examples/Get-MgSecurityDataSecurityAndGovernanceSensitivityLabel.md b/src/Security/v1.0/examples/Get-MgSecurityDataSecurityAndGovernanceSensitivityLabel.md new file mode 100644 index 00000000000..9b70f13730e --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityDataSecurityAndGovernanceSensitivityLabel.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityDataSecurityAndGovernanceSensitivityLabel -Filter "applicableTo has 'file' and id in ('4e4234dd-377b-42a3-935b-0e42f138fa23','b7a21bba-8197-491f-a5d6-0d0f955397ca')" + +``` +This example shows how to use the Get-MgSecurityDataSecurityAndGovernanceSensitivityLabel Cmdlet. + diff --git a/src/Security/v1.0/examples/Get-MgSecurityDataSecurityAndGovernanceSensitivityLabelRight.md b/src/Security/v1.0/examples/Get-MgSecurityDataSecurityAndGovernanceSensitivityLabelRight.md new file mode 100644 index 00000000000..07cd6072713 --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityDataSecurityAndGovernanceSensitivityLabelRight.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityDataSecurityAndGovernanceSensitivityLabelRight -SensitivityLabelId $sensitivityLabelId -Owneremail "bob@contoso.com" + +``` +This example shows how to use the Get-MgSecurityDataSecurityAndGovernanceSensitivityLabelRight Cmdlet. + diff --git a/src/Sites/beta/examples/Get-MgBetaSiteListSubscriptionVapidPublicKey.md b/src/Sites/beta/examples/Get-MgBetaSiteListSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d