From 35ca56c438f5ee3351820d13437b6bb790fb3f18 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 26 Jun 2026 04:21:28 +0000 Subject: [PATCH] Updating examples --- ...taServicePrincipalSynchronizationTemplate.md | 11 +++++++++++ ...MgServicePrincipalSynchronizationTemplate.md | 11 ----------- ...ualEventTownhallRegistrationConfiguration.md | 11 +++++++++++ ...tAccessPackageApplicablePolicyRequirement.md | 17 ----------------- ...ssTenantAccessPolicyDefaultM365Capability.md | 11 +++++++++++ ...ssTenantAccessPolicyPartnerM365Capability.md | 11 +++++++++++ .../Get-MgPolicyOwnerlessGroupPolicy.md | 11 +++++++++++ .../v1.0/examples/Get-MgSecurityAlertV2.md | 15 +++++++++++++-- .../Get-MgChatTargetedMessageReplyDelta.md | 0 9 files changed, 68 insertions(+), 30 deletions(-) create mode 100644 src/Bookings/beta/examples/Get-MgBetaVirtualEventTownhallRegistrationConfiguration.md create mode 100644 src/Identity.SignIns/v1.0/examples/Get-MgPolicyOwnerlessGroupPolicy.md create mode 100644 src/Teams/v1.0/examples/Get-MgChatTargetedMessageReplyDelta.md 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/Bookings/beta/examples/Get-MgBetaVirtualEventTownhallRegistrationConfiguration.md b/src/Bookings/beta/examples/Get-MgBetaVirtualEventTownhallRegistrationConfiguration.md new file mode 100644 index 00000000000..300eccf12b0 --- /dev/null +++ b/src/Bookings/beta/examples/Get-MgBetaVirtualEventTownhallRegistrationConfiguration.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaVirtualEventTownhallRegistrationConfiguration -VirtualEventTownhallId $virtualEventTownhallId + +``` +This example shows how to use the Get-MgBetaVirtualEventTownhallRegistrationConfiguration Cmdlet. + diff --git a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md index d0d0ad44a49..dc2047b1bd8 100644 --- a/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md +++ b/src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md @@ -9,20 +9,3 @@ Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessP ``` This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet. -### Example 2: Code snippet - -```powershell - -Import-Module Microsoft.Graph.Beta.Identity.Governance - -$params = @{ - subject = @{ - objectId = "5acd375c-8acb-45de-a958-fa0dd89259ad" - } -} - -Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessPackageId $accessPackageId -BodyParameter $params - -``` -This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet. - diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md index e69de29bb2d..8e4521af859 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability + +``` +This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md index e69de29bb2d..7c54ec2b8a3 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId + +``` +This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Get-MgPolicyOwnerlessGroupPolicy.md b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyOwnerlessGroupPolicy.md new file mode 100644 index 00000000000..24c94d23c07 --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Get-MgPolicyOwnerlessGroupPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Get-MgPolicyOwnerlessGroupPolicy + +``` +This example shows how to use the Get-MgPolicyOwnerlessGroupPolicy Cmdlet. + diff --git a/src/Security/v1.0/examples/Get-MgSecurityAlertV2.md b/src/Security/v1.0/examples/Get-MgSecurityAlertV2.md index 2d9c05f0e37..a5383dfe2d8 100644 --- a/src/Security/v1.0/examples/Get-MgSecurityAlertV2.md +++ b/src/Security/v1.0/examples/Get-MgSecurityAlertV2.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: Get all alerts ```powershell @@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Security Get-MgSecurityAlertV2 ``` -This example shows how to use the Get-MgSecurityAlertV2 Cmdlet. +This example will get all alerts + +### Example 2: Get all alerts from Microsoft Sentinel + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityAlertV2 -Filter "serviceSource eq 'microsoftSentinel'" + +``` +This example will get all alerts from microsoft sentinel diff --git a/src/Teams/v1.0/examples/Get-MgChatTargetedMessageReplyDelta.md b/src/Teams/v1.0/examples/Get-MgChatTargetedMessageReplyDelta.md new file mode 100644 index 00000000000..e69de29bb2d