rubrikinc / rubrik-powershell-sdk

The Rubrik Security Cloud SDK
https://www.powershellgallery.com/packages/RubrikSecurityCloud
MIT License
6 stars 9 forks source link

Authentication Error #111

Open mattcoker20 opened 2 months ago

mattcoker20 commented 2 months ago

Current Behavior

PS C:\Windows\system32> Connect-Rsc -ServiceAccountFile C:\Users\user\Documents\WindowsPowerShell\rubrik-powershell-sdk\rsc_service_account_default.xml
Connect-Rsc : One or more errors occurred.
At line:1 char:1
+ Connect-Rsc -ServiceAccountFile C:\Users\user\Documents\Windo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : AuthenticationError: (:) [Connect-Rsc], AggregateException
    + FullyQualifiedErrorId : UnableToAuthenticateToRubrikSecurityCloud,RubrikSecurityCloud.PowerShell.Cmdlets.Connect_Rsc

Expected Behavior

Connect to RSC but does not work. Tried creating a new service account but does not work

Steps to Reproduce

No response

Context

No response

Failure Logs

No response

SahFari commented 4 weeks ago

I have RubrikSecurityCloud version 1.4 installed at this works.
$ServiceAccountFile = 'C:\Users\xxxxx\Documents\WindowsPowerShell\rubrik-powershell-sdk\rsc_service_account_default.xml'

Connect-Rsc -ServiceAccountFile $ServiceAccountFile

Maybe it works beacuse I had this done earlier? Set-RscServiceAccountFile -InputFilePath C:\Temp\MyServiceAccount.json