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

Get-RubrikVM (VM name) |get-Rubrik Snapshot -latest not working in a script #833

Open
zencpu opened this issue May 15, 2023 · 1 comment

Comments

@zencpu
Copy link

zencpu commented May 15, 2023

When I run the command from the PowerShell command line, it works great. If I try putting it in a script to loop through a bunch of VMs, it comes back with the following error:

Get-Rubrik Snapshot : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.

For some reason, the Get-Rubriksnapshot is able to get the information from the Get-Rubrik VM output.

Anyone able to assist with why it works command line, but not in a script?

@mwpreston
Copy link
Contributor

HI @zencpu - Can you post your script?

Get-RubrikVM MyVM | Get-RubrikSnapshot -Latest works fine for me - where MyVM is the name of a VM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants