rubrikinc / polaris-o365-powershell

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

Update list M365 object GQL #31

Closed ameliavu closed 1 year ago

ameliavu commented 1 year ago

Description

The GraphQL to list various objects in M365 was changed, breaking the script.

Related Issue

Motivation and Context

Various tools are failing due to the invalid field.

How Has This Been Tested?

Verified using pwsh for mac

PS /Users/ameliavu/polaris-o365-powershell/RubrikPolaris/M365> Import-Module ../RubrikPolaris.psd1
PS /Users/ameliavu/polaris-o365-powershell/RubrikPolaris/M365> Connect-Polaris
PS /Users/ameliavu/polaris-o365-powershell/RubrikPolaris/M365> Get-PolarisM365Sharepoint -Includes "ListsOnly"

cmdlet Get-PolarisM365SharePoint at command pipeline position 1
Supply values for the following parameters:
SubscriptionId: b5028536-82eb-46f8-99ee-3a309cc3f09d

name                   : Full SharePoint Hierarchy List at Level 1 (RBK 31 Oct 22 05:17 UTC)
id                     : 02c83a1f-2635-49cf-a987-63e3c11d174a
type                   : O365SharePointList
slaAssignment          : Unassigned
effectiveSlaDomainName : UNPROTECTED
...

Screenshots (if appropriate):

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!