From 493fd1a1b9c175096c86865b66fa594dc125a257 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 31 Jul 2026 05:36:05 +0000 Subject: [PATCH] Updating examples --- ...ServicePrincipalSynchronizationTemplate.md | 11 ++ ...ServicePrincipalSynchronizationTemplate.md | 11 ++ .../beta/examples/New-MgBetaSubscription.md | 4 +- ...iceManagementVirtualEndpointServicePlan.md | 0 .../v1.0/examples/New-MgGroupSetting.md | 21 ++++ ...ate-MgBetaAdminPeoplePhotoUpdateSetting.md | 6 +- .../examples/Update-MgBetaDirectorySetting.md | 20 ++++ .../New-MgAdminPeopleProfileCardProperty.md | 3 +- ...ssReviewDefinitionInstanceByCurrentUser.md | 26 ++++- ...rnanceAccessReviewInstanceByCurrentUser.md | 1 + ...nceLifecycleWorkflowCustomTaskExtension.md | 2 +- ...leWorkflowDeletedItemWorkflowQuarantine.md | 0 ...tyGovernanceLifecycleWorkflowQuarantine.md | 0 ...AvailableAccessPackageResourceRoleScope.md | 0 .../Get-MgEntitlementManagementSubject.md | 0 ...entAccessPackageSuggestionByCurrentUser.md | 0 ...viewIdentityGovernanceLifecycleWorkflow.md | 0 ...nceLifecycleWorkflowDeletedItemWorkflow.md | 0 ...eWorkflowDeletedItemWorkflowTaskFailure.md | 0 ...yGovernanceLifecycleWorkflowTaskFailure.md | 0 ...nceLifecycleWorkflowCustomTaskExtension.md | 2 +- ...leWorkflowDeletedItemWorkflowProcessing.md | 0 ...tyGovernanceLifecycleWorkflowProcessing.md | 0 .../Update-MgEntitlementManagementSubject.md | 0 ...gEntitlementManagementSubjectByObjectId.md | 15 +++ ...TenantAccessPolicyDefaultM365Capability.md | 60 ++++++++++ ...TenantAccessPolicyPartnerM365Capability.md | 56 +++++++++ ...taIdentityCustomAuthenticationExtension.md | 50 ++++++++ ...-MgBetaPolicyDefaultAppManagementPolicy.md | 109 ++++++++++++++++++ ...tionUserAuthenticationFido2MethodOption.md | 11 ++ .../Update-MgPolicyOwnerlessGroupPolicy.md | 15 +++ .../Move-MgBetaCrossTenantMigrationJob.md | 11 ++ .../Test-MgBetaCrossTenantMigrationJob.md | 20 +--- .../examples/Get-MgSecurityAuditLogQuery.md | 0 ...et-MgSecurityCollaborationAnalyzedEmail.md | 0 ...curityIdentitySensorDeploymentAccessKey.md | 11 ++ ...urityIdentitySensorDeploymentPackageUri.md | 11 ++ ...alize-MgSecurityIdentitySensorCandidate.md | 17 +++ ...sSecurityCaseEdiscoveryCaseTagHierarchy.md | 11 ++ ...diateSecurityCollaborationAnalyzedEmail.md | 0 .../v1.0/examples/Merge-MgSecurityIncident.md | 20 ++++ .../v1.0/examples/Move-MgSecurityAlert.md | 21 ++++ .../examples/New-MgSecurityAuditLogQuery.md | 0 ...curityIdentitySensorDeploymentAccessKey.md | 11 ++ .../Grant-MgGroupSiteListItemPermission.md | 0 .../Grant-MgGroupSiteListPermission.md | 0 .../Grant-MgSiteListItemPermission.md | 0 .../examples/Grant-MgSiteListPermission.md | 0 ...Get-MgUserChatTargetedMessageReplyDelta.md | 0 .../Invoke-MgGraphChatTargetedMessageReply.md | 0 ...oke-MgGraphUserChatTargetedMessageReply.md | 0 ...ke-MgSoftChatTargetedMessageReplyDelete.md | 1 + ...gSoftUserChatTargetedMessageReplyDelete.md | 1 + .../v1.0/examples/Start-MgChatMigration.md | 22 ++++ .../Start-MgGroupTeamChannelMigration.md | 1 + ...tart-MgGroupTeamPrimaryChannelMigration.md | 1 + .../examples/Start-MgTeamChannelMigration.md | 22 ++++ .../Start-MgTeamPrimaryChannelMigration.md | 1 + ...t-MgTeamworkDeletedTeamChannelMigration.md | 1 + .../examples/Start-MgUserChatMigration.md | 1 + ...do-MgChatTargetedMessageReplySoftDelete.md | 1 + ...gUserChatTargetedMessageReplySoftDelete.md | 1 + .../examples/Get-MgUserSettingExchange.md | 11 ++ 63 files changed, 590 insertions(+), 30 deletions(-) create mode 100644 src/DeviceManagement.Administration/v1.0/examples/Get-MgDeviceManagementVirtualEndpointServicePlan.md create mode 100644 src/Identity.Governance/v1.0/examples/Clear-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowQuarantine.md create mode 100644 src/Identity.Governance/v1.0/examples/Clear-MgIdentityGovernanceLifecycleWorkflowQuarantine.md create mode 100644 src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAvailableAccessPackageResourceRoleScope.md create mode 100644 src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSubject.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgFilterEntitlementManagementAccessPackageSuggestionByCurrentUser.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflow.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskFailure.md create mode 100644 src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowTaskFailure.md create mode 100644 src/Identity.Governance/v1.0/examples/Stop-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowProcessing.md create mode 100644 src/Identity.Governance/v1.0/examples/Stop-MgIdentityGovernanceLifecycleWorkflowProcessing.md create mode 100644 src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSubject.md create mode 100644 src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSubjectByObjectId.md create mode 100644 src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md create mode 100644 src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md create mode 100644 src/Identity.SignIns/v1.0/examples/Invoke-MgCreationUserAuthenticationFido2MethodOption.md create mode 100644 src/Identity.SignIns/v1.0/examples/Update-MgPolicyOwnerlessGroupPolicy.md create mode 100644 src/Migrations/beta/examples/Move-MgBetaCrossTenantMigrationJob.md create mode 100644 src/Security/v1.0/examples/Get-MgSecurityAuditLogQuery.md create mode 100644 src/Security/v1.0/examples/Get-MgSecurityCollaborationAnalyzedEmail.md create mode 100644 src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentAccessKey.md create mode 100644 src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentPackageUri.md create mode 100644 src/Security/v1.0/examples/Initialize-MgSecurityIdentitySensorCandidate.md create mode 100644 src/Security/v1.0/examples/Invoke-MgRemediateSecurityCollaborationAnalyzedEmail.md create mode 100644 src/Security/v1.0/examples/Merge-MgSecurityIncident.md create mode 100644 src/Security/v1.0/examples/Move-MgSecurityAlert.md create mode 100644 src/Security/v1.0/examples/New-MgSecurityAuditLogQuery.md create mode 100644 src/Security/v1.0/examples/New-MgSecurityIdentitySensorDeploymentAccessKey.md create mode 100644 src/Sites/v1.0/examples/Grant-MgGroupSiteListItemPermission.md create mode 100644 src/Sites/v1.0/examples/Grant-MgGroupSiteListPermission.md create mode 100644 src/Sites/v1.0/examples/Grant-MgSiteListItemPermission.md create mode 100644 src/Sites/v1.0/examples/Grant-MgSiteListPermission.md create mode 100644 src/Teams/v1.0/examples/Get-MgUserChatTargetedMessageReplyDelta.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphChatTargetedMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgGraphUserChatTargetedMessageReply.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgSoftChatTargetedMessageReplyDelete.md create mode 100644 src/Teams/v1.0/examples/Invoke-MgSoftUserChatTargetedMessageReplyDelete.md create mode 100644 src/Teams/v1.0/examples/Start-MgChatMigration.md create mode 100644 src/Teams/v1.0/examples/Start-MgGroupTeamChannelMigration.md create mode 100644 src/Teams/v1.0/examples/Start-MgGroupTeamPrimaryChannelMigration.md create mode 100644 src/Teams/v1.0/examples/Start-MgTeamChannelMigration.md create mode 100644 src/Teams/v1.0/examples/Start-MgTeamPrimaryChannelMigration.md create mode 100644 src/Teams/v1.0/examples/Start-MgTeamworkDeletedTeamChannelMigration.md create mode 100644 src/Teams/v1.0/examples/Start-MgUserChatMigration.md create mode 100644 src/Teams/v1.0/examples/Undo-MgChatTargetedMessageReplySoftDelete.md create mode 100644 src/Teams/v1.0/examples/Undo-MgUserChatTargetedMessageReplySoftDelete.md create mode 100644 src/Users/v1.0/examples/Get-MgUserSettingExchange.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 e69de29bb2d..5f6fc21761a 100644 --- a/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md +++ b/src/Applications/v1.0/examples/Get-MgServicePrincipalSynchronizationTemplate.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```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/New-MgBetaSubscription.md b/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md index 70a7f2f2e8c..c6e68e3079f 100644 --- a/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md +++ b/src/ChangeNotifications/beta/examples/New-MgBetaSubscription.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 2: Create a subscription targeting a Web Push endpoint ```powershell @@ -16,5 +16,5 @@ $params = @{ New-MgBetaSubscription -BodyParameter $params ``` -This example shows how to use the New-MgBetaSubscription Cmdlet. +This example will create a subscription targeting a web push endpoint diff --git a/src/DeviceManagement.Administration/v1.0/examples/Get-MgDeviceManagementVirtualEndpointServicePlan.md b/src/DeviceManagement.Administration/v1.0/examples/Get-MgDeviceManagementVirtualEndpointServicePlan.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Groups/v1.0/examples/New-MgGroupSetting.md b/src/Groups/v1.0/examples/New-MgGroupSetting.md index 7e9ff928edc..591bb9c264d 100644 --- a/src/Groups/v1.0/examples/New-MgGroupSetting.md +++ b/src/Groups/v1.0/examples/New-MgGroupSetting.md @@ -19,3 +19,24 @@ New-MgGroupSetting -GroupId $groupId -BodyParameter $params ``` This example shows how to use the New-MgGroupSetting Cmdlet. +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Groups + +$params = @{ + templateId = "7e0abea2-5c20-405f-9658-bfc9a523fd49" + values = @( + @{ + name = "AllowToAddGuests" + value = "false" + } + ) +} + +New-MgGroupSetting -GroupId $groupId -BodyParameter $params + +``` +This example shows how to use the New-MgGroupSetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePhotoUpdateSetting.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePhotoUpdateSetting.md index d48482c6624..62d51468c1d 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePhotoUpdateSetting.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaAdminPeoplePhotoUpdateSetting.md @@ -5,11 +5,9 @@ Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement $params = @{ - "@odata.type" = "#microsoft.graph.photoUpdateSettings" - source = "String" + source = "cloud" allowedRoles = @( - "String" -) + ) } Update-MgBetaAdminPeoplePhotoUpdateSetting -BodyParameter $params diff --git a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectorySetting.md b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectorySetting.md index 3c76b48c484..11fa53e5ed5 100644 --- a/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectorySetting.md +++ b/src/Identity.DirectoryManagement/beta/examples/Update-MgBetaDirectorySetting.md @@ -18,3 +18,23 @@ Update-MgBetaDirectorySetting -DirectorySettingId $directorySettingId -BodyParam ``` This example shows how to use the Update-MgBetaDirectorySetting Cmdlet. +### Example 2: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement + +$params = @{ + values = @( + @{ + name = "EnableMIPLabels" + value = "true" + } + ) +} + +Update-MgBetaDirectorySetting -DirectorySettingId $directorySettingId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaDirectorySetting Cmdlet. + diff --git a/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileCardProperty.md b/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileCardProperty.md index 61e0937cf23..ffd596d0049 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileCardProperty.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/New-MgAdminPeopleProfileCardProperty.md @@ -5,7 +5,6 @@ Import-Module Microsoft.Graph.Identity.DirectoryManagement $params = @{ - directoryPropertyName = "CustomAttribute1" annotations = @( @{ displayName = "Cost Center" @@ -17,6 +16,8 @@ $params = @{ ) } ) + directoryPropertyName = "CustomAttribute1" + isVisible = $true } New-MgAdminPeopleProfileCardProperty -BodyParameter $params diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser.md index d0632dd13bc..ddc927a1e58 100644 --- a/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser.md +++ b/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser.md @@ -1,4 +1,4 @@ -### Example 1: Code snippet +### Example 1: List access review instances assigned directly or through delegation to the current user ```powershell @@ -7,5 +7,27 @@ Import-Module Microsoft.Graph.Beta.Identity.Governance Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -On $onId ``` -This example shows how to use the Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser Cmdlet. +This example will list access review instances assigned directly or through delegation to the current user + +### Example 2: List access review instances delegated to the current user + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -Property "id,displayName,status,delegatedBy" + +``` +This example will list access review instances delegated to the current user + +### Example 3: List access review instances directly assigned to the current user + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Invoke-MgBetaFilterIdentityGovernanceAccessReviewDefinitionInstanceByCurrentUser -AccessReviewScheduleDefinitionId $accessReviewScheduleDefinitionId -Property "id,displayName,status" + +``` +This example will list access review instances directly assigned to the current user diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewInstanceByCurrentUser.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewInstanceByCurrentUser.md index e69de29bb2d..8b137891791 100644 --- a/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewInstanceByCurrentUser.md +++ b/src/Identity.Governance/beta/examples/Invoke-MgBetaFilterIdentityGovernanceAccessReviewInstanceByCurrentUser.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md index da6fd035223..e95fb9429aa 100644 --- a/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md +++ b/src/Identity.Governance/beta/examples/New-MgBetaIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md @@ -24,7 +24,7 @@ $params = @{ } callbackConfiguration = @{ "@odata.type" = "#microsoft.graph.identityGovernance.customTaskExtensionCallbackConfiguration" - timeoutDuration = "PT5M" + timeoutDuration = "PT30M" } } diff --git a/src/Identity.Governance/v1.0/examples/Clear-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowQuarantine.md b/src/Identity.Governance/v1.0/examples/Clear-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowQuarantine.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Clear-MgIdentityGovernanceLifecycleWorkflowQuarantine.md b/src/Identity.Governance/v1.0/examples/Clear-MgIdentityGovernanceLifecycleWorkflowQuarantine.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAvailableAccessPackageResourceRoleScope.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementAvailableAccessPackageResourceRoleScope.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSubject.md b/src/Identity.Governance/v1.0/examples/Get-MgEntitlementManagementSubject.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgFilterEntitlementManagementAccessPackageSuggestionByCurrentUser.md b/src/Identity.Governance/v1.0/examples/Invoke-MgFilterEntitlementManagementAccessPackageSuggestionByCurrentUser.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflow.md b/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflow.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md b/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskFailure.md b/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskFailure.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowTaskFailure.md b/src/Identity.Governance/v1.0/examples/Invoke-MgPreviewIdentityGovernanceLifecycleWorkflowTaskFailure.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md b/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md index 6ab35f24b80..9ee45f7a48b 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md +++ b/src/Identity.Governance/v1.0/examples/New-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.md @@ -24,7 +24,7 @@ $params = @{ } callbackConfiguration = @{ "@odata.type" = "#microsoft.graph.identityGovernance.customTaskExtensionCallbackConfiguration" - timeoutDuration = "PT5M" + timeoutDuration = "PT30M" } } diff --git a/src/Identity.Governance/v1.0/examples/Stop-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowProcessing.md b/src/Identity.Governance/v1.0/examples/Stop-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowProcessing.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Stop-MgIdentityGovernanceLifecycleWorkflowProcessing.md b/src/Identity.Governance/v1.0/examples/Stop-MgIdentityGovernanceLifecycleWorkflowProcessing.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSubject.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSubject.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSubjectByObjectId.md b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSubjectByObjectId.md new file mode 100644 index 00000000000..62e66340489 --- /dev/null +++ b/src/Identity.Governance/v1.0/examples/Update-MgEntitlementManagementSubjectByObjectId.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + subjectLifecycle = "governed" +} + +Update-MgEntitlementManagementSubjectByObjectId -BodyParameter $params -ObjectId $objectIdId + +``` +This example shows how to use the Update-MgEntitlementManagementSubjectByObjectId Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md new file mode 100644 index 00000000000..831aca41bfd --- /dev/null +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability.md @@ -0,0 +1,60 @@ +### Example 1: Create a cross-tenant open profile card capability + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.crossTenantOpenProfileCard" + inboundAccess = @{ + isAllowed = $true + resourceScopes = @{ + included = @( + @{ + resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e74" + resourceType = "group" + } + ) + excluded = @( + @{ + resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e00" + resourceType = "group" + } + ) + } + } +} + +New-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability -BodyParameter $params + +``` +This example will create a cross-tenant open profile card capability + +### Example 2: Create a cross-tenant migration capability + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.crossTenantMigration" + inboundAccess = @{ + isAllowed = $true + resourceScopes = @{ + included = @( + @{ + resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e74" + resourceType = "group" + } + ) + excluded = @( + ) + } + } +} + +New-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability -BodyParameter $params + +``` +This example will create a cross-tenant migration capability + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md new file mode 100644 index 00000000000..7472eccd635 --- /dev/null +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability.md @@ -0,0 +1,56 @@ +### Example 1: Create a cross-tenant mail tips capability + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.crossTenantMailTipsLimited" + inboundAccess = @{ + isAllowed = $false + resourceScopes = @{ + included = @( + @{ + resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e74" + resourceType = "group" + } + ) + excluded = @( + ) + } + } +} + +New-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params + +``` +This example will create a cross-tenant mail tips capability + +### Example 2: Create a cross-tenant places room booking capability + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.crossTenantPlacesRoomBooking" + inboundAccess = @{ + isAllowed = $true + resourceScopes = @{ + included = @( + @{ + resourceId = "ad4fc698-74dc-4f62-9e71-ba9b591e8e74" + resourceType = "group" + } + ) + excluded = @( + ) + } + } +} + +New-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId -BodyParameter $params + +``` +This example will create a cross-tenant places room booking capability + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityCustomAuthenticationExtension.md b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityCustomAuthenticationExtension.md index e69de29bb2d..8bfed6f5782 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityCustomAuthenticationExtension.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaIdentityCustomAuthenticationExtension.md @@ -0,0 +1,50 @@ +### Example 1: Update an onTokenIssuanceStartCustomExtension object + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.onTokenIssuanceStartCustomExtension" + displayName = "onTokenIssuanceStartCustomExtension" + description = "Fetch additional claims from custom user store" + endpointConfiguration = @{ + "@odata.type" = "#microsoft.graph.httpRequestEndpoint" + targetUrl = "https://authenticationeventsAPI.contoso.com" + } + authenticationConfiguration = @{ + "@odata.type" = "#microsoft.graph.azureAdTokenAuthentication" + resourceId = "api://authenticationeventsAPI.contoso.com/a13d0fc1-04ab-4ede-b215-63de0174cbb4" + } + claimsForTokenConfiguration = @( + @{ + claimIdInApiResponse = "DateOfBirth" + } + @{ + claimIdInApiResponse = "CustomRoles" + } + ) +} + +Update-MgBetaIdentityCustomAuthenticationExtension -CustomAuthenticationExtensionId $customAuthenticationExtensionId -BodyParameter $params + +``` +This example will update an ontokenissuancestartcustomextension object + +### Example 2: Update an onVerifiedIdClaimValidationCustomExtension object + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.type" = "#microsoft.graph.onVerifiedIdClaimValidationCustomExtension" + displayName = "Verified ID Claim Validation (updated)" + description = "Updated description for Verified ID claim validation" +} + +Update-MgBetaIdentityCustomAuthenticationExtension -CustomAuthenticationExtensionId $customAuthenticationExtensionId -BodyParameter $params + +``` +This example will update an onverifiedidclaimvalidationcustomextension object + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md index a1ccf501f1a..c2a98a8ac2f 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyDefaultAppManagementPolicy.md @@ -67,6 +67,115 @@ identifierUris = @{ } } } +redirectUris = @{ + uriWithBlockedScheme = @{ + state = "enabled" + blockedSchemes = @( + "http" + "ftp" +) +exemptFormats = @( +"http://example.com/login" +) +web = @{ +blockedSchemes = @( +"custom-ftps" +) +} +spa = @{ +blockedSchemes = @( +"myapp" +) +exemptFormats = @( +"https://spa.example.com/auth" +) +} +publicClient = @{ +blockedSchemes = @( +"msauth" +) +exemptFormats = @( +"https://public.example.com/auth" +) +} +} +uriWithoutAllowedScheme = @{ +state = "enabled" +allowedSchemes = @( +"https" +) +web = @{ +allowedSchemes = @( +"https" +) +} +spa = @{ +allowedSchemes = @( +"https" +"msal" +) +} +publicClient = @{ +allowedSchemes = @( +"myapp" +) +} +} +uriWithBlockedDomain = @{ +state = "enabled" +blockedDomains = @( +"contoso-short.com" +"tempuri.org" +) +web = @{ +blockedDomains = @( +"short.contoso.com" +) +} +spa = @{ +blockedDomains = @( +"contoso.dev" +) +} +publicClient = @{ +blockedDomains = @( +"mspreview.contoso.com" +) +} +} +uriWithoutAllowedDomain = @{ +state = "enabled" +allowedDomains = @( +"contoso.com" +"login.microsoftonline.com" +) +web = @{ +allowedDomains = @( +"app.contoso.com" +) +} +spa = @{ +allowedDomains = @( +"spa.contoso.com" +) +} +publicClient = @{ +allowedDomains = @( +"app://contoso" +) +} +} +uriWithWildcard = @{ +state = "enabled" +excludeFormats = @{ +excludeWildcardsInPath = $true +excludeWildcardsInPathWithDomains = @( +"contoso.com" +"fabrikam.com" +) +} +} +} } } diff --git a/src/Identity.SignIns/v1.0/examples/Invoke-MgCreationUserAuthenticationFido2MethodOption.md b/src/Identity.SignIns/v1.0/examples/Invoke-MgCreationUserAuthenticationFido2MethodOption.md new file mode 100644 index 00000000000..71301f6040b --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Invoke-MgCreationUserAuthenticationFido2MethodOption.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +Invoke-MgCreationUserAuthenticationFido2MethodOption -UserId $userId + +``` +This example shows how to use the Invoke-MgCreationUserAuthenticationFido2MethodOption Cmdlet. + diff --git a/src/Identity.SignIns/v1.0/examples/Update-MgPolicyOwnerlessGroupPolicy.md b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyOwnerlessGroupPolicy.md new file mode 100644 index 00000000000..93f16cb1dca --- /dev/null +++ b/src/Identity.SignIns/v1.0/examples/Update-MgPolicyOwnerlessGroupPolicy.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.SignIns + +$params = @{ + isEnabled = $false +} + +Update-MgPolicyOwnerlessGroupPolicy -BodyParameter $params + +``` +This example shows how to use the Update-MgPolicyOwnerlessGroupPolicy Cmdlet. + diff --git a/src/Migrations/beta/examples/Move-MgBetaCrossTenantMigrationJob.md b/src/Migrations/beta/examples/Move-MgBetaCrossTenantMigrationJob.md new file mode 100644 index 00000000000..e66e72c70c7 --- /dev/null +++ b/src/Migrations/beta/examples/Move-MgBetaCrossTenantMigrationJob.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Migrations + +Move-MgBetaCrossTenantMigrationJob -CrossTenantMigrationJobId $crossTenantMigrationJobId + +``` +This example shows how to use the Move-MgBetaCrossTenantMigrationJob Cmdlet. + diff --git a/src/Migrations/beta/examples/Test-MgBetaCrossTenantMigrationJob.md b/src/Migrations/beta/examples/Test-MgBetaCrossTenantMigrationJob.md index b0fda5d70f4..e879eb30129 100644 --- a/src/Migrations/beta/examples/Test-MgBetaCrossTenantMigrationJob.md +++ b/src/Migrations/beta/examples/Test-MgBetaCrossTenantMigrationJob.md @@ -4,25 +4,7 @@ Import-Module Microsoft.Graph.Beta.Migrations -$params = @{ - displayName = "Contoso_migration_validation_job" - completeAfterDateTime = "2025-05-22T17:14:52Z" - sourceTenantId = "12345678-1234-1234-1234-123456789012" - exchangeSettings = @{ - targetDeliveryDomain = "fabrikam.com" - sourceEndpoint = "EXOHandler" - } - resources = @( - "b5b8bc4f-0e36-4ad3-8ddf-248b68260b89" -"ac87d040-a081-426c-a73b-81133f458a29" -) -workloads = @( -"Teams" -) -resourceType = "Users" -} - -Test-MgBetaCrossTenantMigrationJob -BodyParameter $params +Test-MgBetaCrossTenantMigrationJob -CrossTenantMigrationJobId $crossTenantMigrationJobId ``` This example shows how to use the Test-MgBetaCrossTenantMigrationJob Cmdlet. diff --git a/src/Security/v1.0/examples/Get-MgSecurityAuditLogQuery.md b/src/Security/v1.0/examples/Get-MgSecurityAuditLogQuery.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Security/v1.0/examples/Get-MgSecurityCollaborationAnalyzedEmail.md b/src/Security/v1.0/examples/Get-MgSecurityCollaborationAnalyzedEmail.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentAccessKey.md b/src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentAccessKey.md new file mode 100644 index 00000000000..b5bb73c7451 --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentAccessKey.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityIdentitySensorDeploymentAccessKey + +``` +This example shows how to use the Get-MgSecurityIdentitySensorDeploymentAccessKey Cmdlet. + diff --git a/src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentPackageUri.md b/src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentPackageUri.md new file mode 100644 index 00000000000..0fbb165b3b7 --- /dev/null +++ b/src/Security/v1.0/examples/Get-MgSecurityIdentitySensorDeploymentPackageUri.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +Get-MgSecurityIdentitySensorDeploymentPackageUri + +``` +This example shows how to use the Get-MgSecurityIdentitySensorDeploymentPackageUri Cmdlet. + diff --git a/src/Security/v1.0/examples/Initialize-MgSecurityIdentitySensorCandidate.md b/src/Security/v1.0/examples/Initialize-MgSecurityIdentitySensorCandidate.md new file mode 100644 index 00000000000..cd3e1dea746 --- /dev/null +++ b/src/Security/v1.0/examples/Initialize-MgSecurityIdentitySensorCandidate.md @@ -0,0 +1,17 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +$params = @{ + serverIds = @( + "c0633ebb-8cfb-f17a-0b9e-83aa661f53a3" +) +} + +Initialize-MgSecurityIdentitySensorCandidate -BodyParameter $params + +``` +This example shows how to use the Initialize-MgSecurityIdentitySensorCandidate Cmdlet. + diff --git a/src/Security/v1.0/examples/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md b/src/Security/v1.0/examples/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md index e69de29bb2d..a17e79b3b35 100644 --- a/src/Security/v1.0/examples/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md +++ b/src/Security/v1.0/examples/Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy.md @@ -0,0 +1,11 @@ +### Example 1: Retrieve child tags of a specific eDiscovery + +```powershell + +Import-Module Microsoft.Graph.Security + +Invoke-MgAsSecurityCaseEdiscoveryCaseTagHierarchy -EdiscoveryCaseId $ediscoveryCaseId + +``` +This example will retrieve child tags of a specific ediscovery + diff --git a/src/Security/v1.0/examples/Invoke-MgRemediateSecurityCollaborationAnalyzedEmail.md b/src/Security/v1.0/examples/Invoke-MgRemediateSecurityCollaborationAnalyzedEmail.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Security/v1.0/examples/Merge-MgSecurityIncident.md b/src/Security/v1.0/examples/Merge-MgSecurityIncident.md new file mode 100644 index 00000000000..95933671bd0 --- /dev/null +++ b/src/Security/v1.0/examples/Merge-MgSecurityIncident.md @@ -0,0 +1,20 @@ +### Example 1: Merge incidents + +```powershell + +Import-Module Microsoft.Graph.Security + +$params = @{ + incidentIds = @( + "2972395" +"2972396" +) +incidentComment = "Merging related incidents from the same campaign" +mergeReasons = "sameCampaign, sameActor" +} + +Merge-MgSecurityIncident -BodyParameter $params + +``` +This example will merge incidents + diff --git a/src/Security/v1.0/examples/Move-MgSecurityAlert.md b/src/Security/v1.0/examples/Move-MgSecurityAlert.md new file mode 100644 index 00000000000..c3d086e7fec --- /dev/null +++ b/src/Security/v1.0/examples/Move-MgSecurityAlert.md @@ -0,0 +1,21 @@ +### Example 1: Move alerts to an incident + +```powershell + +Import-Module Microsoft.Graph.Security + +$params = @{ + alertIds = @( + "da637551227677560813_-961444813" +"da637551227677560813_-961444814" +) +incidentId = "2972395" +alertComment = "Moving alerts for investigation consolidation" +newCorrelationReasons = "sameAsset, temporalProximity" +} + +Move-MgSecurityAlert -BodyParameter $params + +``` +This example will move alerts to an incident + diff --git a/src/Security/v1.0/examples/New-MgSecurityAuditLogQuery.md b/src/Security/v1.0/examples/New-MgSecurityAuditLogQuery.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Security/v1.0/examples/New-MgSecurityIdentitySensorDeploymentAccessKey.md b/src/Security/v1.0/examples/New-MgSecurityIdentitySensorDeploymentAccessKey.md new file mode 100644 index 00000000000..362db99fe74 --- /dev/null +++ b/src/Security/v1.0/examples/New-MgSecurityIdentitySensorDeploymentAccessKey.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Security + +New-MgSecurityIdentitySensorDeploymentAccessKey + +``` +This example shows how to use the New-MgSecurityIdentitySensorDeploymentAccessKey Cmdlet. + diff --git a/src/Sites/v1.0/examples/Grant-MgGroupSiteListItemPermission.md b/src/Sites/v1.0/examples/Grant-MgGroupSiteListItemPermission.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Sites/v1.0/examples/Grant-MgGroupSiteListPermission.md b/src/Sites/v1.0/examples/Grant-MgGroupSiteListPermission.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Sites/v1.0/examples/Grant-MgSiteListItemPermission.md b/src/Sites/v1.0/examples/Grant-MgSiteListItemPermission.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Sites/v1.0/examples/Grant-MgSiteListPermission.md b/src/Sites/v1.0/examples/Grant-MgSiteListPermission.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Get-MgUserChatTargetedMessageReplyDelta.md b/src/Teams/v1.0/examples/Get-MgUserChatTargetedMessageReplyDelta.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphChatTargetedMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphChatTargetedMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgGraphUserChatTargetedMessageReply.md b/src/Teams/v1.0/examples/Invoke-MgGraphUserChatTargetedMessageReply.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/Teams/v1.0/examples/Invoke-MgSoftChatTargetedMessageReplyDelete.md b/src/Teams/v1.0/examples/Invoke-MgSoftChatTargetedMessageReplyDelete.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgSoftChatTargetedMessageReplyDelete.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Invoke-MgSoftUserChatTargetedMessageReplyDelete.md b/src/Teams/v1.0/examples/Invoke-MgSoftUserChatTargetedMessageReplyDelete.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Invoke-MgSoftUserChatTargetedMessageReplyDelete.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Start-MgChatMigration.md b/src/Teams/v1.0/examples/Start-MgChatMigration.md new file mode 100644 index 00000000000..b583df38d76 --- /dev/null +++ b/src/Teams/v1.0/examples/Start-MgChatMigration.md @@ -0,0 +1,22 @@ +### Example 1: Start the migration in a chat + +```powershell + +Import-Module Microsoft.Graph.Teams + +Start-MgChatMigration -ChatId $chatId + +``` +This example will start the migration in a chat + +### Example 2: Start the migration when a chat is already in migration mode + +```powershell + +Import-Module Microsoft.Graph.Teams + +Start-MgChatMigration -ChatId $chatId + +``` +This example will start the migration when a chat is already in migration mode + diff --git a/src/Teams/v1.0/examples/Start-MgGroupTeamChannelMigration.md b/src/Teams/v1.0/examples/Start-MgGroupTeamChannelMigration.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Start-MgGroupTeamChannelMigration.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Start-MgGroupTeamPrimaryChannelMigration.md b/src/Teams/v1.0/examples/Start-MgGroupTeamPrimaryChannelMigration.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Start-MgGroupTeamPrimaryChannelMigration.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Start-MgTeamChannelMigration.md b/src/Teams/v1.0/examples/Start-MgTeamChannelMigration.md new file mode 100644 index 00000000000..1125bf4d997 --- /dev/null +++ b/src/Teams/v1.0/examples/Start-MgTeamChannelMigration.md @@ -0,0 +1,22 @@ +### Example 1: Start the migration on an existing channel with a specific timestamp + +```powershell + +Import-Module Microsoft.Graph.Teams + +Start-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId + +``` +This example will start the migration on an existing channel with a specific timestamp + +### Example 2: Start the migration when a channel is already in migration mode + +```powershell + +Import-Module Microsoft.Graph.Teams + +Start-MgTeamChannelMigration -TeamId $teamId -ChannelId $channelId + +``` +This example will start the migration when a channel is already in migration mode + diff --git a/src/Teams/v1.0/examples/Start-MgTeamPrimaryChannelMigration.md b/src/Teams/v1.0/examples/Start-MgTeamPrimaryChannelMigration.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Start-MgTeamPrimaryChannelMigration.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Start-MgTeamworkDeletedTeamChannelMigration.md b/src/Teams/v1.0/examples/Start-MgTeamworkDeletedTeamChannelMigration.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Start-MgTeamworkDeletedTeamChannelMigration.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Start-MgUserChatMigration.md b/src/Teams/v1.0/examples/Start-MgUserChatMigration.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Start-MgUserChatMigration.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Undo-MgChatTargetedMessageReplySoftDelete.md b/src/Teams/v1.0/examples/Undo-MgChatTargetedMessageReplySoftDelete.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Undo-MgChatTargetedMessageReplySoftDelete.md @@ -0,0 +1 @@ + diff --git a/src/Teams/v1.0/examples/Undo-MgUserChatTargetedMessageReplySoftDelete.md b/src/Teams/v1.0/examples/Undo-MgUserChatTargetedMessageReplySoftDelete.md new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/src/Teams/v1.0/examples/Undo-MgUserChatTargetedMessageReplySoftDelete.md @@ -0,0 +1 @@ + diff --git a/src/Users/v1.0/examples/Get-MgUserSettingExchange.md b/src/Users/v1.0/examples/Get-MgUserSettingExchange.md new file mode 100644 index 00000000000..eeb240d861a --- /dev/null +++ b/src/Users/v1.0/examples/Get-MgUserSettingExchange.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Users + +Get-MgUserSettingExchange -UserId $userId + +``` +This example shows how to use the Get-MgUserSettingExchange Cmdlet. +