rubrikinc / polaris-o365-powershell

PowerShell commands for managing Polaris M365 protection
MIT License
7 stars 13 forks source link

Add Operational Recovery endpoints #46

Closed yuyiying closed 3 months ago

yuyiying commented 3 months ago

Description

In this PR we add new endpoints for the new feature operational recovery

PS> Start-OperationalRecovery -Name $name -RecoveryPoint $recoveryPoint -SubscriptionName $subscriptionName -AdGroupId $adGroupId 
-WorkloadType $workloadType # only "Exchange" is valid -MailboxFromTime $mailboxFromTime -MailboxUntilTime $mailboxUntilTime 

PS>  Start-OperationalRecovery -Name $name -RecoveryPoint $recoveryPoint -SubscriptionName $subscriptionName -AdGroupId $adGroupId 
-WorkloadType $workloadType # only "Exchange" is valid -ArchiveFolderAction $archiveFolderAction

Related Issue

Motivation and Context

As we are going to release operational recovery for beta, we need add support for these in powershell.

How Has This Been Tested?

Have tested out all the cases of failed/succeeded operational recovery at various points of time.

Screenshots (if appropriate):

Missing arguements:

image

Start Operational Recovery with the mailbox time range

image image

Operational Recovery for Mailbox succeeds, and time range is set as input

image

Operation Recovery for Calendar succeeds, and time range is set as expected, two weeks from now

image

Start Operational Recovery with the archive folder action set "Exclude Archive"

image image

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

yuyiying commented 3 months ago

@drew-russell Please help to accept the change, thanks. @rish-singhal already gave LGTM to the change.