Closed SahFari closed 2 months ago
Also happens with PowerShell 7.4.1 and the Disconnect-Rubrik CMDlet.
Results in Scripts not working due to max number of token reached.
TerminatingError(): "A single connection with Connect-Rubrik is required." TerminatingError(Invoke-RestMethod): "{"errorType":"user_error","message":"Max of 10 API Tokens reached.","cause":null}"
@mwpreston, you can take a look at this? You seem to be the only one who is still active here. Unfortunately, the module cannot be used at the moment. Is a new version planned?
I don’t think that they want us to use Rubrik cmdlet anymore ☹ I am testing the new SDK, RubrikSecurityCloud cmdlet.
$MssqlLiveMount = Get-RscMssqlLiveMount Remove-RscMssqlLiveMount -MssqlLiveMount $MssqlLiveMount Get-RscMssqlLiveMount | Remove-RscMssqlLiveMount -Force
To run any script against RSC one need to create Service Accounts in RSC. I am struggling to run the script remotely as a specific Service Account.
@rik-e - @SahFari - There is a fix for this in an upcoming PR, just knocking off a few more issues to get as much bundled as I can. With 7.4.2, MS changed something that requires a ContentType on Invoke-WebRequest when using DELETE methods - this has been added and will be merged to devel soon, master shortly thereafter
Current Behavior
Expected Behavior
Unmount the mounted database using Remove-RubrikDatabaseMount
Steps to Reproduce
Install/update Powershell 7.4.0
Uninstall PS 7.4.0 and reinstall PS 7.3.9. to be able to unmount (run Remove-RubrikDatabaseMount)
Context
Failure Logs
Invoke-WebRequest: C:\Program Files\PowerShell\Modules\Rubrik\6.0.1\Private\Invoke-RubrikWebRequest.ps1:28:23 Line | 28 | … $result = Invoke-WebRequest -UseBasicParsing -SkipCertificateCheck … |
~~~~~~~~~~~~~ | The given key ‘Content-Type’ was not present in the dictionary.