From f0278a8161bec17b2e9a28dd298f26c96833d01c Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 19 Jul 2024 11:03:20 +0000 Subject: [PATCH 1/2] Updating examples --- .../Get-MgBetaServicePrincipalClaimPolicy.md | 11 +++ ...incipalPermissionGrantPreApprovalPolicy.md | 11 +++ ...ServicePrincipalSynchronizationTemplate.md | 11 +++ .../Test-MgBetaApplicationProperty.md | 1 + .../Test-MgBetaServicePrincipalProperty.md | 1 + .../examples/Enable-MgBetaBackupRestore.md | 15 ++++ .../beta/examples/Get-MgBetaBackupRestore.md | 11 +++ ...-MgBetaBackupRestoreDriveProtectionUnit.md | 11 +++ ...ngeProtectionPolicyMailboxInclusionRule.md | 11 +++ ...ngeRestoreSessionMailboxRestoreArtifact.md | 11 +++ ...gBetaBackupRestoreMailboxProtectionUnit.md | 11 +++ ...inessProtectionPolicyDriveInclusionRule.md | 11 +++ ...nessProtectionPolicyDriveProtectionUnit.md | 11 +++ ...inessRestoreSessionDriveRestoreArtifact.md | 11 +++ .../Get-MgBetaBackupRestoreProtectionUnit.md | 11 +++ .../Get-MgBetaBackupRestoreServiceApp.md | 11 +++ .../Get-MgBetaBackupRestoreSession.md | 11 +++ ...ePointProtectionPolicySiteInclusionRule.md | 11 +++ ...PointProtectionPolicySiteProtectionUnit.md | 11 +++ ...ePointRestoreSessionSiteRestoreArtifact.md | 11 +++ ...t-MgBetaBackupRestoreSiteProtectionUnit.md | 11 +++ ...ize-MgBetaBackupRestoreProtectionPolicy.md | 22 ++++++ ...nitialize-MgBetaBackupRestoreServiceApp.md | 15 ++++ .../Initialize-MgBetaBackupRestoreSession.md | 11 +++ ...teSolutionBackupRestoreProtectionPolicy.md | 22 ++++++ ...activateSolutionBackupRestoreServiceApp.md | 11 +++ ...taBackupRestoreExchangeProtectionPolicy.md | 26 +++++++ ...toreOneDriveForBusinessProtectionPolicy.md | 26 +++++++ .../New-MgBetaBackupRestoreServiceApp.md | 14 ++++ ...BackupRestoreSharePointProtectionPolicy.md | 26 +++++++ ...taBackupRestoreSharePointRestoreSession.md | 28 +++++++ .../New-MgBetaBusinessScenarioPlannerTask.md | 1 - ...ove-MgBetaBackupRestoreProtectionPolicy.md | 11 +++ .../Remove-MgBetaBackupRestoreServiceApp.md | 11 +++ .../Remove-MgBetaBackupRestoreSession.md | 11 +++ .../Search-MgBetaBackupRestorePoint.md | 26 +++++++ ...taBackupRestoreExchangeProtectionPolicy.md | 35 +++++++++ ...BetaBackupRestoreExchangeRestoreSession.md | 58 ++++++++++++++ ...toreOneDriveForBusinessProtectionPolicy.md | 35 +++++++++ ...estoreOneDriveForBusinessRestoreSession.md | 58 ++++++++++++++ ...BackupRestoreSharePointProtectionPolicy.md | 47 +++++++++++ ...pdate-MgBetaBusinessScenarioPlannerTask.md | 1 - ...-MgCommunicationCallRecordParticipantV2.md | 11 +++ ...shNotificationCertificateSigningRequest.md | 17 ++-- ...xcuseEducationClassAssignmentSubmission.md | 22 ++++++ ...MgExcuseEducationMeAssignmentSubmission.md | 1 + ...ExcuseEducationUserAssignmentSubmission.md | 1 + .../Grant-MgBetaGroupDriveItemPermission.md | 1 + .../Grant-MgBetaGroupDriveRootPermission.md | 1 + .../Grant-MgBetaGroupSitePermission.md | 1 + .../Invoke-MgBetaAcceptGroupCalendarEvent.md | 1 + ...BetaAcceptGroupCalendarEventTentatively.md | 1 + .../examples/Invoke-MgBetaAcceptGroupEvent.md | 1 + ...nvoke-MgBetaAcceptGroupEventTentatively.md | 1 + .../Invoke-MgBetaCheckinGroupDriveItem.md | 1 + .../Invoke-MgBetaCheckinGroupDriveRoot.md | 1 + .../Invoke-MgBetaCheckoutGroupDriveItem.md | 1 + .../Invoke-MgBetaCheckoutGroupDriveRoot.md | 1 + .../Invoke-MgBetaDeclineGroupCalendarEvent.md | 1 + .../Invoke-MgBetaDeclineGroupEvent.md | 1 + ...MgBetaDismissGroupCalendarEventReminder.md | 1 + .../Invoke-MgBetaDismissGroupEventReminder.md | 1 + .../Invoke-MgBetaForwardGroupCalendarEvent.md | 1 + ...gBetaForwardGroupConversationThreadPost.md | 1 + ...ardGroupConversationThreadPostInReplyTo.md | 1 + .../Invoke-MgBetaForwardGroupEvent.md | 1 + ...e-MgBetaForwardGroupThreadPostInReplyTo.md | 1 + ...voke-MgBetaReplyGroupConversationThread.md | 1 + ...-MgBetaSnoozeGroupCalendarEventReminder.md | 1 + .../Invoke-MgBetaSnoozeGroupEventReminder.md | 1 + ...sationThreadPostAttachmentUploadSession.md | 1 + ...eadPostInReplyToAttachmentUploadSession.md | 1 + ...ntityGovernanceLifecycleWorkflowInsight.md | 11 +++ ...ycleWorkflowInsightTaskProcessedSummary.md | 11 +++ ...WorkflowInsightWorkflowProcessedSummary.md | 11 +++ ...ifecycleWorkflowInsightProcessedSummary.md | 11 +++ ...MgEntitlementManagementAssignmentPolicy.md | 53 +++++++++++++ ...aPolicyPermissionGrantPreApprovalPolicy.md | 11 +++ .../Get-MgBetaTrustFrameworkKeySetKeyV2.md | 11 +++ ...aPolicyPermissionGrantPreApprovalPolicy.md | 78 +++++++++++++++++++ ...IdentityB2CUserFlowLanguageOverridePage.md | 17 ---- ...yB2CUserFlowLanguageOverridePageContent.md | 11 +++ ...aPolicyPermissionGrantPreApprovalPolicy.md | 11 +++ ...aPolicyPermissionGrantPreApprovalPolicy.md | 51 ++++++++++++ ...nantRelationshipMultiTenantOrganization.md | 16 ++++ ...Set-MgBetaPlannerRosterSensitivityLabel.md | 16 ++++ ...oundProvisioningFlowSetProvisioningFlow.md | 11 +++ .../Get-MgBetaSecurityPartnerSecurityAlert.md | 11 +++ ...date-MgBetaSecurityPartnerSecurityAlert.md | 16 ++++ .../beta/examples/Get-MgBetaUserById.md | 1 + .../Get-MgBetaUserCalendarSchedule.md | 1 + .../Grant-MgBetaUserDriveItemPermission.md | 1 + .../Grant-MgBetaUserDriveRootPermission.md | 1 + .../Invoke-MgBetaAcceptUserEventInstance.md | 1 + ...gBetaAcceptUserEventInstanceTentatively.md | 1 + .../Invoke-MgBetaCheckinUserDriveItem.md | 1 + .../Invoke-MgBetaCheckinUserDriveRoot.md | 1 + .../Invoke-MgBetaCheckoutUserDriveItem.md | 1 + .../Invoke-MgBetaCheckoutUserDriveRoot.md | 1 + .../Invoke-MgBetaDeclineUserEventInstance.md | 1 + ...-MgBetaDismissUserEventInstanceReminder.md | 1 + .../Invoke-MgBetaForwardUserEventInstance.md | 1 + ...ForwardUserMailFolderChildFolderMessage.md | 1 + ...voke-MgBetaForwardUserMailFolderMessage.md | 1 + ...eplyAllUserMailFolderChildFolderMessage.md | 1 + ...oke-MgBetaReplyAllUserMailFolderMessage.md | 1 + ...taReplyUserMailFolderChildFolderMessage.md | 1 + ...Invoke-MgBetaReplyUserMailFolderMessage.md | 1 + ...e-MgBetaSnoozeUserEventInstanceReminder.md | 1 + .../Move-MgBetaUserMailFolderChildFolder.md | 1 + ...-MgBetaUserMailFolderChildFolderMessage.md | 1 + .../Move-MgBetaUserMailFolderMessage.md | 1 + ...-MgBetaUserEventAttachmentUploadSession.md | 1 + ...serEventInstanceAttachmentUploadSession.md | 1 + ...ildFolderMessageAttachmentUploadSession.md | 1 + ...UserMailFolderChildFolderMessageForward.md | 1 + ...taUserMailFolderChildFolderMessageReply.md | 1 + ...serMailFolderChildFolderMessageReplyAll.md | 1 + ...ailFolderMessageAttachmentUploadSession.md | 1 + .../New-MgBetaUserMailFolderMessageForward.md | 1 + .../New-MgBetaUserMailFolderMessageReply.md | 1 + ...New-MgBetaUserMailFolderMessageReplyAll.md | 1 + .../Publish-MgBetaUserDriveListContentType.md | 1 + ...UserDriveItemListItemDocumentSetVersion.md | 1 + .../Restore-MgBetaUserDriveItemVersion.md | 1 + ...BetaUserDriveListItemDocumentSetVersion.md | 1 + ...UserDriveRootListItemDocumentSetVersion.md | 1 + .../Restore-MgBetaUserDriveRootVersion.md | 1 + ...Send-MgBetaUserChatActivityNotification.md | 1 + ...-MgBetaUserMailFolderChildFolderMessage.md | 1 + .../Send-MgBetaUserMailFolderMessage.md | 1 + .../examples/Stop-MgBetaUserEventInstance.md | 1 + .../beta/examples/Test-MgBetaUserProperty.md | 1 + ...npublish-MgBetaUserDriveListContentType.md | 1 + .../Update-MgBetaUserChatInstalledApp.md | 1 + ...Get-MgBetaAllUserOnlineMeetingRecording.md | 10 +++ ...et-MgBetaAllUserOnlineMeetingTranscript.md | 10 +++ 137 files changed, 1179 insertions(+), 31 deletions(-) diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimPolicy.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimPolicy.md index e69de29bb2..a479fb528b 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimPolicy.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalClaimPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalClaimPolicy -ServicePrincipalId $servicePrincipalId + +``` +This example shows how to use the Get-MgBetaServicePrincipalClaimPolicy Cmdlet. + diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalPermissionGrantPreApprovalPolicy.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalPermissionGrantPreApprovalPolicy.md index e69de29bb2..0ff2d344e4 100644 --- a/src/Applications/beta/examples/Get-MgBetaServicePrincipalPermissionGrantPreApprovalPolicy.md +++ b/src/Applications/beta/examples/Get-MgBetaServicePrincipalPermissionGrantPreApprovalPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Applications + +Get-MgBetaServicePrincipalPermissionGrantPreApprovalPolicy -ServicePrincipalId $servicePrincipalId -PermissionGrantPreApprovalPolicyId $permissionGrantPreApprovalPolicyId + +``` +This example shows how to use the Get-MgBetaServicePrincipalPermissionGrantPreApprovalPolicy Cmdlet. + diff --git a/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md b/src/Applications/beta/examples/Get-MgBetaServicePrincipalSynchronizationTemplate.md index e69de29bb2..3f1ed3342c 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 will### example + diff --git a/src/Applications/beta/examples/Test-MgBetaApplicationProperty.md b/src/Applications/beta/examples/Test-MgBetaApplicationProperty.md index e69de29bb2..8b13789179 100644 --- a/src/Applications/beta/examples/Test-MgBetaApplicationProperty.md +++ b/src/Applications/beta/examples/Test-MgBetaApplicationProperty.md @@ -0,0 +1 @@ + diff --git a/src/Applications/beta/examples/Test-MgBetaServicePrincipalProperty.md b/src/Applications/beta/examples/Test-MgBetaServicePrincipalProperty.md index e69de29bb2..8b13789179 100644 --- a/src/Applications/beta/examples/Test-MgBetaServicePrincipalProperty.md +++ b/src/Applications/beta/examples/Test-MgBetaServicePrincipalProperty.md @@ -0,0 +1 @@ + diff --git a/src/Bookings/beta/examples/Enable-MgBetaBackupRestore.md b/src/Bookings/beta/examples/Enable-MgBetaBackupRestore.md index e69de29bb2..b31680b73f 100644 --- a/src/Bookings/beta/examples/Enable-MgBetaBackupRestore.md +++ b/src/Bookings/beta/examples/Enable-MgBetaBackupRestore.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + appOwnerTenantId = "23014d8c-71fe-4d00-a01a-31850bc5b42a" +} + +Enable-MgBetaBackupRestore -BodyParameter $params + +``` +This example shows how to use the Enable-MgBetaBackupRestore Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestore.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestore.md index e69de29bb2..1640d08cc9 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestore.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestore.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestore + +``` +This example shows how to use the Get-MgBetaBackupRestore Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreDriveProtectionUnit.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreDriveProtectionUnit.md index e69de29bb2..5c3196fb22 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreDriveProtectionUnit.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreDriveProtectionUnit.md @@ -0,0 +1,11 @@ +### Example 1: List all the driveProtectionUnits in a tenant + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreDriveProtectionUnit + +``` +This example will list all the driveprotectionunits in a tenant + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.md index e69de29bb2..d75fb9ac47 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.md @@ -0,0 +1,11 @@ +### Example 1: Get a mailboxInclusionRule associated with an Exchange protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreExchangeProtectionPolicyMailboxInclusionRule -ExchangeProtectionPolicyId $exchangeProtectionPolicyId -MailboxProtectionRuleId $mailboxProtectionRuleId + +``` +This example will get a mailboxinclusionrule associated with an exchange protection policy + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.md index e69de29bb2..f24132e6d9 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact -ExchangeRestoreSessionId $exchangeRestoreSessionId + +``` +This example shows how to use the Get-MgBetaBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreMailboxProtectionUnit.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreMailboxProtectionUnit.md index e69de29bb2..f964c68029 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreMailboxProtectionUnit.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreMailboxProtectionUnit.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreMailboxProtectionUnit + +``` +This example shows how to use the Get-MgBetaBackupRestoreMailboxProtectionUnit Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.md index e69de29bb2..4078504b84 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.md @@ -0,0 +1,11 @@ +### Example 1: Get a driveInclusionRule associated with an OneDriveForBusiness protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule -OneDriveForBusinessProtectionPolicyId $oneDriveForBusinessProtectionPolicyId -DriveProtectionRuleId $driveProtectionRuleId + +``` +This example will get a driveinclusionrule associated with an onedriveforbusiness protection policy + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.md index e69de29bb2..ce497c84e9 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.md @@ -0,0 +1,11 @@ +### Example 1: List the driveProtectionUnits associated with a OneDrive for Business protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit -OneDriveForBusinessProtectionPolicyId $oneDriveForBusinessProtectionPolicyId + +``` +This example will list the driveprotectionunits associated with a onedrive for business protection policy + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.md index e69de29bb2..50ac0980e4 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact -OneDriveForBusinessRestoreSessionId $oneDriveForBusinessRestoreSessionId + +``` +This example shows how to use the Get-MgBetaBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreProtectionUnit.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreProtectionUnit.md index e69de29bb2..1681837c19 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreProtectionUnit.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreProtectionUnit.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreProtectionUnit -ProtectionUnitBaseId $protectionUnitBaseId + +``` +This example shows how to use the Get-MgBetaBackupRestoreProtectionUnit Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreServiceApp.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreServiceApp.md index e69de29bb2..efc253dc14 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreServiceApp.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreServiceApp.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreServiceApp + +``` +This example shows how to use the Get-MgBetaBackupRestoreServiceApp Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSession.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSession.md index e69de29bb2..fb6c5a6f15 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSession.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSession.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreSession + +``` +This example shows how to use the Get-MgBetaBackupRestoreSession Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteInclusionRule.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteInclusionRule.md index e69de29bb2..3f88aef0ac 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteInclusionRule.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteInclusionRule.md @@ -0,0 +1,11 @@ +### Example 1: Get siteInclusionRule associated with a SharePoint protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreSharePointProtectionPolicySiteInclusionRule -SharePointProtectionPolicyId $sharePointProtectionPolicyId -SiteProtectionRuleId $siteProtectionRuleId + +``` +This example will get siteinclusionrule associated with a sharepoint protection policy + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteProtectionUnit.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteProtectionUnit.md index e69de29bb2..858e70f792 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteProtectionUnit.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointProtectionPolicySiteProtectionUnit.md @@ -0,0 +1,11 @@ +### Example 1: List the siteProtectionUnits associated with a SharePoint protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreSharePointProtectionPolicySiteProtectionUnit -SharePointProtectionPolicyId $sharePointProtectionPolicyId + +``` +This example will list the siteprotectionunits associated with a sharepoint protection policy + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.md index e69de29bb2..3af349c749 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreSharePointRestoreSessionSiteRestoreArtifact -SharePointRestoreSessionId $sharePointRestoreSessionId + +``` +This example shows how to use the Get-MgBetaBackupRestoreSharePointRestoreSessionSiteRestoreArtifact Cmdlet. + diff --git a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSiteProtectionUnit.md b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSiteProtectionUnit.md index e69de29bb2..252906f0b3 100644 --- a/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSiteProtectionUnit.md +++ b/src/Bookings/beta/examples/Get-MgBetaBackupRestoreSiteProtectionUnit.md @@ -0,0 +1,11 @@ +### Example 1: List all the siteProtectionUnits in a tenant + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Get-MgBetaBackupRestoreSiteProtectionUnit + +``` +This example will list all the siteprotectionunits in a tenant + diff --git a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreProtectionPolicy.md b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreProtectionPolicy.md index e69de29bb2..486638098e 100644 --- a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreProtectionPolicy.md +++ b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreProtectionPolicy.md @@ -0,0 +1,22 @@ +### Example 1 : Activate an inactive protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Initialize-MgBetaBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will### example 1 : activate an inactive protection policy + +### Example 2 : Activate an active protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Initialize-MgBetaBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will### example 2 : activate an active protection policy + diff --git a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md index e69de29bb2..282ce010ab 100644 --- a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md +++ b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreServiceApp.md @@ -0,0 +1,15 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + effectiveDateTime = [System.DateTime]::Parse("2024-04-19T12-01-03.45Z") +} + +Initialize-MgBetaBackupRestoreServiceApp -ServiceAppId $serviceAppId -BodyParameter $params + +``` +This example shows how to use the Initialize-MgBetaBackupRestoreServiceApp Cmdlet. + diff --git a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreSession.md b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreSession.md index e69de29bb2..2a401e3eca 100644 --- a/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreSession.md +++ b/src/Bookings/beta/examples/Initialize-MgBetaBackupRestoreSession.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Initialize-MgBetaBackupRestoreSession -RestoreSessionBaseId $restoreSessionBaseId + +``` +This example shows how to use the Initialize-MgBetaBackupRestoreSession Cmdlet. + diff --git a/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreProtectionPolicy.md b/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreProtectionPolicy.md index e69de29bb2..d15232f3df 100644 --- a/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreProtectionPolicy.md +++ b/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreProtectionPolicy.md @@ -0,0 +1,22 @@ +### Example 1: Deactivate an active protection policy + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Invoke-MgBetaDeactivateSolutionBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will deactivate an active protection policy + +### Example 2 : Deactivate a protection policy in updating state + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Invoke-MgBetaDeactivateSolutionBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example will### example 2 : deactivate a protection policy in updating state + diff --git a/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreServiceApp.md b/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreServiceApp.md index e69de29bb2..857ccc0e0a 100644 --- a/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreServiceApp.md +++ b/src/Bookings/beta/examples/Invoke-MgBetaDeactivateSolutionBackupRestoreServiceApp.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Invoke-MgBetaDeactivateSolutionBackupRestoreServiceApp -ServiceAppId $serviceAppId + +``` +This example shows how to use the Invoke-MgBetaDeactivateSolutionBackupRestoreServiceApp Cmdlet. + diff --git a/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md b/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md index e69de29bb2..4c85fb145b 100644 --- a/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md +++ b/src/Bookings/beta/examples/New-MgBetaBackupRestoreExchangeProtectionPolicy.md @@ -0,0 +1,26 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + displayName = "Exchange Protection Policy" + mailboxProtectionUnits = @( + @{ + userId = "cdd3a849-dcaf-4a85-af82-7e39fc14019a" + } + @{ + userId = "9bc069da-b746-41a4-89ab-26125c6373c7" + } + @{ + userId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7" + } + ) +} + +New-MgBetaBackupRestoreExchangeProtectionPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgBetaBackupRestoreExchangeProtectionPolicy Cmdlet. + diff --git a/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md b/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md index e69de29bb2..155640ab68 100644 --- a/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md +++ b/src/Bookings/beta/examples/New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md @@ -0,0 +1,26 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + displayName = "OneDrive For Business Protection Policy" + driveProtectionUnits = @( + @{ + userId = "cdd3a849-dcaf-4a85-af82-7e39fc14019" + } + @{ + userId = "9bc069da-b746-41a4-89ab-26125c6373c7" + } + @{ + userId = "b218eb4a-ea72-42bd-8f0b-d0bbf794bec7" + } + ) +} + +New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy Cmdlet. + diff --git a/src/Bookings/beta/examples/New-MgBetaBackupRestoreServiceApp.md b/src/Bookings/beta/examples/New-MgBetaBackupRestoreServiceApp.md index e69de29bb2..e192f61389 100644 --- a/src/Bookings/beta/examples/New-MgBetaBackupRestoreServiceApp.md +++ b/src/Bookings/beta/examples/New-MgBetaBackupRestoreServiceApp.md @@ -0,0 +1,14 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ +} + +New-MgBetaBackupRestoreServiceApp -BodyParameter $params + +``` +This example shows how to use the New-MgBetaBackupRestoreServiceApp Cmdlet. + diff --git a/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointProtectionPolicy.md b/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointProtectionPolicy.md index e69de29bb2..0d489a95c3 100644 --- a/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointProtectionPolicy.md +++ b/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointProtectionPolicy.md @@ -0,0 +1,26 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + displayName = "SharePoint Protection Policy" + siteProtectionUnits = @( + @{ + siteId = "contoso.sharepoint.com,febad3c2-a7b2-454c-8910-272c7bcf78fc,ba7b70d0-8ba0-4cae-b19a-7cb8c739512f" + } + @{ + siteId = "contoso.sharepoint.com/sites/marketing,da60e844-ba1d-49bc-b4d4-d5e36bae9019,712a596e-90a1-49e3-9b48-bfa80bee8740" + } + @{ + siteId = "contoso.sharepoint.com/sites/hr,3bfc861e-9a17-4a27-9562-3d8b26c81bb5,0271110f-634f-4300-a841-3a8a2e851851" + } + ) +} + +New-MgBetaBackupRestoreSharePointProtectionPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgBetaBackupRestoreSharePointProtectionPolicy Cmdlet. + diff --git a/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointRestoreSession.md b/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointRestoreSession.md index e69de29bb2..83dfa7c279 100644 --- a/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointRestoreSession.md +++ b/src/Bookings/beta/examples/New-MgBetaBackupRestoreSharePointRestoreSession.md @@ -0,0 +1,28 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + siteRestoreArtifacts = @( + @{ + restorePoint = @{ + "@odata.id" = "1f1fccc3-a642-4f61-bf49-f37b9a888279" + } + destinationType = "inPlace" + } + @{ + restorePoint = @{ + "@odata.id" = "1f1fccc3-a642-4f61-bf49-f37b9a888280" + } + destinationType = "inPlace" + } + ) +} + +New-MgBetaBackupRestoreSharePointRestoreSession -BodyParameter $params + +``` +This example shows how to use the New-MgBetaBackupRestoreSharePointRestoreSession Cmdlet. + diff --git a/src/Bookings/beta/examples/New-MgBetaBusinessScenarioPlannerTask.md b/src/Bookings/beta/examples/New-MgBetaBusinessScenarioPlannerTask.md index 5f71b31cc7..0af92befb5 100644 --- a/src/Bookings/beta/examples/New-MgBetaBusinessScenarioPlannerTask.md +++ b/src/Bookings/beta/examples/New-MgBetaBusinessScenarioPlannerTask.md @@ -5,7 +5,6 @@ Import-Module Microsoft.Graph.Beta.Bookings $params = @{ - "@odata.type" = "#microsoft.graph.businessScenarioTask" title = "Customer order #12010" percentComplete = 0 priority = 5 diff --git a/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreProtectionPolicy.md b/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreProtectionPolicy.md index e69de29bb2..d24016d416 100644 --- a/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreProtectionPolicy.md +++ b/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreProtectionPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Remove-MgBetaBackupRestoreProtectionPolicy -ProtectionPolicyBaseId $protectionPolicyBaseId + +``` +This example shows how to use the Remove-MgBetaBackupRestoreProtectionPolicy Cmdlet. + diff --git a/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreServiceApp.md b/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreServiceApp.md index e69de29bb2..2e68d78c1c 100644 --- a/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreServiceApp.md +++ b/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreServiceApp.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Remove-MgBetaBackupRestoreServiceApp -ServiceAppId $serviceAppId + +``` +This example shows how to use the Remove-MgBetaBackupRestoreServiceApp Cmdlet. + diff --git a/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreSession.md b/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreSession.md index e69de29bb2..28c34f4e35 100644 --- a/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreSession.md +++ b/src/Bookings/beta/examples/Remove-MgBetaBackupRestoreSession.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +Remove-MgBetaBackupRestoreSession -RestoreSessionBaseId $restoreSessionBaseId + +``` +This example shows how to use the Remove-MgBetaBackupRestoreSession Cmdlet. + diff --git a/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md b/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md index e69de29bb2..95357160fa 100644 --- a/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md +++ b/src/Bookings/beta/examples/Search-MgBetaBackupRestorePoint.md @@ -0,0 +1,26 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + protectionUnitIds = @( + "23014d8c-71fe-4d00-a01a-31850bc5b42a" +"43014d8c-71fe-4d00-a01a-31850bc5b42b" +"63014d8c-71fe-4d00-a01a-31850bc5b42c" +"83014d8c-71fe-4d00-a01a-31850bc5b42d" +) +protectionTimePeriod = @{ +startDateTime = [System.DateTime]::Parse("2021-01-01T00:00:00Z") +endDateTime = [System.DateTime]::Parse("2021-01-08T00:00:00Z") +} +restorePointPreference = "latest" +tags = "fastRestore" +} + +Search-MgBetaBackupRestorePoint -BodyParameter $params + +``` +This example shows how to use the Search-MgBetaBackupRestorePoint Cmdlet. + diff --git a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md index e69de29bb2..cf0bdd1c31 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md +++ b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeProtectionPolicy.md @@ -0,0 +1,35 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + displayName = "Exchange Policy - Inadvertent data loss" + "mailboxProtectionUnits@delta" = @( + @{ + userId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + @{ + userId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "99954f18-c8ec-4b62-85bf-cdf3b70b140e" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "4267e382-71a9-4c07-bef7-bda97e09c0d2" + } + ) +} + +Update-MgBetaBackupRestoreExchangeProtectionPolicy -ExchangeProtectionPolicyId $exchangeProtectionPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaBackupRestoreExchangeProtectionPolicy Cmdlet. + diff --git a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeRestoreSession.md b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeRestoreSession.md index e69de29bb2..22ea414001 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeRestoreSession.md +++ b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreExchangeRestoreSession.md @@ -0,0 +1,58 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + "mailboxRestoreArtifacts@delta" = @( + @{ + restorePoint = @{ + "@odata.id" = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + destinationType = "inPlace" + } + @{ + restorePoint = @{ + "@odata.id" = "2b014d8c-71fe-4d00-a01a-31850bc5b32" + } + destinationType = "inPlace" + } + @{ + restorePoint = @{ + "@odata.id" = "3b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + destinationType = "inPlace" + } + @{ + restorePoint = @{ + "@odata.id" = "4b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + destinationType = "inPlace" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "99954f18-c8ec-4b62-85bf-cdf3b70b140e" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "4267e382-71a9-4c07-bef7-bda97e09c0d2" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "3667e382-71a9-4c07-bef7-bda97e09c0d2" + } + ) +} + +Update-MgBetaBackupRestoreExchangeRestoreSession -ExchangeRestoreSessionId $exchangeRestoreSessionId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaBackupRestoreExchangeRestoreSession Cmdlet. + diff --git a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md index e69de29bb2..c20ddeee8f 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md +++ b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy.md @@ -0,0 +1,35 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + displayName = "One Drive Policy - Inadvertent data loss" + "driveProtectionUnits@delta" = @( + @{ + userId = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + @{ + userId = "2b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "4267e382-71a9-4c07-bef7-bda97e09c0d2" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "3667e382-71a9-4c07-bef7-bda97e09c0d2" + } + ) +} + +Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy -OneDriveForBusinessProtectionPolicyId $oneDriveForBusinessProtectionPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaBackupRestoreOneDriveForBusinessProtectionPolicy Cmdlet. + diff --git a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessRestoreSession.md b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessRestoreSession.md index e69de29bb2..04ee23c540 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessRestoreSession.md +++ b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreOneDriveForBusinessRestoreSession.md @@ -0,0 +1,58 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + "driveRestoreArtifacts@delta" = @( + @{ + restorePoint = @{ + "@odata.id" = "1b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + destinationType = "new" + } + @{ + restorePoint = @{ + "@odata.id" = "2b014d8c-71fe-4d00-a01a-31850bc5b32" + } + destinationType = "new" + } + @{ + restorePoint = @{ + "@odata.id" = "3b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + destinationType = "new" + } + @{ + restorePoint = @{ + "@odata.id" = "4b014d8c-71fe-4d00-a01a-31850bc5b32c" + } + destinationType = "new" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "99954f18-c8ec-4b62-85bf-cdf3b70b140e" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "4267e382-71a9-4c07-bef7-bda97e09c0d2" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "3667e382-71a9-4c07-bef7-bda97e09c0d2" + } + ) +} + +Update-MgBetaBackupRestoreOneDriveForBusinessRestoreSession -OneDriveForBusinessRestoreSessionId $oneDriveForBusinessRestoreSessionId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaBackupRestoreOneDriveForBusinessRestoreSession Cmdlet. + diff --git a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreSharePointProtectionPolicy.md b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreSharePointProtectionPolicy.md index e69de29bb2..88090e4013 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBackupRestoreSharePointProtectionPolicy.md +++ b/src/Bookings/beta/examples/Update-MgBetaBackupRestoreSharePointProtectionPolicy.md @@ -0,0 +1,47 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Bookings + +$params = @{ + displayName = "SharePoint Policy - Inadvertent data loss" + "siteProtectionUnits@delta" = @( + @{ + siteId = "contoso.sharepoint.com,bf6fb551-d508-4946-a439-b2a6154fc1d9,65a04b8b-1f44-442b-a1fc-9e5852fb946c" + } + @{ + siteId = "contoso.sharepoint.com,d9ecf079-9b13-4376-ac5d-f242dda55626,746dbcc1-fa2b-4120-b657-2670bae5bb6f" + } + @{ + siteId = "contoso.sharepoint.com,fd1a778f-263e-4c43-acdf-d5c2519d80eb,c06016db-dfec-4f79-83a1-09c6dbfd7022" + } + @{ + siteId = "contoso.sharepoint.com,bf6fb551-d508-4946-a439-b2a6154fc1d9,65a04b8b-1f44-442b-a1fc-9e5852fb946c" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "99954f18-c8ec-4b62-85bf-cdf3b70b140e" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "4267e382-71a9-4c07-bef7-bda97e09c0d2" + } + @{ + "@removed" = @{ + reason = "changed" + } + id = "3667e382-71a9-4c07-bef7-bda97e09c0d2" + } + ) +} + +Update-MgBetaBackupRestoreSharePointProtectionPolicy -SharePointProtectionPolicyId $sharePointProtectionPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaBackupRestoreSharePointProtectionPolicy Cmdlet. + diff --git a/src/Bookings/beta/examples/Update-MgBetaBusinessScenarioPlannerTask.md b/src/Bookings/beta/examples/Update-MgBetaBusinessScenarioPlannerTask.md index 7c7b2f64ac..d8bb98fcca 100644 --- a/src/Bookings/beta/examples/Update-MgBetaBusinessScenarioPlannerTask.md +++ b/src/Bookings/beta/examples/Update-MgBetaBusinessScenarioPlannerTask.md @@ -5,7 +5,6 @@ Import-Module Microsoft.Graph.Beta.Bookings $params = @{ - "@odata.type" = "#microsoft.graph.businessScenarioTask" title = "Customer order #12010" percentComplete = 20 priority = 1 diff --git a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordParticipantV2.md b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordParticipantV2.md index e69de29bb2..626184c519 100644 --- a/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordParticipantV2.md +++ b/src/CloudCommunications/v1.0/examples/Get-MgCommunicationCallRecordParticipantV2.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.CloudCommunications + +Get-MgCommunicationCallRecordParticipantV2 -CallRecordId $callRecordId + +``` +This example shows how to use the Get-MgCommunicationCallRecordParticipantV2 Cmdlet. + diff --git a/src/DeviceManagement.Functions/v1.0/examples/Invoke-MgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.md b/src/DeviceManagement.Functions/v1.0/examples/Invoke-MgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.md index 093355d11d..4d040d9f48 100644 --- a/src/DeviceManagement.Functions/v1.0/examples/Invoke-MgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.md +++ b/src/DeviceManagement.Functions/v1.0/examples/Invoke-MgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.md @@ -1,18 +1,11 @@ -### Example 1: {{ Add title here }} +### Example 1: Code snippet + ```powershell -PS C:\> {{ Add code here }} -{{ Add output here }} -``` +Import-Module Microsoft.Graph.DeviceManagement.Functions -{{ Add description here }} +Invoke-MgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} ``` - -{{ Add description here }} +This example shows how to use the Invoke-MgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest Cmdlet. diff --git a/src/Education/v1.0/examples/Invoke-MgExcuseEducationClassAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgExcuseEducationClassAssignmentSubmission.md index e69de29bb2..b741b3f849 100644 --- a/src/Education/v1.0/examples/Invoke-MgExcuseEducationClassAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgExcuseEducationClassAssignmentSubmission.md @@ -0,0 +1,22 @@ +### Example 1: Request with optional Prefer header + +```powershell + +Import-Module Microsoft.Graph.Education + +Invoke-MgExcuseEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + +``` +This example will request with optional prefer header + +### Example 2: Request without the Prefer request header + +```powershell + +Import-Module Microsoft.Graph.Education + +Invoke-MgExcuseEducationClassAssignmentSubmission -EducationClassId $educationClassId -EducationAssignmentId $educationAssignmentId -EducationSubmissionId $educationSubmissionId + +``` +This example will request without the prefer request header + diff --git a/src/Education/v1.0/examples/Invoke-MgExcuseEducationMeAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgExcuseEducationMeAssignmentSubmission.md index e69de29bb2..8b13789179 100644 --- a/src/Education/v1.0/examples/Invoke-MgExcuseEducationMeAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgExcuseEducationMeAssignmentSubmission.md @@ -0,0 +1 @@ + diff --git a/src/Education/v1.0/examples/Invoke-MgExcuseEducationUserAssignmentSubmission.md b/src/Education/v1.0/examples/Invoke-MgExcuseEducationUserAssignmentSubmission.md index e69de29bb2..8b13789179 100644 --- a/src/Education/v1.0/examples/Invoke-MgExcuseEducationUserAssignmentSubmission.md +++ b/src/Education/v1.0/examples/Invoke-MgExcuseEducationUserAssignmentSubmission.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Grant-MgBetaGroupDriveItemPermission.md b/src/Groups/beta/examples/Grant-MgBetaGroupDriveItemPermission.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Grant-MgBetaGroupDriveItemPermission.md +++ b/src/Groups/beta/examples/Grant-MgBetaGroupDriveItemPermission.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Grant-MgBetaGroupDriveRootPermission.md b/src/Groups/beta/examples/Grant-MgBetaGroupDriveRootPermission.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Grant-MgBetaGroupDriveRootPermission.md +++ b/src/Groups/beta/examples/Grant-MgBetaGroupDriveRootPermission.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Grant-MgBetaGroupSitePermission.md b/src/Groups/beta/examples/Grant-MgBetaGroupSitePermission.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Grant-MgBetaGroupSitePermission.md +++ b/src/Groups/beta/examples/Grant-MgBetaGroupSitePermission.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEvent.md b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEvent.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEvent.md +++ b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEvent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEventTentatively.md b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEventTentatively.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEventTentatively.md +++ b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupCalendarEventTentatively.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEvent.md b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEvent.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEvent.md +++ b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEvent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEventTentatively.md b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEventTentatively.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEventTentatively.md +++ b/src/Groups/beta/examples/Invoke-MgBetaAcceptGroupEventTentatively.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveItem.md b/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveItem.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveItem.md +++ b/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveItem.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveRoot.md b/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveRoot.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveRoot.md +++ b/src/Groups/beta/examples/Invoke-MgBetaCheckinGroupDriveRoot.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveItem.md b/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveItem.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveItem.md +++ b/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveItem.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveRoot.md b/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveRoot.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveRoot.md +++ b/src/Groups/beta/examples/Invoke-MgBetaCheckoutGroupDriveRoot.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupCalendarEvent.md b/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupCalendarEvent.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupCalendarEvent.md +++ b/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupCalendarEvent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupEvent.md b/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupEvent.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupEvent.md +++ b/src/Groups/beta/examples/Invoke-MgBetaDeclineGroupEvent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaDismissGroupCalendarEventReminder.md b/src/Groups/beta/examples/Invoke-MgBetaDismissGroupCalendarEventReminder.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaDismissGroupCalendarEventReminder.md +++ b/src/Groups/beta/examples/Invoke-MgBetaDismissGroupCalendarEventReminder.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaDismissGroupEventReminder.md b/src/Groups/beta/examples/Invoke-MgBetaDismissGroupEventReminder.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaDismissGroupEventReminder.md +++ b/src/Groups/beta/examples/Invoke-MgBetaDismissGroupEventReminder.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupCalendarEvent.md b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupCalendarEvent.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupCalendarEvent.md +++ b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupCalendarEvent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPost.md b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPost.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPost.md +++ b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPost.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPostInReplyTo.md b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPostInReplyTo.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPostInReplyTo.md +++ b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupConversationThreadPostInReplyTo.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupEvent.md b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupEvent.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupEvent.md +++ b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupEvent.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupThreadPostInReplyTo.md b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupThreadPostInReplyTo.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaForwardGroupThreadPostInReplyTo.md +++ b/src/Groups/beta/examples/Invoke-MgBetaForwardGroupThreadPostInReplyTo.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaReplyGroupConversationThread.md b/src/Groups/beta/examples/Invoke-MgBetaReplyGroupConversationThread.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaReplyGroupConversationThread.md +++ b/src/Groups/beta/examples/Invoke-MgBetaReplyGroupConversationThread.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupCalendarEventReminder.md b/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupCalendarEventReminder.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupCalendarEventReminder.md +++ b/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupCalendarEventReminder.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupEventReminder.md b/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupEventReminder.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupEventReminder.md +++ b/src/Groups/beta/examples/Invoke-MgBetaSnoozeGroupEventReminder.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachmentUploadSession.md b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachmentUploadSession.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachmentUploadSession.md +++ b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostAttachmentUploadSession.md @@ -0,0 +1 @@ + diff --git a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachmentUploadSession.md b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachmentUploadSession.md index e69de29bb2..8b13789179 100644 --- a/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachmentUploadSession.md +++ b/src/Groups/beta/examples/New-MgBetaGroupConversationThreadPostInReplyToAttachmentUploadSession.md @@ -0,0 +1 @@ + diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaGraphIdentityGovernanceLifecycleWorkflowInsight.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaGraphIdentityGovernanceLifecycleWorkflowInsight.md index e69de29bb2..bfafd0d9fe 100644 --- a/src/Identity.Governance/beta/examples/Invoke-MgBetaGraphIdentityGovernanceLifecycleWorkflowInsight.md +++ b/src/Identity.Governance/beta/examples/Invoke-MgBetaGraphIdentityGovernanceLifecycleWorkflowInsight.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Invoke-MgBetaGraphIdentityGovernanceLifecycleWorkflowInsight + +``` +This example shows how to use the Invoke-MgBetaGraphIdentityGovernanceLifecycleWorkflowInsight Cmdlet. + diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md index e69de29bb2..8fa9c6ec79 100644 --- a/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md +++ b/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary + +``` +This example shows how to use the Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightTaskProcessedSummary Cmdlet. + diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md index e69de29bb2..f55f93a996 100644 --- a/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md +++ b/src/Identity.Governance/beta/examples/Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary + +``` +This example shows how to use the Invoke-MgBetaTopIdentityGovernanceLifecycleWorkflowInsightWorkflowProcessedSummary Cmdlet. + diff --git a/src/Identity.Governance/beta/examples/Invoke-MgBetaWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md b/src/Identity.Governance/beta/examples/Invoke-MgBetaWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md index e69de29bb2..8081eef2b2 100644 --- a/src/Identity.Governance/beta/examples/Invoke-MgBetaWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md +++ b/src/Identity.Governance/beta/examples/Invoke-MgBetaWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.Governance + +Invoke-MgBetaWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary + +``` +This example shows how to use the Invoke-MgBetaWorkflowIdentityGovernanceLifecycleWorkflowInsightProcessedSummary Cmdlet. + diff --git a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentPolicy.md b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentPolicy.md index a2490ec118..dcadb8cc11 100644 --- a/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentPolicy.md +++ b/src/Identity.Governance/v1.0/examples/New-MgEntitlementManagementAssignmentPolicy.md @@ -302,3 +302,56 @@ New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params ``` This example shows how to use the New-MgEntitlementManagementAssignmentPolicy Cmdlet. +### Example 5: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Identity.Governance + +$params = @{ + displayName = "customExtensionStageSettings policy" + description = "policy with specified stages for custom extension assignment" + allowedTargetScope = "notSpecified" + specificAllowedTargets = @( + ) + expiration = @{ + endDateTime = $null + duration = $null + type = "noExpiration" + } + requestorSettings = @{ + enableTargetsToSelfAddAccess = $false + enableTargetsToSelfUpdateAccess = $false + enableTargetsToSelfRemoveAccess = $false + allowCustomAssignmentSchedule = $true + enableOnBehalfRequestorsToAddAccess = $false + enableOnBehalfRequestorsToUpdateAccess = $false + enableOnBehalfRequestorsToRemoveAccess = $false + onBehalfRequestors = @( + ) + } + requestApprovalSettings = @{ + isApprovalRequiredForAdd = $false + isApprovalRequiredForUpdate = $false + stages = @( + ) + } + accessPackage = @{ + id = "5ad1eb64-15f7-4614-b419-05d11ee266bf" + } + customExtensionStageSettings = @( + @{ + stage = "assignmentRequestCreated" + customExtension = @{ + "@odata.type" = "#microsoft.graph.accessPackageAssignmentRequestWorkflowExtension" + id = "bebe7873-1f0d-4db9-b6c3-01f7ebfe8476" + } + } + ) +} + +New-MgEntitlementManagementAssignmentPolicy -BodyParameter $params + +``` +This example shows how to use the New-MgEntitlementManagementAssignmentPolicy Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyPermissionGrantPreApprovalPolicy.md b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyPermissionGrantPreApprovalPolicy.md index e69de29bb2..6310d5fb5c 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyPermissionGrantPreApprovalPolicy.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaPolicyPermissionGrantPreApprovalPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaPolicyPermissionGrantPreApprovalPolicy + +``` +This example shows how to use the Get-MgBetaPolicyPermissionGrantPreApprovalPolicy Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Get-MgBetaTrustFrameworkKeySetKeyV2.md b/src/Identity.SignIns/beta/examples/Get-MgBetaTrustFrameworkKeySetKeyV2.md index e69de29bb2..4e5cbf4735 100644 --- a/src/Identity.SignIns/beta/examples/Get-MgBetaTrustFrameworkKeySetKeyV2.md +++ b/src/Identity.SignIns/beta/examples/Get-MgBetaTrustFrameworkKeySetKeyV2.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Get-MgBetaTrustFrameworkKeySetKeyV2 -TrustFrameworkKeySetId $trustFrameworkKeySetId -TrustFrameworkKey_v2Kid $trustFrameworkKey_v2Kid + +``` +This example shows how to use the Get-MgBetaTrustFrameworkKeySetKeyV2 Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyPermissionGrantPreApprovalPolicy.md b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyPermissionGrantPreApprovalPolicy.md index e69de29bb2..fb4fbf6ed3 100644 --- a/src/Identity.SignIns/beta/examples/New-MgBetaPolicyPermissionGrantPreApprovalPolicy.md +++ b/src/Identity.SignIns/beta/examples/New-MgBetaPolicyPermissionGrantPreApprovalPolicy.md @@ -0,0 +1,78 @@ +### Example 1: Create a preapproval policy for both group and chat scope + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + conditions = @( + @{ + scopeType = "chat" + sensitivityLabels = @{ + "@odata.type" = "#microsoft.graph.allScopeSensitivityLabels" + labelKind = "all" + } + permissions = @{ + "@odata.type" = "#microsoft.graph.allPreApprovedPermissions" + permissionKind = "all" + permissionType = "application" + } + } + @{ + scopeType = "group" + scopeSensitivityLabels = @{ + "@odata.type" = "microsoft.graph.enumeratedScopeSensitivityLabels" + labelKind = "enumerated" + sensitivityLabels = @( + "d9c43deb-f3e1-4422-9fd6-ccf22a3206b8" + "c99dade2-aa54-4890-ac1c-a146fa26bd1e" + ) + } + permissions = @{ + "@odata.type" = "#microsoft.graph.enumeratedPreApprovedPermissions" + permissionKind = "enumerated" + permissionType = "application" + resourceApplicationId = "00000003-0000-0000-c000-000000000000" + permissionIds = @( + "134483aa-3dda-4d65-ac91-b8dda1417875" + "9d33613d-f855-483b-bca7-ea63ac9f5485" +) +} +} +) +} + +New-MgBetaPolicyPermissionGrantPreApprovalPolicy -BodyParameter $params + +``` +This example will create a preapproval policy for both group and chat scope + +### Example 2: Create a preapproval policy for group scope and preapprove all permissions from a given API + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + conditions = @( + @{ + scopeType = "group" + sensitivityLabels = @{ + "@odata.type" = "#microsoft.graph.allScopeSensitivityLabels" + labelKind = "all" + } + permissions = @{ + "@odata.type" = "#microsoft.graph.allPermissionsOnResourceApp" + permissionKind = "allPermissionsOnResourceApp" + permissionType = "application" + resourceApplicationId = "00000003-0000-0000-c000-000000000000" + } + } + ) +} + +New-MgBetaPolicyPermissionGrantPreApprovalPolicy -BodyParameter $params + +``` +This example will create a preapproval policy for group scope and preapprove all permissions from a given api + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePage.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePage.md index 093355d11d..8b13789179 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePage.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePage.md @@ -1,18 +1 @@ -### Example 1: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} - -### Example 2: {{ Add title here }} -```powershell -PS C:\> {{ Add code here }} - -{{ Add output here }} -``` - -{{ Add description here }} diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePageContent.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePageContent.md index e69de29bb2..ea3a066e97 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePageContent.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaIdentityB2CUserFlowLanguageOverridePageContent.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaIdentityB2CUserFlowLanguageOverridePageContent -B2cIdentityUserFlowId $b2cIdentityUserFlowId -UserFlowLanguageConfigurationId $userFlowLanguageConfigurationId -UserFlowLanguagePageId $userFlowLanguagePageId + +``` +This example shows how to use the Remove-MgBetaIdentityB2CUserFlowLanguageOverridePageContent Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyPermissionGrantPreApprovalPolicy.md b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyPermissionGrantPreApprovalPolicy.md index e69de29bb2..da374242b6 100644 --- a/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyPermissionGrantPreApprovalPolicy.md +++ b/src/Identity.SignIns/beta/examples/Remove-MgBetaPolicyPermissionGrantPreApprovalPolicy.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +Remove-MgBetaPolicyPermissionGrantPreApprovalPolicy -PermissionGrantPreApprovalPolicyId $permissionGrantPreApprovalPolicyId + +``` +This example shows how to use the Remove-MgBetaPolicyPermissionGrantPreApprovalPolicy Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyPermissionGrantPreApprovalPolicy.md b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyPermissionGrantPreApprovalPolicy.md index e69de29bb2..efac672b85 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyPermissionGrantPreApprovalPolicy.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaPolicyPermissionGrantPreApprovalPolicy.md @@ -0,0 +1,51 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + "@odata.context" = "https://graph.microsoft.com/beta/$metadata#policies/permissionGrantPreApprovalPolicies/$entity" + id = "71ba13dc-5947-4e59-bcc5-0ad5c339a853" + deletedDateTime = $null + conditions = @( + @{ + scopeType = "chat" + sensitivityLabels = @{ + "@odata.type" = "#microsoft.graph.enumeratedScopeSensitivityLabels" + labelKind = "enumerated" + sensitivityLabels = @( + "d9c43deb-f3e1-4422-9fd6-ccf22a3206b8" + ) + } + permissions = @{ + "@odata.type" = "#microsoft.graph.allPreApprovedPermissions" + permissionKind = "all" + permissionType = "application" + } + } + @{ + scopeType = "group" + sensitivityLabels = @{ + "@odata.type" = "#microsoft.graph.allScopeSensitivityLabels" + labelKind = "all" + } + permissions = @{ + "@odata.type" = "#microsoft.graph.enumeratedPreApprovedPermissions" + permissionKind = "enumerated" + resourceApplicationId = "00000003-0000-0000-c000-000000000000" + permissionIds = @( + "134483aa-3dda-4d65-ac91-b8dda1417875" + "9d33613d-f855-483b-bca7-ea63ac9f5485" + ) + permissionType = "application" +} +} +) +} + +Update-MgBetaPolicyPermissionGrantPreApprovalPolicy -PermissionGrantPreApprovalPolicyId $permissionGrantPreApprovalPolicyId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaPolicyPermissionGrantPreApprovalPolicy Cmdlet. + diff --git a/src/Identity.SignIns/beta/examples/Update-MgBetaTenantRelationshipMultiTenantOrganization.md b/src/Identity.SignIns/beta/examples/Update-MgBetaTenantRelationshipMultiTenantOrganization.md index e69de29bb2..96b8d9e8ca 100644 --- a/src/Identity.SignIns/beta/examples/Update-MgBetaTenantRelationshipMultiTenantOrganization.md +++ b/src/Identity.SignIns/beta/examples/Update-MgBetaTenantRelationshipMultiTenantOrganization.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Identity.SignIns + +$params = @{ + displayName = "Contoso organization" + description = "Multi-tenant organization between Contoso, Fabrikam, and Woodgrove Bank" +} + +Update-MgBetaTenantRelationshipMultiTenantOrganization -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaTenantRelationshipMultiTenantOrganization Cmdlet. + diff --git a/src/Planner/beta/examples/Set-MgBetaPlannerRosterSensitivityLabel.md b/src/Planner/beta/examples/Set-MgBetaPlannerRosterSensitivityLabel.md index e69de29bb2..6bcc297d53 100644 --- a/src/Planner/beta/examples/Set-MgBetaPlannerRosterSensitivityLabel.md +++ b/src/Planner/beta/examples/Set-MgBetaPlannerRosterSensitivityLabel.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Planner + +$params = @{ + assignmentMethod = "standard" + sensitivityLabelId = "7a4d7cc1-f72b-46a3-9831-02680eaf56f9" +} + +Set-MgBetaPlannerRosterSensitivityLabel -PlannerRosterId $plannerRosterId -BodyParameter $params + +``` +This example shows how to use the Set-MgBetaPlannerRosterSensitivityLabel Cmdlet. + diff --git a/src/Search/beta/examples/Reset-MgBetaExternalIndustryDataOutboundProvisioningFlowSetProvisioningFlow.md b/src/Search/beta/examples/Reset-MgBetaExternalIndustryDataOutboundProvisioningFlowSetProvisioningFlow.md index e69de29bb2..0d7ea9b779 100644 --- a/src/Search/beta/examples/Reset-MgBetaExternalIndustryDataOutboundProvisioningFlowSetProvisioningFlow.md +++ b/src/Search/beta/examples/Reset-MgBetaExternalIndustryDataOutboundProvisioningFlowSetProvisioningFlow.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Search + +Reset-MgBetaExternalIndustryDataOutboundProvisioningFlowSetProvisioningFlow -OutboundProvisioningFlowSetId $outboundProvisioningFlowSetId -ProvisioningFlowId $provisioningFlowId + +``` +This example shows how to use the Reset-MgBetaExternalIndustryDataOutboundProvisioningFlowSetProvisioningFlow Cmdlet. + diff --git a/src/Security/beta/examples/Get-MgBetaSecurityPartnerSecurityAlert.md b/src/Security/beta/examples/Get-MgBetaSecurityPartnerSecurityAlert.md index e69de29bb2..8177408b06 100644 --- a/src/Security/beta/examples/Get-MgBetaSecurityPartnerSecurityAlert.md +++ b/src/Security/beta/examples/Get-MgBetaSecurityPartnerSecurityAlert.md @@ -0,0 +1,11 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +Get-MgBetaSecurityPartnerSecurityAlert + +``` +This example shows how to use the Get-MgBetaSecurityPartnerSecurityAlert Cmdlet. + diff --git a/src/Security/beta/examples/Update-MgBetaSecurityPartnerSecurityAlert.md b/src/Security/beta/examples/Update-MgBetaSecurityPartnerSecurityAlert.md index e69de29bb2..18f62bfd88 100644 --- a/src/Security/beta/examples/Update-MgBetaSecurityPartnerSecurityAlert.md +++ b/src/Security/beta/examples/Update-MgBetaSecurityPartnerSecurityAlert.md @@ -0,0 +1,16 @@ +### Example 1: Code snippet + +```powershell + +Import-Module Microsoft.Graph.Beta.Security + +$params = @{ + status = "resolved" + resolvedReason = "fraud" +} + +Update-MgBetaSecurityPartnerSecurityAlert -PartnerSecurityAlertId $partnerSecurityAlertId -BodyParameter $params + +``` +This example shows how to use the Update-MgBetaSecurityPartnerSecurityAlert Cmdlet. + diff --git a/src/Users.Actions/beta/examples/Get-MgBetaUserById.md b/src/Users.Actions/beta/examples/Get-MgBetaUserById.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Get-MgBetaUserById.md +++ b/src/Users.Actions/beta/examples/Get-MgBetaUserById.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Get-MgBetaUserCalendarSchedule.md b/src/Users.Actions/beta/examples/Get-MgBetaUserCalendarSchedule.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Get-MgBetaUserCalendarSchedule.md +++ b/src/Users.Actions/beta/examples/Get-MgBetaUserCalendarSchedule.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveItemPermission.md b/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveItemPermission.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveItemPermission.md +++ b/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveItemPermission.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveRootPermission.md b/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveRootPermission.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveRootPermission.md +++ b/src/Users.Actions/beta/examples/Grant-MgBetaUserDriveRootPermission.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstance.md b/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstance.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstance.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstance.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstanceTentatively.md b/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstanceTentatively.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstanceTentatively.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaAcceptUserEventInstanceTentatively.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveItem.md b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveItem.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveItem.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveItem.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveRoot.md b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveRoot.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveRoot.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckinUserDriveRoot.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveItem.md b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveItem.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveItem.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveItem.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveRoot.md b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveRoot.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveRoot.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaCheckoutUserDriveRoot.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaDeclineUserEventInstance.md b/src/Users.Actions/beta/examples/Invoke-MgBetaDeclineUserEventInstance.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaDeclineUserEventInstance.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaDeclineUserEventInstance.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaDismissUserEventInstanceReminder.md b/src/Users.Actions/beta/examples/Invoke-MgBetaDismissUserEventInstanceReminder.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaDismissUserEventInstanceReminder.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaDismissUserEventInstanceReminder.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserEventInstance.md b/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserEventInstance.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserEventInstance.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserEventInstance.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderChildFolderMessage.md b/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderChildFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderChildFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderMessage.md b/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderMessage.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaForwardUserMailFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderChildFolderMessage.md b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderChildFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderChildFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderMessage.md b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderMessage.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyAllUserMailFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderChildFolderMessage.md b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderChildFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderChildFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderMessage.md b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderMessage.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaReplyUserMailFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Invoke-MgBetaSnoozeUserEventInstanceReminder.md b/src/Users.Actions/beta/examples/Invoke-MgBetaSnoozeUserEventInstanceReminder.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Invoke-MgBetaSnoozeUserEventInstanceReminder.md +++ b/src/Users.Actions/beta/examples/Invoke-MgBetaSnoozeUserEventInstanceReminder.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolder.md b/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolder.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolder.md +++ b/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolder.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolderMessage.md b/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderChildFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderMessage.md b/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderMessage.md +++ b/src/Users.Actions/beta/examples/Move-MgBetaUserMailFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserEventAttachmentUploadSession.md b/src/Users.Actions/beta/examples/New-MgBetaUserEventAttachmentUploadSession.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserEventAttachmentUploadSession.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserEventAttachmentUploadSession.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserEventInstanceAttachmentUploadSession.md b/src/Users.Actions/beta/examples/New-MgBetaUserEventInstanceAttachmentUploadSession.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserEventInstanceAttachmentUploadSession.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserEventInstanceAttachmentUploadSession.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachmentUploadSession.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachmentUploadSession.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachmentUploadSession.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageAttachmentUploadSession.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageForward.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageForward.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageForward.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageForward.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReply.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReply.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReply.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReply.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReplyAll.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReplyAll.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReplyAll.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderChildFolderMessageReplyAll.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageAttachmentUploadSession.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageAttachmentUploadSession.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageAttachmentUploadSession.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageAttachmentUploadSession.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageForward.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageForward.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageForward.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageForward.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReply.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReply.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReply.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReply.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReplyAll.md b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReplyAll.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReplyAll.md +++ b/src/Users.Actions/beta/examples/New-MgBetaUserMailFolderMessageReplyAll.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Publish-MgBetaUserDriveListContentType.md b/src/Users.Actions/beta/examples/Publish-MgBetaUserDriveListContentType.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Publish-MgBetaUserDriveListContentType.md +++ b/src/Users.Actions/beta/examples/Publish-MgBetaUserDriveListContentType.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemListItemDocumentSetVersion.md b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemListItemDocumentSetVersion.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemListItemDocumentSetVersion.md +++ b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemListItemDocumentSetVersion.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemVersion.md b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemVersion.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemVersion.md +++ b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveItemVersion.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveListItemDocumentSetVersion.md b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveListItemDocumentSetVersion.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveListItemDocumentSetVersion.md +++ b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveListItemDocumentSetVersion.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootListItemDocumentSetVersion.md b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootListItemDocumentSetVersion.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootListItemDocumentSetVersion.md +++ b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootListItemDocumentSetVersion.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootVersion.md b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootVersion.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootVersion.md +++ b/src/Users.Actions/beta/examples/Restore-MgBetaUserDriveRootVersion.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Send-MgBetaUserChatActivityNotification.md b/src/Users.Actions/beta/examples/Send-MgBetaUserChatActivityNotification.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Send-MgBetaUserChatActivityNotification.md +++ b/src/Users.Actions/beta/examples/Send-MgBetaUserChatActivityNotification.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderChildFolderMessage.md b/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderChildFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderChildFolderMessage.md +++ b/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderChildFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderMessage.md b/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderMessage.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderMessage.md +++ b/src/Users.Actions/beta/examples/Send-MgBetaUserMailFolderMessage.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Stop-MgBetaUserEventInstance.md b/src/Users.Actions/beta/examples/Stop-MgBetaUserEventInstance.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Stop-MgBetaUserEventInstance.md +++ b/src/Users.Actions/beta/examples/Stop-MgBetaUserEventInstance.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Test-MgBetaUserProperty.md b/src/Users.Actions/beta/examples/Test-MgBetaUserProperty.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Test-MgBetaUserProperty.md +++ b/src/Users.Actions/beta/examples/Test-MgBetaUserProperty.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Unpublish-MgBetaUserDriveListContentType.md b/src/Users.Actions/beta/examples/Unpublish-MgBetaUserDriveListContentType.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Unpublish-MgBetaUserDriveListContentType.md +++ b/src/Users.Actions/beta/examples/Unpublish-MgBetaUserDriveListContentType.md @@ -0,0 +1 @@ + diff --git a/src/Users.Actions/beta/examples/Update-MgBetaUserChatInstalledApp.md b/src/Users.Actions/beta/examples/Update-MgBetaUserChatInstalledApp.md index e69de29bb2..8b13789179 100644 --- a/src/Users.Actions/beta/examples/Update-MgBetaUserChatInstalledApp.md +++ b/src/Users.Actions/beta/examples/Update-MgBetaUserChatInstalledApp.md @@ -0,0 +1 @@ + diff --git a/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingRecording.md b/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingRecording.md index 8b13789179..680c5741b7 100644 --- a/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingRecording.md +++ b/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingRecording.md @@ -1 +1,11 @@ +### Example 1: Get all recordings + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Functions + +Get-MgBetaAllUserOnlineMeetingRecording -UserId $userId + +``` +This example will get all recordings diff --git a/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingTranscript.md b/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingTranscript.md index 8b13789179..f80368bea4 100644 --- a/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingTranscript.md +++ b/src/Users.Functions/beta/examples/Get-MgBetaAllUserOnlineMeetingTranscript.md @@ -1 +1,11 @@ +### Example 1: Get all transcripts + +```powershell + +Import-Module Microsoft.Graph.Beta.Users.Functions + +Get-MgBetaAllUserOnlineMeetingTranscript -UserId $userId + +``` +This example will get all transcripts From 9c7d6b5cf6dff1656cedd7e3e51c9c7146c461a4 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Fri, 19 Jul 2024 17:48:28 +0300 Subject: [PATCH 2/2] Rectified examples on Update-MgBetaRoleManagementCloudPcRoleDefinition and New-MgBetaRoleManagementCloudPcRoleDefinition --- .../examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md | 1 - .../examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md | 1 - 2 files changed, 2 deletions(-) diff --git a/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md index 29e20e5959..e6096e40cf 100644 --- a/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrollment/beta/examples/New-MgBetaRoleManagementCloudPcRoleDefinition.md @@ -6,7 +6,6 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment $params = @{ description = "An example custom role" -### Example 2 rolePermissions = @( @{ allowedResourceActions = @( diff --git a/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md b/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md index f6d8a763d0..8c8958172b 100644 --- a/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md +++ b/src/DeviceManagement.Enrollment/beta/examples/Update-MgBetaRoleManagementCloudPcRoleDefinition.md @@ -6,7 +6,6 @@ Import-Module Microsoft.Graph.Beta.DeviceManagement.Enrollment $params = @{ description = "Update basic properties and permission of application registrations" -### Example 2 rolePermissions = @( @{ allowedResourceActions = @(