rubrikinc / polaris-o365-powershell

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

Add SharePoint mass recovery support #39

Closed rish-singhal closed 1 year ago

rish-singhal commented 1 year ago

Description

This PR adds support for Sharepoint Mass Recovery.

Motivation and Context

It adds support for Sharepoint Mass Recovery, by giving users an option to provide ConfiguredGroupName and WorkloadType as Sharepoint.

How Has This Been Tested?

Tested on dev deployment dev-079, and running the commands after setting up service account.

Screenshots (if appropriate):

PS /Users/Rishabh.Singhal/Developement/polaris-o365-powershell> Start-MassRecovery -Name "BR_Sharpoint_TEST" -RecoveryPoint "07/10/23 16:30:00" -SubscriptionName "RDNN14" -ConfiguredGroupName "A public team - gjgjhhjg" -WorkloadType "Sharepoint" 

Started mass recovery BR_Sharpoint_TEST_Sharepoint with the following details:
@{massRecoveryInstanceID=298558e9-de31-4dbf-9498-971a7b4e9846; taskchainID=06f3ed28-c2dd-4a4e-93cc-5049f8a69b93; jobID=34; error=}

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!