rubrikinc / polaris-o365-powershell

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

Add mass recovery endpoints #33

Closed rish-singhal closed 1 year ago

rish-singhal commented 1 year ago

Description

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

PS> Start-MassRecovery -Name $name -RecoveryPoint $recoveryPoint -SubscriptionName $subscriptionName -AdGroupId $adGroupId -WorkloadType $workloadType # only "OneDrive" is valid

PS> Get-MassRecoveryProgress -MassRecoveryInstanceId $massRecoveryInstanceId

PS> Stop-MassRecovery -MassRecoveryInstanceId $massRecoveryInstanceId ## NOTE: need to use STOP as CANCEL is not approved verb for naming

Related Issue

Closes #32

Motivation and Context

As we are going to release mass recovery as API only endpoint for beta, we have added support for these in powershell.

How Has This Been Tested?

Have tested out all the cases of failed/succeeded mass recovery as well as get mass recovery progress at various points of time.

Screenshots (if appropriate):

Screenshot 2023-03-24 at 1 36 26 PM Screenshot 2023-03-24 at 1 36 48 PM Screenshot 2023-03-24 at 1 37 30 PM Screenshot 2023-03-24 at 1 40 36 PM

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!

rish-singhal commented 1 year ago

@drew-russell could you review this PR. Thanks!

rish-singhal commented 1 year ago

@pmilano1 I have updated Start-MassRecovery to take in WorkloadType as an argument which explicitly specifies "OneDrive".