diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index d05037861a5..e69de29bb2d 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md @@ -1,11 +0,0 @@ -### 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/Education/beta/examples/Get-MgBetaEducationReportReadingAssignmentSubmission.md b/src/Education/beta/examples/Get-MgBetaEducationReportReadingAssignmentSubmission.md index 2de76913b2f..1be3a383bab 100644 --- a/src/Education/beta/examples/Get-MgBetaEducationReportReadingAssignmentSubmission.md +++ b/src/Education/beta/examples/Get-MgBetaEducationReportReadingAssignmentSubmission.md @@ -1,11 +1,22 @@ -### Example 1: Code snippet +### Example 1: Get a list of reading assignment submissions from the last 24 hours ```powershell Import-Module Microsoft.Graph.Beta.Education -Get-MgBetaEducationReportReadingAssignmentSubmission -Filter "submitDateTime gt 2023-10-10T00:00:00.000Z" +Get-MgBetaEducationReportReadingAssignmentSubmission ``` -This example shows how to use the Get-MgBetaEducationReportReadingAssignmentSubmission Cmdlet. +This example will get a list of 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.Beta.Education + +Get-MgBetaEducationReportReadingAssignmentSubmission -Filter "submissionDateTime gt 2023-10-10T00:00:00.000Z and submissionDateTime lt 2023-10-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/beta/examples/Get-MgBetaEducationReportReadingCoachPassage.md b/src/Education/beta/examples/Get-MgBetaEducationReportReadingCoachPassage.md new file mode 100644 index 00000000000..21c662049da --- /dev/null +++ b/src/Education/beta/examples/Get-MgBetaEducationReportReadingCoachPassage.md @@ -0,0 +1,22 @@ +### Example 1: Get a list of the Reading Coach passages from the last 24 hours + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationReportReadingCoachPassage + +``` +This example will get a list of the reading coach passages from the last 24 hours + +### Example 2: Get a list of the Reading Coach passages for a specific date using $filter + +```powershell + +Import-Module Microsoft.Graph.Beta.Education + +Get-MgBetaEducationReportReadingCoachPassage -Filter "practicedAtDateTime gt 2025-06-22T00:00:00Z and practicedAtDateTime lt 2025-06-23T00:00:00Z" + +``` +This example will get a list of the reading coach passages for a specific date using $filter + diff --git a/src/Files/beta/examples/Get-MgBetaDriveItemSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaDriveItemSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaDriveListSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaDriveListSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaDriveRootSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaDriveRootSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveItemSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaGroupDriveItemSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveListSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaGroupDriveListSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Files/beta/examples/Get-MgBetaGroupDriveRootSubscriptionVapidPublicKey.md b/src/Files/beta/examples/Get-MgBetaGroupDriveRootSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeoplePhotoUpdateSetting.md b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeoplePhotoUpdateSetting.md new file mode 100644 index 00000000000..e6303133de3 --- /dev/null +++ b/src/Identity.DirectoryManagement/beta/examples/Get-MgBetaAdminPeoplePhotoUpdateSetting.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +Get-MgBetaAdminPeoplePhotoUpdateSetting + +``` +This example shows how to use the Get-MgBetaAdminPeoplePhotoUpdateSetting Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileAppManagementPolicyIncludedGroup.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileAppManagementPolicyIncludedGroup.md index 9841b92d31c..070d574dfcf 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileAppManagementPolicyIncludedGroup.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileAppManagementPolicyIncludedGroup.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyMobileAppManagementPolicyIncludedGroup -MobilityManagementPolicyId $mobilityManagementPolicyId +Get-MgBetaPolicyMobileAppManagementPolicyIncludedGroup -MobileAppManagementPolicyId $mobileAppManagementPolicyId ``` This example shows how to use the Get-MgBetaPolicyMobileAppManagementPolicyIncludedGroup Cmdlet. diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileDeviceManagementPolicyIncludedGroup.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileDeviceManagementPolicyIncludedGroup.md index fc0d99b6037..92ac574213c 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileDeviceManagementPolicyIncludedGroup.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyMobileDeviceManagementPolicyIncludedGroup.md @@ -4,7 +4,7 @@ Import-Module Microsoft.Graph.Beta.Identity.SignIns -Get-MgBetaPolicyMobileDeviceManagementPolicyIncludedGroup -MobilityManagementPolicyId $mobilityManagementPolicyId +Get-MgBetaPolicyMobileDeviceManagementPolicyIncludedGroup -MobileDeviceManagementPolicyId $mobileDeviceManagementPolicyId ``` This example shows how to use the Get-MgBetaPolicyMobileDeviceManagementPolicyIncludedGroup Cmdlet. diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessAlert.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessAlert.md new file mode 100644 index 00000000000..df97b4101be --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessAlert.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessAlert + +``` +This example shows how to use the Get-MgBetaNetworkAccessAlert Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringProfilePolicy.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringProfilePolicy.md new file mode 100644 index 00000000000..4eef36a075b --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessFilteringProfilePolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessFilteringProfilePolicy -FilteringProfileId $filteringProfileId -Filter "isof('microsoft.graph.networkaccess.securityProviderPolicyLink')" + +``` +This example shows how to use the Get-MgBetaNetworkAccessFilteringProfilePolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessThreatIntelligencePolicy.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessThreatIntelligencePolicy.md new file mode 100644 index 00000000000..7d2c059a2f4 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessThreatIntelligencePolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessThreatIntelligencePolicy + +``` +This example shows how to use the Get-MgBetaNetworkAccessThreatIntelligencePolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlExternalCertificateAuthorityCertificate.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlExternalCertificateAuthorityCertificate.md new file mode 100644 index 00000000000..5b2ac8d47e9 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlExternalCertificateAuthorityCertificate.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessTlExternalCertificateAuthorityCertificate + +``` +This example shows how to use the Get-MgBetaNetworkAccessTlExternalCertificateAuthorityCertificate Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlInspectionPolicy.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlInspectionPolicy.md new file mode 100644 index 00000000000..0d38d4e7eb2 --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlInspectionPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessTlInspectionPolicy + +``` +This example shows how to use the Get-MgBetaNetworkAccessTlInspectionPolicy Cmdlet. + diff --git a/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlInspectionPolicyRule.md b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlInspectionPolicyRule.md new file mode 100644 index 00000000000..db07e5376ff --- /dev/null +++ b/src/NetworkAccess/beta/examples/Get-MgBetaNetworkAccessTlInspectionPolicyRule.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.NetworkAccess + +Get-MgBetaNetworkAccessTlInspectionPolicyRule -TlsInspectionPolicyId $tlsInspectionPolicyId + +``` +This example shows how to use the Get-MgBetaNetworkAccessTlInspectionPolicyRule Cmdlet. + diff --git a/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserEventSummary.md b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserEventSummary.md new file mode 100644 index 00000000000..948fb4a84f8 --- /dev/null +++ b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserEventSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportAuthenticationMethodUserEventSummary + +``` +This example shows how to use the Get-MgBetaReportAuthenticationMethodUserEventSummary Cmdlet. + diff --git a/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserMfaSignInSummary.md b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserMfaSignInSummary.md new file mode 100644 index 00000000000..6d5d6dec490 --- /dev/null +++ b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserMfaSignInSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportAuthenticationMethodUserMfaSignInSummary + +``` +This example shows how to use the Get-MgBetaReportAuthenticationMethodUserMfaSignInSummary Cmdlet. + diff --git a/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserPasswordResetAndChangeSummary.md b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserPasswordResetAndChangeSummary.md new file mode 100644 index 00000000000..276a1412fd0 --- /dev/null +++ b/src/Reports/beta/examples/Get-MgBetaReportAuthenticationMethodUserPasswordResetAndChangeSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Reports + +Get-MgBetaReportAuthenticationMethodUserPasswordResetAndChangeSummary + +``` +This example shows how to use the Get-MgBetaReportAuthenticationMethodUserPasswordResetAndChangeSummary Cmdlet. + diff --git a/src/Reports/v1.0/examples/Export-MgReportPartnerBillingReconciliationUnbilled.md b/src/Reports/v1.0/examples/Export-MgReportPartnerBillingReconciliationUnbilled.md new file mode 100644 index 00000000000..cfd5cf46a2e --- /dev/null +++ b/src/Reports/v1.0/examples/Export-MgReportPartnerBillingReconciliationUnbilled.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Reports + +$params = @{ + attributeSet = "full" + billingPeriod = "current" + currencyCode = "USD" +} + +Export-MgReportPartnerBillingReconciliationUnbilled -BodyParameter $params + +``` +This example shows how to use the Export-MgReportPartnerBillingReconciliationUnbilled Cmdlet. + diff --git a/src/Search/v1.0/examples/Add-MgExternalConnectionItemActivity.md b/src/Search/v1.0/examples/Add-MgExternalConnectionItemActivity.md new file mode 100644 index 00000000000..9a791e320e7 --- /dev/null +++ b/src/Search/v1.0/examples/Add-MgExternalConnectionItemActivity.md @@ -0,0 +1,25 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Search + +$params = @{ + activities = @( + @{ + "@odata.type" = "#microsoft.graph.externalConnectors.externalActivity" + type = "created" + startDateTime = [System.DateTime]::Parse("2021-04-06T18:04:31.033Z") + performedBy = @{ + type = "user" + id = "1f0c997e-99f7-43f1-8cca-086f8d42be8d" + } + } + ) +} + +Add-MgExternalConnectionItemActivity -ExternalConnectionId $externalConnectionId -ExternalItemId $externalItemId -BodyParameter $params + +``` +This example shows how to use the Add-MgExternalConnectionItemActivity Cmdlet. + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityIncidentTask.md b/src/Security/beta/examples/Get-MgBetaSecurityIncidentTask.md new file mode 100644 index 00000000000..fce566aeec3 --- /dev/null +++ b/src/Security/beta/examples/Get-MgBetaSecurityIncidentTask.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityIncidentTask + +``` +This example shows how to use the Get-MgBetaSecurityIncidentTask Cmdlet. + diff --git a/src/Sites/beta/examples/Get-MgBetaGroupSiteListSubscriptionVapidPublicKey.md b/src/Sites/beta/examples/Get-MgBetaGroupSiteListSubscriptionVapidPublicKey.md new file mode 100644 index 00000000000..e69de29bb2d