rubrikinc / polaris-o365-powershell

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

Update SLA assignment GQL #24

Closed ameliavu closed 2 years ago

ameliavu commented 2 years ago

Description

The SLA assignment GraphQL endpoint was changed on Polaris, breaking the script.

Related Issue

Motivation and Context

SLA assignment is failing due to invalid fields.

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> Set-PolarisM365ObjectSla -ObjectID '5f644256-bb93-4e96-96bd-5d897cfd62f0' -SlaID 'DONOTPROTECT'

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!