From f1c37536e767475d80f3fc68e43af61602bf0045 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 19 Jun 2026 04:13:14 +0000 Subject: [PATCH] Updating examples --- ...BetaServicePrincipalSynchronizationTemplate.md | 11 +++++++++++ ...t-MgServicePrincipalSynchronizationTemplate.md | 11 ----------- ...rtualEventTownhallRegistrationConfiguration.md | 11 +++++++++++ ...rossTenantAccessPolicyDefaultM365Capability.md | 11 +++++++++++ ...rossTenantAccessPolicyPartnerM365Capability.md | 11 +++++++++++ .../examples/Get-MgPolicyOwnerlessGroupPolicy.md | 11 +++++++++++ .../v1.0/examples/Get-MgSecurityAlertV2.md | 15 +++++++++++++-- .../Get-MgChatTargetedMessageReplyDelta.md | 0 8 files changed, 68 insertions(+), 13 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.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