Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValidateSet is incorrect for SnapshotConsistencyMandate on Set-RubrikNutanixVM #533

Closed
mwpreston opened this issue Dec 19, 2019 · 0 comments

Comments

@mwpreston
Copy link
Contributor

Current Behavior:

Currently the validate set is looking for the following on the SnapshotConsistencyMandate parameter of the Get-RubrikNutanixVM cmdlet
[ValidateSet('AUTOMATIC','APP_CONSISTENT','CRASH_CONSISTENT','FILE_SYSTEM_CONSISTENT','VSS_CONSISTENT','INCONSISTENT','UNKNOWN')]

The API docs specify that these should be one of the following
"Automatic""CrashConsistent""ApplicationConsistent"

Paste the verbose output from the command here

PS C:\Users\bill.sahm> Get-RubrikNutanixVM |select -first 10 | Set-RubrikNutanixVM -SnapConsistency 'CRASH_CONSISTENT'
Invoke-WebRequest : Request malformed
At C:\Program Files (x86)\WindowsPowerShell\Modules\Rubrik\5.0.0\Private\Invoke-RubrikWebRequest.ps1:20 char:19

  • ... $result = Invoke-WebRequest -UseBasicParsing @PSBoundParameters
  •      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],
      WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestComma
      nd
      Expected Behavior:
      We need to change the validate set to allow only
      "Automatic""CrashConsistent""ApplicationConsistent"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant